[Yhc] Can't compile

Isaac isaacdupree at charter.net
Tue Jul 25 07:05:47 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> I've just pushed a patch to darcs that fixes the problem on another machine
> I have access to, that doesn't have libffi installed.


Which only works for x86:

hunk ./build/platform.py 24
    +    env.Append(CPPPATH=["#depends/ctypes/libffi/include",
"#depends/ctypes/libffi/src/x86"])

On ppc I got these errors, though I can't be sure the particular errors
are due to the architecture mismatch:

gcc -Wall -I. -Idepends/ctypes/libffi/include
- -Idepends/ctypes/libffi/src/x86 -Idepends/ctypes/libffi/include
- -Idepends/ctypes/libffi/src/x86 -Idepends/ctypes/libffi -c -o
depends/ctypes/libffi/src/cfield.o depends/ctypes/libffi/src/cfield.c
In file included from depends/ctypes/libffi/include/ffi.h:63,
                 from depends/ctypes/libffi/src/cfield.c:1:
depends/ctypes/libffi/src/x86/ffitarget.h:64: error: `FFI_DEFAULT_ABI'
undeclared here (not in a function)
depends/ctypes/libffi/src/x86/ffitarget.h:65: error: enumerator value
for `FFI_LAST_ABI' not integer constant
scons: *** [depends/ctypes/libffi/src/cfield.o] Error 1
scons: building terminated because of errors.

Actually, changing that place to ppc didn't help by itself; a quick grep
suggests that "x86" is hardcoded in a few places in
build/SConscript.libffi as well. I don't know what the correct portable
incantation is for that in python/scons, though (on my system I'd use
uname -m, but that obviously isn't likely to work on Windows).

I look forward to the time when I can get a mere failure to compile my
circularly dependent modules again :D (not that I'd mind if it was
possible by then ;)

Isaac

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFExfsKHgcxvIWYTTURAkUnAJ0athHUYwDbZevYWumjZtLBGb3PXwCdHZCx
mrDXw2GbGhnM6IjhIhr/8UY=
=3i2q
-----END PGP SIGNATURE-----


More information about the Yhc mailing list