cisco / ChezScheme

Chez Scheme
Apache License 2.0
7k stars 987 forks source link

Build fails in Fedora 26 #193

Closed aalireza closed 7 years ago

aalireza commented 7 years ago

The output of sudo make install is:

(cd a6le && make install)
(cd c ; make)
ln -s ../../c/statics.c statics.c
ln -s ../../c/system.h system.h
ln -s ../../c/types.h types.h
ln -s ../../c/version.h version.h
ln -s ../../c/externs.h externs.h
ln -s ../../c/globals.h globals.h
ln -s ../../c/segment.h segment.h
ln -s ../../c/thread.h thread.h
ln -s ../../c/sort.h sort.h
gcc  -m64 -msse2 -Wpointer-arith -Wall -Wextra -Werror -O2  -c -DX86_64 -I../boot/a6le -I../zlib statics.c
ln -s ../../c/segment.c segment.c
gcc  -m64 -msse2 -Wpointer-arith -Wall -Wextra -Werror -O2  -c -DX86_64 -I../boot/a6le -I../zlib segment.c
ln -s ../../c/alloc.c alloc.c
gcc  -m64 -msse2 -Wpointer-arith -Wall -Wextra -Werror -O2  -c -DX86_64 -I../boot/a6le -I../zlib alloc.c
ln -s ../../c/symbol.c symbol.c
gcc  -m64 -msse2 -Wpointer-arith -Wall -Wextra -Werror -O2  -c -DX86_64 -I../boot/a6le -I../zlib symbol.c
ln -s ../../c/intern.c intern.c
gcc  -m64 -msse2 -Wpointer-arith -Wall -Wextra -Werror -O2  -c -DX86_64 -I../boot/a6le -I../zlib intern.c
ln -s ../../c/gcwrapper.c gcwrapper.c
gcc  -m64 -msse2 -Wpointer-arith -Wall -Wextra -Werror -O2  -c -DX86_64 -I../boot/a6le -I../zlib gcwrapper.c
ln -s ../../c/gc-ocd.c gc-ocd.c
ln -s ../../c/gc.c gc.c
gcc  -m64 -msse2 -Wpointer-arith -Wall -Wextra -Werror -O2  -c -DX86_64 -I../boot/a6le -I../zlib gc-ocd.c
ln -s ../../c/gc-oce.c gc-oce.c
gcc  -m64 -msse2 -Wpointer-arith -Wall -Wextra -Werror -O2  -c -DX86_64 -I../boot/a6le -I../zlib gc-oce.c
ln -s ../../c/number.c number.c
gcc  -m64 -msse2 -Wpointer-arith -Wall -Wextra -Werror -O2  -c -DX86_64 -I../boot/a6le -I../zlib number.c
ln -s ../../c/schsig.c schsig.c
gcc  -m64 -msse2 -Wpointer-arith -Wall -Wextra -Werror -O2  -c -DX86_64 -I../boot/a6le -I../zlib schsig.c
schsig.c: In function ‘handle_signal’:
schsig.c:590:13: error: this statement may fall through [-Werror=implicit-fallthrough=]
             S_abnormal_exit();
             ^~~~~~~~~~~~~~~~~
schsig.c:592:9: note: here
         case SIGILL:
         ^~~~
schsig.c:594:13: error: this statement may fall through [-Werror=implicit-fallthrough=]
             S_error_reset("illegal instruction");
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
schsig.c:595:9: note: here
         case SIGFPE:
         ^~~~
schsig.c:597:13: error: this statement may fall through [-Werror=implicit-fallthrough=]
             S_error_reset("arithmetic overflow");
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
schsig.c:599:9: note: here
         case SIGBUS:
         ^~~~
schsig.c:603:16: error: this statement may fall through [-Werror=implicit-fallthrough=]
             if (S_pants_down)
                ^
schsig.c:607:9: note: here
         default:
         ^~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:29: schsig.o] Error 1
make[1]: *** [Makefile:20: build] Error 2
make: *** [Makefile:22: install] Error 2

The prerequisites are installed. GCC version is (Red Hat 7.1.103). Any input is appreciated.

gwatt commented 7 years ago

Are you running the latest code from Chez? I had a PR that was supposed to fix this problem: https://github.com/cisco/ChezScheme/pull/183.

aalireza commented 7 years ago

@gwatt Thanks! Yeah the latest code works. I initially downloaded the release version.