[MacPorts] #30976: pypy fails to build (cc1: error: unrecognized command line option "-arch" )

MacPorts noreply at macports.org
Thu Aug 25 10:00:53 PDT 2011


#30976: pypy fails to build (cc1: error: unrecognized command line option "-arch" )
------------------------------------+---------------------------------------
 Reporter:  jwm.columbia@…          |       Owner:  macports-tickets@…                   
     Type:  defect                  |      Status:  new                                  
 Priority:  Normal                  |   Milestone:                                       
Component:  ports                   |     Version:  2.0.1                                
 Keywords:                          |        Port:  pypy                                 
------------------------------------+---------------------------------------
 When trying to build pypy on a system where it has not previously been
 installed (i.e. using python27, or python27-apple), the build process
 fails.

 It appears the problem is caused by the CC flag "-arch x86_64", which I
 believe is specific to GCC on Darwin, and is not present in the compiler
 used (/opt/local/bin/gcc-mp-4.5).

 Output of the offending build step is below. main.log is attached.

 Thanks for your help!

 --

 {{{
 [version:WARNING] Errors getting Mercurial information: Not running from a
 Mercurial repository!
 [platform:msg] Setting platform to 'host' cc=/opt/local/bin/gcc-mp-4.5
 [translation:info] Translating target as defined by targetpypystandalone
 [platform:execute] /opt/local/bin/gcc-mp-4.5 -c -arch x86_64 -O3 -fomit-
 frame-pointer -mdynamic-no-pic
 /var/folders/9q/yg5x8qn176s3gcn095qkkn_00000gn/T/usession-
 unknown-4/gcctest.c -o /var/folders/9q/yg5x8qn176s3gcn095qkkn_00000gn/T
 /usession-unknown-4/gcctest.o
 [platform:Error] cc1: error: unrecognized command line option "-arch"
 Traceback (most recent call last):
   File "translate.py", line 324, in <module>
     main()
   File "translate.py", line 210, in main
     targetspec_dic, translateconfig, config, args =
 parse_options_and_load_target()
   File "translate.py", line 178, in parse_options_and_load_target
     targetspec_dic['handle_config'](config, translateconfig)
   File "targetpypystandalone.py", line 123, in handle_config
     from pypy.objspace.std import multimethod
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_pypy/pypy/work
 /pypy-pypy-release-1.6/pypy/objspace/std/__init__.py", line 1, in <module>
     from pypy.objspace.std.objspace import StdObjSpace
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_pypy/pypy/work
 /pypy-pypy-release-1.6/pypy/objspace/std/objspace.py", line 7, in <module>
     from pypy.objspace.std import (builtinshortcut, stdtypedef, frame,
 model,
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_pypy/pypy/work
 /pypy-pypy-release-1.6/pypy/objspace/std/builtinshortcut.py", line 3, in
 <module>
     from pypy.objspace.descroperation import DescrOperation
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_pypy/pypy/work
 /pypy-pypy-release-1.6/pypy/objspace/descroperation.py", line 8, in
 <module>
     from pypy.module.__builtin__.interp_classobj import W_InstanceObject
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_pypy/pypy/work
 /pypy-pypy-release-1.6/pypy/module/__builtin__/__init__.py", line 4, in
 <module>
     import pypy.module.imp.importing
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_pypy/pypy/work
 /pypy-pypy-release-1.6/pypy/module/imp/importing.py", line 14, in <module>
     from pypy.rlib import streamio, jit
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_pypy/pypy/work
 /pypy-pypy-release-1.6/pypy/rlib/streamio.py", line 43, in <module>
     from pypy.rlib import rposix
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_pypy/pypy/work
 /pypy-pypy-release-1.6/pypy/rlib/rposix.py", line 2, in <module>
     from pypy.rpython.lltypesystem.rffi import CConstant, CExternVariable,
 INT
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_pypy/pypy/work
 /pypy-pypy-release-1.6/pypy/rpython/lltypesystem/rffi.py", line 459, in
 <module>
     NUMBER_TYPES = setup()
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_pypy/pypy/work
 /pypy-pypy-release-1.6/pypy/rpython/lltypesystem/rffi.py", line 448, in
 setup
     names = populate_inttypes()
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_pypy/pypy/work
 /pypy-pypy-release-1.6/pypy/rpython/lltypesystem/rffi.py", line 442, in
 populate_inttypes
     platform.populate_inttypes(populatelist)
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_pypy/pypy/work
 /pypy-pypy-release-1.6/pypy/rpython/tool/rfficache.py", line 82, in
 populate_inttypes
     sizes = sizeof_c_types(names_c, **kwds)
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_pypy/pypy/work
 /pypy-pypy-release-1.6/pypy/rpython/tool/rfficache.py", line 44, in
 sizeof_c_types
     answer = ask_gcc(question, **kwds)
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_pypy/pypy/work
 /pypy-pypy-release-1.6/pypy/rpython/tool/rfficache.py", line 34, in
 ask_gcc
     return build_executable_cache([c_file], eci)
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_pypy/pypy/work
 /pypy-pypy-release-1.6/pypy/tool/gcc_cache.py", line 27, in
 build_executable_cache
     result = platform.execute(platform.compile(c_files, eci))
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_pypy/pypy/work
 /pypy-pypy-release-1.6/pypy/translator/platform/__init__.py", line 51, in
 compile
     ofiles = self._compile_o_files(cfiles, eci, standalone)
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_pypy/pypy/work
 /pypy-pypy-release-1.6/pypy/translator/platform/__init__.py", line 60, in
 _compile_o_files
     ofiles.append(self._compile_c_file(self.cc, cfile, compile_args))
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_pypy/pypy/work
 /pypy-pypy-release-1.6/pypy/translator/platform/posix.py", line 38, in
 _compile_c_file
     cwd=str(cfile.dirpath()))
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_pypy/pypy/work
 /pypy-pypy-release-1.6/pypy/translator/platform/__init__.py", line 118, in
 _execute_c_compiler
     self._handle_error(returncode, stdout, stderr, outname)
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_pypy/pypy/work
 /pypy-pypy-release-1.6/pypy/translator/platform/__init__.py", line 130, in
 _handle_error
     raise CompilationError(stdout, stderr)
 pypy.translator.platform.CompilationError: CompilationError(err="""
         cc1: error: unrecognized command line option "-arch"
         """)
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/30976>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list