[Yhc] build system issues

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Fri Feb 16 07:17:49 EST 2007


Andrew,

> I have added a new scons flag, ppc64 which will pass -m64 to the
> compiler and hopefully the correct flag to libffi.
> Please build as scons ppc64=1 and let me know what happens.

Well, it seems to fail on the linking line again, because the -m64 flag
is missing there once again.

$ scons ppc64=1
...
gcc -DPOWERPC_DARWIN -Wall -O -DVERSION=\"0.7.0-20070216115551-custom\" -DPOWERPC64 -m64 -I. -I/usr/local/include -I/opt/local/include -I/Library/Frameworks/GMP.Framework/Headers -Idepends/ctypes/libffi/include -Idepends/ctypes/libffi/src/powerpc -c -o src/runtime/BCKernel/builtin/System.o src/runtime/BCKernel/builtin/System.c
gcc -Xlinker -lgmp -o inst/bin/yhi src/runtime/BCKernel/basepath.o src/runtime/BCKernel/external.o src/runtime/BCKernel/foreign.o src/runtime/BCKernel/hashtable.o src/runtime/BCKernel/heap.o src/runtime/BCKernel/hsffi.o src/runtime/BCKernel/info.o src/runtime/BCKernel/integer.o src/runtime/BCKernel/iofuncs.o src/runtime/BCKernel/jonkers.o src/runtime/BCKernel/main.o src/runtime/BCKernel/make.o src/runtime/BCKernel/mark.o src/runtime/BCKernel/module.o src/runtime/BCKernel/mutator.o src/runtime/BCKernel/pretty.o src/runtime/BCKernel/primitive.o src/runtime/BCKernel/process.o src/runtime/BCKernel/profile.o src/runtime/BCKernel/sanity.o src/runtime/BCKernel/stable.o src/runtime/BCKernel/stopcopy.o src/runtime/BCKernel/thread.o src/runtime/BCKernel/builtin/Array.o src/runtime/BCKernel/builtin/Concurrent.o src/runtime/BCKernel/builtin/FFI.o src/runtime/BCKernel/builtin/IO.o src/runtime/BCKernel/builtin/IORef.o src/runtime/BCKernel/builtin/PackedString.o src/runtime/BCKernel/builtin/Prelude.o src/runtime/BCKernel/builtin/RuntimeAPI.o src/runtime/BCKernel/builtin/System.o depends/ctypes/libffi/src/prep_cif.o depends/ctypes/libffi/src/cfield.o depends/ctypes/libffi/src/powerpc/ffi_darwin.o depends/ctypes/libffi/src/powerpc/darwin.o depends/ctypes/libffi/src/powerpc/darwin_closure.o -L/usr/local/lib -L/opt/local/lib -L/Library/Frameworks/GMP.Framework -ldl
/usr/bin/ld: truncated or malformed archive: /sw/lib/libgmp.a (ranlib structures in table of contents extends past the end of the table of contents, can't load from it)
/usr/bin/ld: src/runtime/BCKernel/basepath.o bad magic number (not a Mach-O file)
/usr/bin/ld: src/runtime/BCKernel/external.o bad magic number (not a Mach-O file)
[ ... lots more errors like the last two ... ]


Regards,
    Malcolm


More information about the Yhc mailing list