[Yhc] What does Yhc need (error, ffi.h not found)

Isaac isaacdupree at charter.net
Mon Jul 10 14:11:28 EDT 2006


Andrew Wilkinson wrote:

> Please try it out and let me know any error messages that you get!

$ scons
scons: Reading SConscript files ...
svn co http://svn.python.org/projects/ctypes/trunk/ctypes/source/
depends/ctypes
sh: svn: command not found
Bootstrapping...
IOError: [Errno 2] No such file or directory: 'depends/ctypes/SConscript':
  File "Sconstruct", line 32:
    bootstrap(env)
  File "/home/isaac/build/yhc-devel/build/bootstrap.py", line 13:
    copy(env, "depends/ctypes/SConscript", "build/SConscript.ctypes")
  File "/home/isaac/build/yhc-devel/build/bootstrap.py", line 32:
    open(to, "w").write(open(file, "r").read()) # is there a better way
to copy a file?

In other words, I didn't have subversion installed. It would be nice if
the resulting error messages were a bit more obvious though.

After installing subversion and darcs-pulling again, here is the end of
its log (it failed) (I've added a few ###[annotations]### manually):
[...]
Checked out revision 50525.      ###[of ctypes]###
Bootstrapping...
Done.
Checking whether byte ordering is bigendian... failed   ###[bad]###
Checking size of char... 1
Checking size of short... 2
Checking size of int... 4
Checking size of long... 4
Checking size of long long... 8
Checking size of float... 4
Checking size of double... 8
Checking size of void*... 4
Checking for pthread_create() in C library pthread... yes

Generating config.h with the following settings:

    WORDS_BIGENDIAN      None    ###[bad]###
    HAVE_LIBPTHREAD      1
    SIZEOF_LONG_LONG     8
    SIZEOF_LONG          4
    WIN32                0
    SIZEOF_VOIDP         4
    SIZEOF_CHAR          1
    SIZEOF_DOUBLE        8
    SIZEOF_FLOAT         4
    SIZEOF_INT           4
    HAVE_GCC_LABELS      1
    SIZEOF_SHORT         2

TypeError: int argument required:
  File "Sconstruct", line 35:
    configure(env, Configure) # Configure
  File "/home/isaac/build/yhc-devel/build/configure.py", line 42:
    config_h_build('config.h', 'config.h.new.in', vals)
  File "/home/isaac/build/yhc-devel/build/config_h.py", line 21:
    text = config_h_in.read() % defines

(I'm on powerpc which is big-endian)

Isaac


More information about the Yhc mailing list