[MacPorts] #38721: py33-numpy fails to build universal
#38721: py33-numpy fails to build universal ------------------------------+-------------------------------- Reporter: david.w.watson@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: py33-numpy ------------------------------+-------------------------------- See log. -- Ticket URL: <https://trac.macports.org/ticket/38721> MacPorts <http://www.macports.org/> Ports system for OS X
#38721: py33-numpy fails to build universal -------------------------------+-------------------------------- Reporter: david.w.watson@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: py33-numpy | -------------------------------+-------------------------------- Comment (by egall@…): Relevant part of log: {{{ :info:destroot /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports .org_release_tarballs_ports_python_py- numpy/py33-numpy/work/numpy-1.7.1/c-wrapper -arch x86_64 -arch i386 _configtest.o -o _configtest :info:destroot ld: warning: ignoring file _configtest.o, file was built for unsupported file format which is not the architecture being linked (i386) :info:destroot Undefined symbols for architecture i386: :info:destroot "_main", referenced from: :info:destroot start in crt1.10.5.o :info:destroot ld: symbol(s) not found for architecture i386 :info:destroot collect2: ld returned 1 exit status :info:destroot ld: warning: ignoring file _configtest.o, file was built for unsupported file format which is not the architecture being linked (i386) :info:destroot Undefined symbols for architecture i386: :info:destroot "_main", referenced from: :info:destroot start in crt1.10.5.o :info:destroot ld: symbol(s) not found for architecture i386 :info:destroot collect2: ld returned 1 exit status :info:destroot failure. :info:destroot removing: _configtest.c _configtest.o :info:destroot Running from numpy source directory. :info:destroot Traceback (most recent call last): :info:destroot File "setup.py", line 214, in <module> :info:destroot setup_package() :info:destroot File "setup.py", line 207, in setup_package :info:destroot configuration=configuration ) :info:destroot File "/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports .org_release_tarballs_ports_python_py- numpy/py33-numpy/work/numpy-1.7.1/build/py3k/numpy/distutils/core.py", line 186, in setup :info:destroot return old_setup(**new_attr) :info:destroot File "/opt/macports/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/distutils/core.py", line 148, in setup :info:destroot dist.run_commands() :info:destroot File "/opt/macports/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/distutils/dist.py", line 929, in run_commands :info:destroot self.run_command(cmd) :info:destroot File "/opt/macports/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/distutils/dist.py", line 948, in run_command :info:destroot cmd_obj.run() :info:destroot File "/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports .org_release_tarballs_ports_python_py- numpy/py33-numpy/work/numpy-1.7.1/build/py3k/numpy/distutils/command/install.py", line 55, in run :info:destroot r = old_install.run(self) :info:destroot File "/opt/macports/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/distutils/command/install.py", line 569, in run :info:destroot self.run_command('build') :info:destroot File "/opt/macports/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/distutils/cmd.py", line 313, in run_command :info:destroot self.distribution.run_command(command) :info:destroot File "/opt/macports/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/distutils/dist.py", line 948, in run_command :info:destroot cmd_obj.run() :info:destroot File "/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports .org_release_tarballs_ports_python_py- numpy/py33-numpy/work/numpy-1.7.1/build/py3k/numpy/distutils/command/build.py", line 37, in run :info:destroot old_build.run(self) :info:destroot File "/opt/macports/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/distutils/command/build.py", line 126, in run :info:destroot self.run_command(cmd_name) :info:destroot File "/opt/macports/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/distutils/cmd.py", line 313, in run_command :info:destroot self.distribution.run_command(command) :info:destroot File "/opt/macports/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/distutils/dist.py", line 948, in run_command :info:destroot cmd_obj.run() :info:destroot File "/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports .org_release_tarballs_ports_python_py- numpy/py33-numpy/work/numpy-1.7.1/build/py3k/numpy/distutils/command/build_src.py", line 152, in run :info:destroot self.build_sources() :info:destroot File "/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports .org_release_tarballs_ports_python_py- numpy/py33-numpy/work/numpy-1.7.1/build/py3k/numpy/distutils/command/build_src.py", line 163, in build_sources :info:destroot self.build_library_sources(*libname_info) :info:destroot File "/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports .org_release_tarballs_ports_python_py- numpy/py33-numpy/work/numpy-1.7.1/build/py3k/numpy/distutils/command/build_src.py", line 298, in build_library_sources :info:destroot sources = self.generate_sources(sources, (lib_name, build_info)) :info:destroot File "/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports .org_release_tarballs_ports_python_py- numpy/py33-numpy/work/numpy-1.7.1/build/py3k/numpy/distutils/command/build_src.py", line 385, in generate_sources :info:destroot source = func(extension, build_dir) :info:destroot File "numpy/core/setup.py", line 648, in get_mathlib_info :info:destroot raise RuntimeError("Broken toolchain: cannot link a simple C program") :info:destroot RuntimeError: Broken toolchain: cannot link a simple C program :info:destroot Command failed: cd "/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports .org_release_tarballs_ports_python_py-numpy/py33-numpy/work/numpy-1.7.1" && /opt/macports/Library/Frameworks/Python.framework/Versions/3.3/bin/python3.3 setup.py --no-user-cfg install --prefix=/opt/macports/Library/Frameworks/Python.framework/Versions/3.3 --root=/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports .org_release_tarballs_ports_python_py-numpy/py33-numpy/work/destroot }}} -- Ticket URL: <https://trac.macports.org/ticket/38721#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#38721: py33-numpy fails to build universal -------------------------------+-------------------------------- Reporter: david.w.watson@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: py33-numpy | -------------------------------+-------------------------------- Comment (by michaelld@…): What's happening is that the test file "_configtest.c" is being compiled without arch-specific flags (and, hence, for the CPU-native arch), but linked with them; hence, linking fails and setup.py says that the toolchain is broken -- a bit of an overstatement, if you ask me! I'm trying to familiarize myself with how numpy does its setup/configure/build/install to understand why this is happening when it does not for Python 2.7 (which is the version I use). -- Ticket URL: <https://trac.macports.org/ticket/38721#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#38721: py33-numpy fails to build universal -------------------------------+-------------------------------- Reporter: david.w.watson@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: py33-numpy | -------------------------------+-------------------------------- Comment (by michaelld@…): I'm getting closer to fixing this an some other issues with numpy. I've figured out how to get the arch flags to work, now trying to get the Python header location correct in my reworking of the Portfile. -- Ticket URL: <https://trac.macports.org/ticket/38721#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#38721: py33-numpy fails to build universal -------------------------------+-------------------------------- Reporter: david.w.watson@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: py33-numpy | -------------------------------+-------------------------------- Comment (by michaelld@…): Has duplicate #38750. -- Ticket URL: <https://trac.macports.org/ticket/38721#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#38721: py33-numpy fails to build universal -------------------------------+-------------------------------- Reporter: david.w.watson@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: duplicate | Keywords: Port: py33-numpy | -------------------------------+-------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => duplicate Comment: They're both duplicates of #34562, actually. -- Ticket URL: <https://trac.macports.org/ticket/38721#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts