#490 closed defect (invalid)
csc's failing to compile (OS X)
Reported by: | ddp | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 4.9.0 |
Component: | core tools | Version: | 4.6.x |
Keywords: | Cc: | ||
Estimated difficulty: |
Description
Compiling the latest git trunk under 4.6.3, I'm seeing this:
gcc -no-cpp-precomp -fno-strict-aliasing -fwrapv -fno-common -DHAVE_CHICKEN_CONFIG_H -m64 -DC_ENABLE_PTABLES -fPIC -DPIC -c -Os -fomit-frame-pointer csc.c -o csc.o -I. -I./
csc.c: In function ‘f_4171’:
csc.c:2757: error: ‘C_INSTALL_LIB_NAME’ undeclared (first use in this function)
csc.c:2757: error: (Each undeclared identifier is reported only once
csc.c:2757: error: for each function it appears in.)
csc.c:2761: error: ‘C_TARGET_LIB_NAME’ undeclared (first use in this function)
make[1]: * [csc.o] Error 1
make: * [install] Error 2
fluffy537% grep C_INSTALL_LIB_NAME *
Makefile.mingw: echo #ifndef C_INSTALL_LIB_NAME >>$@
Makefile.mingw: echo # define C_INSTALL_LIB_NAME "$(INSTALL_LIB_NAME)" >>$@
csc.c:((C_proc4)(void*)(*((C_word*)t6+1)))(4,t6,t5,C_mpointer(&a,(void*)C_INSTALL_LIB_NAME),C_fix(0));}
csc.scm:(define-foreign-variable INSTALL_LIB_NAME c-string "C_INSTALL_LIB_NAME")
defaults.make: echo "#ifndef C_INSTALL_LIB_NAME" >>$@
defaults.make: echo "# define C_INSTALL_LIB_NAME \"$(INSTALL_LIB_NAME)\"" >>$@
fixed with a fresh 'distclean'