Hi,<br><br>I have added a new scons flag, ppc64 which will pass -m64 to the compiler and hopefully the correct flag to libffi.<br><br>Please build as scons ppc64=1 and let me know what happens.<br><br>Cheers,<br>Andrew<br>
<br><div><span class="gmail_quote">On 2/14/07, <b class="gmail_sendername">Malcolm Wallace</b> &lt;<a href="mailto:Malcolm.Wallace@cs.york.ac.uk">Malcolm.Wallace@cs.york.ac.uk</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&quot;Andrew Wilkinson&quot; &lt;<a href="mailto:andrewjwilkinson@gmail.com">andrewjwilkinson@gmail.com</a>&gt; wrote:<br><br>&gt; I have pushed a patched that may fix this. May being the important<br>&gt; word though...<br>
<br>Yup, the linker no longer complains about the object files having the<br>wrong format.&nbsp;&nbsp;But I&#39;m still stuck...&nbsp;&nbsp;This time, it claims libffi does<br>not contain some things it needs:<br><br>Regards,<br>&nbsp;&nbsp;&nbsp;&nbsp;Malcolm<br>
<br>----<br>$ CCFLAGS=-m64 scons<br>...<br>gcc -DPOWERPC_DARWIN -m64 -Wall -DVERSION=\&quot;0.7.0-20070214152138-custom\&quot; -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
<br>gcc -m64 -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/bu
<br> iltin/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
<br>can&#39;t resolve symbols:<br>&nbsp;&nbsp;_ffi_call, referenced from:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_hsffi_call in hsffi.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_hsffi_evalContext in hsffi.o<br>&nbsp;&nbsp;_ffi_prep_cif_machdep, referenced from:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_ffi_prep_cif in prep_cif.o<br>ld64 failed: symbol(s) not found
<br>collect2: ld returned 1 exit status<br>scons: *** [inst/bin/yhi] Error 1<br>scons: building terminated because of errors.<br><br>_______________________________________________<br>Yhc mailing list<br><a href="mailto:Yhc@haskell.org">
Yhc@haskell.org</a><br><a href="http://www.haskell.org/mailman/listinfo/yhc">http://www.haskell.org/mailman/listinfo/yhc</a><br></blockquote></div><br>