Ask questions"error: 'JIT_LOCAL4' undeclared" on OpenBSD/powerpc
When I try to build Racket 6.4 on OpenBSD/powerpc with GCC 4.9.3 and jit/places/futures enabled, it shows this error during the build:
cc -O2 -pipe -I./.. -I/usr/ports/pobj/racket-minimal-6.4/racket-6.4/src/racket/src/../include -I/usr/local/include -I/usr/X11R6/include -pthread -I/usr/local/include -DUSE_SENORA_GC -c /usr/ports/pobj/racket-minimal-6.4/racket-6.4/src/racket/src/hash.c -o hash.o cc -O2 -pipe -I./.. -I/usr/ports/pobj/racket-minimal-6.4/racket-6.4/src/racket/src/../include -I/usr/local/include -I/usr/X11R6/include -pthread -I/usr/local/include -DUSE_SENORA_GC -c /usr/ports/pobj/racket-minimal-6.4/racket-6.4/src/racket/src/jit.c -o jit.o /usr/ports/pobj/racket-minimal-6.4/racket-6.4/src/racket/src/jit.c: In function 'scheme_generate': /usr/ports/pobj/racket-minimal-6.4/racket-6.4/src/racket/src/jit.c:2469:32: error: 'JIT_LOCAL4' undeclared (first use in this function) mz_ld_runstack_base_alt(JIT_RUNSTACK); ^ /usr/ports/pobj/racket-minimal-6.4/racket-6.4/src/racket/src/jit.c:2469:32: note: each undeclared identifier is reported only once for each function it appears in /usr/ports/pobj/racket-minimal-6.4/racket-6.4/src/racket/src/jit.c: In function 'generate_function_getarg': /usr/ports/pobj/racket-minimal-6.4/racket-6.4/src/racket/src/jit.c:3465:26: error: 'JIT_LOCAL4' undeclared (first use in this function) mz_set_local_p(JIT_RUNSTACK, JIT_RUNSTACK_BASE_LOCAL); ^ *** Error 1 in racket/src (Makefile:217 'jit.o') *** Error 1 in racket/src (Makefile:136 'all')
Unlike the default compiler on OpenBSD (GCC 4.2), GCC 4.9.3 supports thread-local storage (emulated).
Answer questions juanfra684
Don't worry, Racket has been building fine for years on OpenBSD/macppc with places and futures disabled. I'm closing the issue because it is very old. I will open new bug reports if I find problems with CS on other architectures.
Thanks for taking caring of the less popular architectures (and OS).
Related questionsNo questions were found.