[Yhc] Problem building on Mac OS X

Brent Fulgham bfulgham at mac.com
Thu Jun 29 22:38:12 EDT 2006


Attempting to build with gcc 4.0 on OS X fails with the following  
errors.  Has anyone else successfully built on OS X?

Thanks,

-Brent

make[5]: Nothing to be done for `all'.
true "AR_FLAGS=" "CC_FOR_BUILD=" "CFLAGS=-I/opt/local/include"  
"CXXFLAGS=" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=" "INSTALL=/usr/ 
bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644"  
"INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/ 
install -c" "JC1FLAGS=" "LDFLAGS=" "LIBCFLAGS="  
"LIBCFLAGS_FOR_TARGET=" "MAKE=make" "MAKEINFO=/bin/sh /Users/brent/ 
Projects/Yhc/yhc-devel/src/runtime/libffi/missing --run makeinfo   "  
"PICFLAG=" "PICFLAG_FOR_TARGET=" "RUNTESTFLAGS=" "SHELL=/bin/sh"  
"exec_prefix=/usr/local" "infodir=/usr/local/info" "libdir=/usr/local/ 
lib" "prefix=/usr/local" "AR=ar" "AS=as" "CC=gcc" "CXX=g++" "LD=ld"  
"NM=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # make
make -C BCKernel
gcc   -g -o ../../../inst/bin/yhi obj/hashtable.o obj/module.o obj/ 
iofuncs.o obj/main.o obj/primitive.o obj/pretty.o obj/heap.o obj/ 
mutator.o obj/integer.o obj/mark.o obj/jonkers.o obj/sanity.o obj/ 
external.o obj/info.o obj/make.o obj/foreign.o obj/process.o obj/ 
thread.o obj/ffi.o obj/stable.o obj/Prelude.o obj/IO.o obj/FFI.o obj/ 
System.o obj/PackedString.o obj/Concurrent.o obj/Array.o -lm - 
lpthread -ldl -lgmp  ../libffi/.libs/libffi.a
/usr/bin/ld: multiple definitions of symbol _hsffi_call
obj/ffi.o definition of _hsffi_call in section (__TEXT,__text)
obj/FFI.o definition of _hsffi_call in section (__TEXT,__text)
/usr/bin/ld: multiple definitions of symbol _hsffi_finalizeAllWaiting
obj/ffi.o definition of _hsffi_finalizeAllWaiting in section  
(__TEXT,__text)
obj/FFI.o definition of _hsffi_finalizeAllWaiting in section  
(__TEXT,__text)
/usr/bin/ld: multiple definitions of symbol _hsffi_init
obj/ffi.o definition of _hsffi_init in section (__TEXT,__text)
obj/FFI.o definition of _hsffi_init in section (__TEXT,__text)
/usr/bin/ld: multiple definitions of symbol _hsffi_loadExternal
obj/ffi.o definition of _hsffi_loadExternal in section (__TEXT,__text)
obj/FFI.o definition of _hsffi_loadExternal in section (__TEXT,__text)
/usr/bin/ld: multiple definitions of symbol _hsffi_waitForFFI
obj/ffi.o definition of _hsffi_waitForFFI in section (__TEXT,__text)
obj/FFI.o definition of _hsffi_waitForFFI in section (__TEXT,__text)
/usr/bin/ld: can't locate file for: -lgmp
collect2: ld returned 1 exit status
make[2]: *** [../../../inst/bin/yhi] Error 1
make[1]: *** [kernel] Error 2
make: *** [runtime] Error 2
Chaz:~/Projects/Yhc/yhc-devel brent$



More information about the Yhc mailing list