<div dir="ltr">I checked out a copy of pypy today and upon trying to run "python pypy-dist/pypy/bin/py.py" I get this error:<br><br>k@k-desktop:~$ python pypy-dist/pypy/bin/py.py<br>[cbuild:execute] cc -O3 -fomit-frame-pointer -pthread -c gcctest.c -o gcctest.o<br>
Traceback (most recent call last):<br> File "pypy-dist/pypy/bin/py.py", line 147, in <module><br> sys.exit(main_(sys.argv))<br> File "pypy-dist/pypy/bin/py.py", line 64, in main_<br> space = option.make_objspace(config)<br>
File "/home/k/pypy-dist/pypy/tool/option.py", line 48, in make_objspace<br> space = Space(config)<br> File "/home/k/pypy-dist/pypy/interpreter/baseobjspace.py", line 237, in __init__<br> self.initialize()<br>
File "/home/k/pypy-dist/pypy/objspace/std/objspace.py", line 71, in initialize<br> self.model = StdTypeModel(self.config)<br> File "/home/k/pypy-dist/pypy/objspace/std/model.py", line 88, in __init__<br>
import pypy.objspace.std.marshal_impl # install marshal multimethods<br> File "/home/k/pypy-dist/pypy/objspace/std/marshal_impl.py", line 21, in <module><br> from pypy.rlib.rstruct import ieee<br> File "/home/k/pypy-dist/pypy/rlib/rstruct/__init__.py", line 8, in <module><br>
from pypy.rlib.rstruct.formatiterator import FormatIterator<br> File "/home/k/pypy-dist/pypy/rlib/rstruct/formatiterator.py", line 2, in <module><br> from pypy.rlib.rstruct.nativefmttable import native_is_bigendian<br>
File "/home/k/pypy-dist/pypy/rlib/rstruct/nativefmttable.py", line 8, in <module><br> from pypy.rpython.tool import rffi_platform<br> File "/home/k/pypy-dist/pypy/rpython/tool/rffi_platform.py", line 5, in <module><br>
from pypy.rpython.lltypesystem import rffi<br> File "/home/k/pypy-dist/pypy/rpython/lltypesystem/rffi.py", line 338, in <module><br> NUMBER_TYPES = setup()<br> File "/home/k/pypy-dist/pypy/rpython/lltypesystem/rffi.py", line 330, in setup<br>
tp = platform.inttype(name.upper(), c_name, signed)<br> File "/home/k/pypy-dist/pypy/rpython/tool/rfficache.py", line 49, in inttype<br> bits = sizeof_c_type(c_name, **kwds) * 8<br> File "/home/k/pypy-dist/pypy/rpython/tool/rfficache.py", line 38, in sizeof_c_type<br>
return int(ask_gcc(question, **kwds))<br> File "/home/k/pypy-dist/pypy/rpython/tool/rfficache.py", line 34, in ask_gcc<br> return build_executable_cache([c_file], eci)<br> File "/home/k/pypy-dist/pypy/tool/gcc_cache.py", line 23, in build_executable_cache<br>
result = py.process.cmdexec(build_executable(c_files, eci))<br> File "/home/k/pypy-dist/pypy/translator/tool/cbuild.py", line 621, in build_executable<br> compiler.build(noerr=noerr)<br> File "/home/k/pypy-dist/pypy/translator/tool/cbuild.py", line 574, in build<br>
raise CompilationError(data)<br>pypy.translator.tool.cbuild.CompilationError: gcctest.c:3:20: error: stdlib.h: No such file or directory<br>gcctest.c:4:23: error: sys/types.h: No such file or directory<br>gcctest.c: In function 'main':<br>
gcctest.c:11: warning: incompatible implicit declaration of built-in function 'printf'<br>gcctest.c:13:2: warning: no newline at end of file<br>command 'cc' failed with exit status 1<br><br>My gcc -v is this:<br>gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)<br>
<br>And my python version is this:<br>Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) <br>[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2<br><br>Can anyone suggest how I might fix this?<br><br>Thanks!<br><br>p.s. I know this is a pretty noob question, and I am not sure if a development mailing list is the right place to post it, but right now it seems like the only potential place I can find. Am I wrong in this assumption, and is there another list dedicated to people trying to get into pypy?<br>
</div>