Opened 11 years ago

Closed 10 years ago

#38721 closed defect (duplicate)

py33-numpy fails to build universal

Reported by: watsodw Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: dh@…, michaelld (Michael Dickens)
Port: py33-numpy

Description

See log.

Attachments (1)

main.log (426.2 KB) - added by watsodw 11 years ago.

Download all attachments as: .zip

Change History (6)

Changed 11 years ago by watsodw

Attachment: main.log added

comment:1 Changed 11 years ago by cooljeanius (Eric Gallager)

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 

Hm, even just the relevant part is kinda long...

Last edited 11 years ago by cooljeanius (Eric Gallager) (previous) (diff)

comment:2 Changed 11 years ago by michaelld (Michael Dickens)

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).

comment:3 Changed 11 years ago by michaelld (Michael Dickens)

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.

comment:4 Changed 11 years ago by michaelld (Michael Dickens)

Has duplicate #38750.

comment:5 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: newclosed

They're both duplicates of #34562, actually.

Note: See TracTickets for help on using tickets.