chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] MacOS X build trouble


From: felix winkelmann
Subject: Re: [Chicken-users] MacOS X build trouble
Date: Fri, 23 Feb 2007 07:19:34 +0100

On 2/22/07, Thomas Christian Chust <address@hidden> wrote:
Hello,

the current CHICKEN darcs head fails to build on my PowerPC iBook
running MacOS X 10.4.8. csc -version tells me the bootstrapping compiler
is version 2.523 - macosx-unix-gnu-ppc - [ libffi dload ptables
applyhook cmake ] and the error I get during the CMake configured build
process reads as follows:

$ make VERBOSE=1
[...]
Linking C executable chicken-static
cd /Users/murphy/Build/chicken/static && /usr/bin/cmake -P
CMakeFiles/chicken-static.dir/cmake_clean_target.cmake
cd /Users/murphy/Build/chicken/static && /usr/bin/gcc    -O3 -DNDEBUG
-headerpad_max_install_names -fPIC
"CMakeFiles/chicken-static.dir/__/batch-driver.o"
"CMakeFiles/chicken-static.dir/__/c-backend.o"
"CMakeFiles/chicken-static.dir/__/c-platform.o"
"CMakeFiles/chicken-static.dir/__/chicken.o"
"CMakeFiles/chicken-static.dir/__/compiler.o"
"CMakeFiles/chicken-static.dir/__/optimizer.o"
"CMakeFiles/chicken-static.dir/__/support.o"   -o chicken-static
-L/Users/murphy/Build/chicken/static -lchicken -ldl -lffi -lm
/usr/bin/ld: Undefined symbols:
_C_emit_trace_info2
collect2: ld returned 1 exit status
make[2]: *** [static/chicken-static] Error 1
make[1]: *** [static/CMakeFiles/chicken-static.dir/all] Error 2
make: *** [all] Error 2


You're linking with the wrong libraries. 2.253 has a new function in
runtime.c (C_emit_trace_info2) which apparently is not found.
Does your installed verison have this symbol? (nm it)

But as you already mention, this is due to the funny static linking
behaviour on the mac. I guess we should disable the -static binaries
on OS X, then.

Brandon: could I just conditionalize the sections in static/CMakeLists.txt
that build/install ...-static? Would that be sufficient, or is there something
else I have to take care of?


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]