[Yhc] Can't compile

Isaac isaacdupree at charter.net
Mon Jul 31 08:05:29 EDT 2006


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

$ darcs pull
$ scons clean #since the same error happened without doing this step
$ scons
[...]
gcc -Wall -I. -Idepends/ctypes/libffi/include
- -Idepends/ctypes/libffi/include -Idepends/ctypes/libffi/src/powerpc
- -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/powerpc/ffitarget.h:72: error:
'FFI_DEFAULT_ABI' undeclared here (not in a function)
scons: *** [depends/ctypes/libffi/src/cfield.o] Error 1
scons: building terminated because of errors.


Looking in the included file that apparently should define
'FFI_DEFAULT_ABI' (src/runtime/libffi/src/powerpc/ffitarget.h), it looks
like it requires 'POWERPC' to be defined, just as the x86 version of
that file requires 'X86' to be defined, for it to define
'FFI_DEFAULT_ABI'. In build/ffih/ffi.h it appears to be defined (wrongly
[for me]):
/* Specify which architecture libffi is configured for. */
#define X86

By the way, these are the relevant symbols that my C preprocessor
defines by default. I think 'X86', 'POWERPC', etc. were deliberately
chosen so as not to be in this set though.
$ echo '' | cpp -dM | grep -i 'ppc\|powerpc'
#define __PPC__ 1
#define _ARCH_PPC 1
#define __powerpc__ 1
#define __PPC 1
#define __powerpc 1
#define PPC 1
#define powerpc 1


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

iD8DBQFEzfIIHgcxvIWYTTURAkhJAJ4rEPdPfmm54DR8w38N5G48x1ItRgCfSpFZ
o5K0z/eJkihTqlk7d5iupc0=
=26Q6
-----END PGP SIGNATURE-----


More information about the Yhc mailing list