
Yes, I can compile that program "test.c" with gcc -c test.c Just to test, without darcs-pulling anything, I re-ran scons on yhc, and it worked to a greater extent than before (then erroring with: /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../powerpc-unknown-linux-gnu/bin/ld: cannot find -lffi ) There must have been something temporary affecting that (my computer was rebooted in between). After darcs pull, scons errored: scons: warning: Ignoring missing SConscript 'src/packages/yhc-base-1.0/YHC/Runtime/SConscript' File "src/packages/yhc-base-1.0/YHC/SConscript", line 9, in ? TypeError: iteration over non-sequence: File "Sconstruct", line 47: yhi_objs, yhcfiles, library, testerfiles = SConscript("src/SConscript") File "/usr/lib/scons/SCons/Script/SConscript.py", line 581: return apply(method, args, kw) File "/usr/lib/scons/SCons/Script/SConscript.py", line 508: return apply(_SConscript, [self.fs,] + files, {'exports' : exports}) File "/usr/lib/scons/SCons/Script/SConscript.py", line 239: exec _file_ in stack[-1].globals File "src/SConscript", line 7: yhc_lib = SConscript("packages/SConscript") File "/usr/lib/scons/SCons/Script/SConscript.py", line 581: return apply(method, args, kw) File "/usr/lib/scons/SCons/Script/SConscript.py", line 508: return apply(_SConscript, [self.fs,] + files, {'exports' : exports}) File "/usr/lib/scons/SCons/Script/SConscript.py", line 239: exec _file_ in stack[-1].globals File "src/packages/SConscript", line 3: yhcobjs = SConscript("yhc-base-1.0/SConscript") File "/usr/lib/scons/SCons/Script/SConscript.py", line 581: return apply(method, args, kw) File "/usr/lib/scons/SCons/Script/SConscript.py", line 508: return apply(_SConscript, [self.fs,] + files, {'exports' : exports}) File "/usr/lib/scons/SCons/Script/SConscript.py", line 239: exec _file_ in stack[-1].globals File "src/packages/yhc-base-1.0/SConscript", line 55: objs += SConscript("YHC/SConscript") File "/usr/lib/scons/SCons/Script/SConscript.py", line 581: return apply(method, args, kw) File "/usr/lib/scons/SCons/Script/SConscript.py", line 508: return apply(_SConscript, [self.fs,] + files, {'exports' : exports}) File "/usr/lib/scons/SCons/Script/SConscript.py", line 239: exec _file_ in stack[-1].globals File "src/packages/yhc-base-1.0/YHC/SConscript", line 9: objs += SConscript("Runtime/SConscript") darcs unpull'ing only those new patches that didn't look like they had to do with ffi, scons then reached the same "cannot find -lffi" error. Thomas Shackell wrote:
Hi Isaac,
can you build any program using ffi.h? e.g.
--- test.c ------------
#include
int main(){ return 0; }
-----------------------
gcc -c test.c
cheers
Tom
Isaac wrote:
Trying scons on a freshly darcs'd yhc from today, I got an error, see: http://paste.lisp.org/display/22129 or, to include the relevant parts of the output here:
gcc -I. -c -o src/runtime/BCKernel/external.o src/runtime/BCKernel/external.c In file included from src/runtime/BCKernel/types.h:5, from src/runtime/BCKernel/hashtable.h:4, from src/runtime/BCKernel/module.h:18, from src/runtime/BCKernel/external.h:4, from src/runtime/BCKernel/external.c:1: src/runtime/BCKernel/platform.h:103:17: ffi.h: No such file or directory scons: *** [src/runtime/BCKernel/external.o] Error 1 scons: building terminated because of errors.
On IRC, ndm suggested that "libffi" was needed; after "emerge libffi" the error still happened -- so, me being on gentoo-linux ppc, ndm on Windows, referred me to this list. I'm trying to find out what is actually needed to successfully compile Yhc (now, for me, at least). _______________________________________________ Yhc mailing list Yhc@haskell.org http://www.haskell.org//mailman/listinfo/yhc