[PyPy-issue] [issue709] pypy 1.5 crashes and fails when compiling pypy on OSX

Albert Zeyer pypy-dev-issue at codespeak.net
Sun May 1 21:02:13 CEST 2011


Albert Zeyer <albzey at gmail.com> added the comment:

It doesn't crash when I use CPython but it still fails:


az at 83-177 1040 (goal) %python translate.py -Ojit
[translation:info] Translating target as defined by targetpypystandalone
[platform:msg] Setting platform to 'host' cc=None
[platform:execute] gcc-4.0 -c -arch x86_64 -O3 -fomit-frame-pointer -mmacosx-version-min=10.4 -
mdynamic-no-pic /var/folders/R8/R8aYzRERF68DMPAw0sz09++++TM/-Tmp-/usession-default-
0/gcctest.c -o /var/folders/R8/R8aYzRERF68DMPAw0sz09++++TM/-Tmp-/usession-default-
0/gcctest.o
Traceback (most recent call last):
  File "translate.py", line 322, in <module>
    main()
  File "translate.py", line 208, in main
    targetspec_dic, translateconfig, config, args = parse_options_and_load_target()
  File "translate.py", line 176, in parse_options_and_load_target
    targetspec_dic['handle_config'](config, translateconfig)
  File "targetpypystandalone.py", line 122, in handle_config
    from pypy.objspace.std import multimethod
  File "/Users/az/Programmierung/pypy/pypy/objspace/std/__init__.py", line 1, in <module>
    from pypy.objspace.std.objspace import StdObjSpace
  File "/Users/az/Programmierung/pypy/pypy/objspace/std/objspace.py", line 3, in <module>
    from pypy.interpreter import pyframe, function, special
  File "/Users/az/Programmierung/pypy/pypy/interpreter/pyframe.py", line 14, in <module>
    from pypy.rlib import jit, rstack
  File "/Users/az/Programmierung/pypy/pypy/rlib/rstack.py", line 12, in <module>
    from pypy.rpython.lltypesystem import lltype, rffi
  File "/Users/az/Programmierung/pypy/pypy/rpython/lltypesystem/rffi.py", line 415, in <module>
    NUMBER_TYPES = setup()
  File "/Users/az/Programmierung/pypy/pypy/rpython/lltypesystem/rffi.py", line 404, in setup
    names = populate_inttypes()
  File "/Users/az/Programmierung/pypy/pypy/rpython/lltypesystem/rffi.py", line 398, in 
populate_inttypes
    platform.populate_inttypes(populatelist)
  File "/Users/az/Programmierung/pypy/pypy/rpython/tool/rfficache.py", line 82, in populate_inttypes
    sizes = sizeof_c_types(names_c, **kwds)
  File "/Users/az/Programmierung/pypy/pypy/rpython/tool/rfficache.py", line 44, in sizeof_c_types
    answer = ask_gcc(question, **kwds)
  File "/Users/az/Programmierung/pypy/pypy/rpython/tool/rfficache.py", line 34, in ask_gcc
    return build_executable_cache([c_file], eci)
  File "/Users/az/Programmierung/pypy/pypy/tool/gcc_cache.py", line 27, in build_executable_cache
    result = platform.execute(platform.compile(c_files, eci))
  File "/Users/az/Programmierung/pypy/pypy/translator/platform/__init__.py", line 50, in compile
    ofiles = self._compile_o_files(cfiles, eci, standalone)
  File "/Users/az/Programmierung/pypy/pypy/translator/platform/__init__.py", line 59, in 
_compile_o_files
    ofiles.append(self._compile_c_file(self.cc, cfile, compile_args))
  File "/Users/az/Programmierung/pypy/pypy/translator/platform/posix.py", line 38, in _compile_c_file
    cwd=str(cfile.dirpath()))
  File "/Users/az/Programmierung/pypy/pypy/translator/platform/__init__.py", line 116, in 
_execute_c_compiler
    cwd)
  File "/Users/az/Programmierung/pypy/pypy/tool/runsubprocess.py", line 11, in run_subprocess
    return _run(executable, args, env, cwd)
  File "/Users/az/Programmierung/pypy/pypy/tool/runsubprocess.py", line 73, in _run
    raise OSError('%s: %s\nargs=%r' % (args[0], results[1], args))
OSError: gcc-4.0: [Errno 2] No such file or directory
args=('gcc-4.0', ['-c', '-arch', 'x86_64', '-O3', '-fomit-frame-pointer', '-mmacosx-version-min=10.4', '-
mdynamic-no-pic', '/var/folders/R8/R8aYzRERF68DMPAw0sz09++++TM/-Tmp-/usession-default-
0/gcctest.c', '-o', '/var/folders/R8/R8aYzRERF68DMPAw0sz09++++TM/-Tmp-/usession-default-
0/gcctest.o'], None, '/var/folders/R8/R8aYzRERF68DMPAw0sz09++++TM/-Tmp-/usession-default-0')
az at 83-177 1041 (goal) %

----------
status: unread -> chatting

_______________________________________________________
PyPy development tracker <pypy-dev-issue at codespeak.net>
<https://codespeak.net/issue/pypy-dev/issue709>
_______________________________________________________



More information about the Pypy-issue mailing list