Error [ARITH] 1878 in bc/src/bignum.c: suspicious arithmetic, LHS ends d_digs.
Open
Nobody has claimed this yet.
build
- Dominant language
- Racket
- Stars
- 5.2k
- Forks
- 698
- Avg merge
- 18h 34m
- Merged PRs (30d)
- 5
Description
What version of Racket are you using?
8.10 [bconly]
What program did you run?
./configure --enable-bconly ...
gmake
What should have happened?
Racket should have built.
If you got an error message, please include it here.
bc/racketcgc -O info'@'compiler/cm -l- setup --boot setup-go.rkt bc/compiled --tag ++out bc/gc2/xform-mod.rkt --depends --cpp cc" "-E" "-Ibc" "-Ibc/src" "-Ibc/include" "-Iversion" "-Irktio" "-Ibc/rktio" "-Ibc/phase2" "-O2" "-g" "-pthread" "-I/home/riastradh/pkgsrc/current/pkg/include" "-I/home/riastradh/pkgsrc/current/pkg/include/ncurses" "-I/usr/include" "-I/home/riastradh/pkgsrc/current/pkg/include/freetype2" "-I/home/riastradh/pkgsrc/current/pkg/include/glib-2.0" "-I/home/riastradh/pkgsrc/current/pkg/include/gio-unix-2.0" "-I/home/riastradh/pkgsrc/current/pkg/lib/glib-2.0/include" "-I/home/riastradh/pkgsrc/current/pkg/include/harfbuzz" "-I/home/riastradh/pkgsrc/current/pkg/include" "-I/home/riastradh/pkgsrc/current/pkg/include/ncurses" "-I/usr/include" "-I/home/riastradh/pkgsrc/current/pkg/include/freetype2" "-I/home/riastradh/pkgsrc/current/pkg/include/glib-2.0" "-I/home/riastradh/pkgsrc/current/pkg/include/gio-unix-2.0" "-I/home/riastradh/pkgsrc/current/pkg/lib/glib-2.0/include" "-I/home/riastradh/pkgsrc/current/pkg/include/harfbuzz" "-I/home/riastradh/pkgsrc/current/pkg/include" "-DUSE_SENORA_GC --keep-lines -o ++out bc/xsrc/bignum.c bc/src/bignum.c
Error [ARITH] 1878 in bc/src/bignum.c: suspicious arithmetic, LHS ends d_digs.
Error [ARITH] 1870 in bc/src/bignum.c: suspicious arithmetic, LHS ends n_digs.
xform: Errors converting
[91mfailed
[0m in xform
in build-one
in loop
in module->hash
gmake: *** [Makefile:18: all] Error 1
Please include any other relevant details
NetBSD 9
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the bconly build with ./configure --enable-bconly ... and gmake, then inspect the reported arithmetic diagnostics in bc/src/bignum.c and the corresponding bc/xsrc/bignum.c input. Trace the xform invocation and determine what must change so the build completes without the ARITH errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100