cisco / ChezScheme

Chez Scheme
Apache License 2.0
6.95k stars 982 forks source link

Problems with compiling ChezScheme in FreeBSD riscv #668

Closed ice051 closed 1 year ago

ice051 commented 1 year ago

When I compiled ChezScheme in racket-8.7.0.2, I encountered the following problem. I compiled it twice, but the problem was the same.

Qemu version: % qemu-system-riscv64 -version QEMU emulator version 7.1.0 Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers

FreeBSD version: uname -a FreeBSD generic 13.1-RELEASE FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC riscv

Compile with gmake and change gcc in configure file to cc.

Here's what happens later in the output window:

cc -DRISCV64 -I/usr/local/include -I/usr/X11R6/include -Irv64fb/boot/rv64fb -Irv64fb/c -Ic/ -Irv64fb/zlib -Irv64fb/lz4/lib -mabi=lp64d -O2 -D_REENTRANT -pthread -Wpointer-arith -Wall -Wextra -Wno-implicit-fallthrough -o rv64fb/c/clearcache.o -c c/clearcache.c c/clearcache.c:48:3: warning: implicit declaration of function '__clear_cache' is invalid in C99 [-Wimplicit-function-declaration] __clear_cache((char )start, (char )end); ^ 1 warning generated. ar rc rv64fb/boot/rv64fb/libkernel.a rv64fb/c/statics.o rv64fb/c/segment.o rv64fb/c/alloc.o rv64fb/c/symbol.o rv64fb/c/intern.o rv64fb/c/gcwrapper.o rv64fb/c/gc-011.o rv64fb/c/gc-par.o rv64fb/c/gc-ocd.o rv64fb/c/gc-oce.o rv64fb/c/number.o rv64fb/c/schsig.o rv64fb/c/io.o rv64fb/c/new-io.o rv64fb/c/print.o rv64fb/c/fasl.o rv64fb/c/vfasl.o rv64fb/c/stats.o rv64fb/c/foreign.o rv64fb/c/prim.o rv64fb/c/prim5.o rv64fb/c/flushcache.o rv64fb/c/schlib.o rv64fb/c/thread.o rv64fb/c/expeditor.o rv64fb/c/scheme.o rv64fb/c/compress-io.o rv64fb/c/random.o rv64fb/c/ffi.o rv64fb/c/clearcache.o cc -DRISCV64 -I/usr/local/include -I/usr/X11R6/include -Irv64fb/boot/rv64fb -Irv64fb/c -Ic/ -Irv64fb/zlib -Irv64fb/lz4/lib -mabi=lp64d -O2 -D_REENTRANT -pthread -Wpointer-arith -Wall -Wextra -Wno-implicit-fallthrough -o rv64fb/boot/rv64fb/main.o -c c/main.c cc -mabi=lp64d -O2 -D_REENTRANT -pthread -o rv64fb/bin/rv64fb/scheme rv64fb/boot/rv64fb/main.o rv64fb/boot/rv64fb/libkernel.a rv64fb/zlib/libz.a rv64fb/lz4/lib/liblz4.a -rdynamic -L/usr/local/lib -liconv -lm -lncurses -lpthread : rv64fb/bin/rv64fb/scheme running rv64fb/bin/rv64fb/scheme to build rv64fb/s/cmacros.so **failed in build-one in loop in module->hash make: * [Makefile:10: build] Error 1