[MacPorts] #32693: py27-numpy @1.6.1_1 build fails with +atlas +gcc46
MacPorts
noreply at macports.org
Sat May 26 03:30:05 PDT 2012
#32693: py27-numpy @1.6.1_1 build fails with +atlas +gcc46
------------------------------------------+---------------------------------
Reporter: md14-macports@… | Owner: ram@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.3
Keywords: | Port: py-numpy
------------------------------------------+---------------------------------
Comment(by michelle.lynn.gill@…):
I am getting this same error trying to build py27-numpy
@1.6.2_0+atlas+gcc46 (-universal) under MacPorts 2.1.1 with OS X 10.7.4.
It looks like the above patch for configure variables patch has been
incorporated, so I assume the issue must crop up somewhere else as well?
I was able to install py27-numpy @1.6.2_0+atlas+gcc45 just fine, though I
don't recall which version of MacPorts was the latest at the time numpy
version 1.6.2 was updated.
Here's the output of the install error. It looks like the offending -arch
flag is still present. If I can test anything, please let me know.
{{{
Running from numpy source directory.non-existing path in
'numpy/distutils': 'site.cfg'
F2PY Version 2
blas_opt_info:
blas_mkl_info:
libraries mkl,vml,guide not found in
/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.7/lib
libraries mkl,vml,guide not found in /usr/local/lib
libraries mkl,vml,guide not found in /usr/lib
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
Setting PTATLAS=ATLAS
customize NAGFCompiler
Found executable /Volumes/Files/macports/bin/gfortran-mp-4.6
customize AbsoftFCompiler
customize IBMFCompiler
Could not locate executable xlf95
customize IntelFCompiler
Found executable /usr/bin/ifort
customize GnuFCompiler
gnu: no Fortran 90 compiler found
Could not locate executable g77
Could not locate executable f77
gnu: no Fortran 90 compiler found
customize Gnu95FCompiler
Found executable /Volumes/Files/macports/bin/gfortran
customize Gnu95FCompiler
customize Gnu95FCompiler using config
compiling '_configtest.c':
/* This file is generated from numpy/distutils/system_info.py */
void ATL_buildinfo(void);
int main(void) {
ATL_buildinfo();
return 0;
}
C compiler: /Volumes/Files/macports/bin/gcc-mp-4.6 -DNDEBUG -g -fwrapv -O3
-Wall -Wstrict-prototypes -m64
compile options: '-c'
gcc-mp-4.6: _configtest.c
/Volumes/Files/macports/bin/gcc-mp-4.6 -arch x86_64 _configtest.o
-L/Volumes/Files/macports/lib -lptf77blas -lptcblas -latlas -o _configtest
gcc-mp-4.6: error: x86_64: No such file or directory
gcc-mp-4.6: error: unrecognized option '-arch'
gcc-mp-4.6: error: x86_64: No such file or directory
gcc-mp-4.6: error: unrecognized option '-arch'
failure.
removing: _configtest.c _configtest.o
Status: 255
Output: compiling '_configtest.c':
/* This file is generated from numpy/distutils/system_info.py */
void ATL_buildinfo(void);
int main(void) {
ATL_buildinfo();
return 0;
}
C compiler: /Volumes/Files/macports/bin/gcc-mp-4.6 -DNDEBUG -g -fwrapv -O3
-Wall -Wstrict-prototypes -m64
compile options: '-c'
gcc-mp-4.6: _configtest.c
/Volumes/Files/macports/bin/gcc-mp-4.6 -arch x86_64 _configtest.o
-L/Volumes/Files/macports/lib -lptf77blas -lptcblas -latlas -o _configtest
gcc-mp-4.6: error: x86_64: No such file or directory
gcc-mp-4.6: error: unrecognized option '-arch'
Setting PTATLAS=ATLAS
FOUND:
libraries = ['ptf77blas', 'ptcblas', 'atlas']
library_dirs = ['/Volumes/Files/macports/lib']
language = c
define_macros = [('ATLAS_INFO', '"\\"None\\""')]
FOUND:
libraries = ['ptf77blas', 'ptcblas', 'atlas']
library_dirs = ['/Volumes/Files/macports/lib']
language = c
define_macros = [('ATLAS_INFO', '"\\"None\\""')]
lapack_opt_info:
lapack_mkl_info:
mkl_info:
libraries mkl,vml,guide not found in
/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.7/lib
libraries mkl,vml,guide not found in /usr/local/lib
libraries mkl,vml,guide not found in /usr/lib
NOT AVAILABLE
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
libraries lapack_atlas not found in /Volumes/Files/macports/lib
numpy.distutils.system_info.atlas_threads_info
Setting PTATLAS=ATLAS
Setting PTATLAS=ATLAS
FOUND:
libraries = ['lapack', 'ptf77blas', 'ptcblas', 'atlas']
library_dirs = ['/Volumes/Files/macports/lib']
language = f77
define_macros = [('ATLAS_INFO', '"\\"None\\""')]
FOUND:
libraries = ['lapack', 'ptf77blas', 'ptcblas', 'atlas']
library_dirs = ['/Volumes/Files/macports/lib']
language = f77
define_macros = [('ATLAS_INFO', '"\\"None\\""')]
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands
--compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands
--fcompiler options
running build_src
build_src
building py_modules sources
creating build
creating build/src.macosx-10.7-x86_64-2.7
creating build/src.macosx-10.7-x86_64-2.7/numpy
creating build/src.macosx-10.7-x86_64-2.7/numpy/distutils
building library "npymath" sources
customize NAGFCompiler
customize AbsoftFCompiler
customize IBMFCompiler
customize IntelFCompiler
customize GnuFCompiler
gnu: no Fortran 90 compiler found
gnu: no Fortran 90 compiler found
customize Gnu95FCompiler
customize Gnu95FCompiler
customize Gnu95FCompiler using config
C compiler: /Volumes/Files/macports/bin/gcc-mp-4.6 -DNDEBUG -g -fwrapv -O3
-Wall -Wstrict-prototypes -m64
compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core
-Inumpy/core/src/npymath -Inumpy/core/src/multiarray
-Inumpy/core/src/umath -Inumpy/core/include
-I/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
-c'
gcc-mp-4.6: _configtest.c
/Volumes/Files/macports/bin/gcc-mp-4.6 -arch x86_64 _configtest.o -o
_configtest
gcc-mp-4.6: error: x86_64: No such file or directory
gcc-mp-4.6: error: unrecognized option '-arch'
gcc-mp-4.6: error: x86_64: No such file or directory
gcc-mp-4.6: error: unrecognized option '-arch'
failure.
removing: _configtest.c _configtest.o
Traceback (most recent call last):
File "setup.py", line 214, in <module>
setup_package()
File "setup.py", line 207, in setup_package
configuration=configuration )
File
"/Volumes/Files/macports/var/macports/build/_Volumes_Files_macports_var_macports_sources_rsync.macports
.org_release_tarballs_ports_python_py-
numpy/py27-numpy/work/numpy-1.6.2/numpy/distutils/core.py", line 186, in
setup
return old_setup(**new_attr)
File
"/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py",
line 152, in setup
dist.run_commands()
File
"/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py",
line 953, in run_commands
self.run_command(cmd)
File
"/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py",
line 972, in run_command
cmd_obj.run()
File
"/Volumes/Files/macports/var/macports/build/_Volumes_Files_macports_var_macports_sources_rsync.macports
.org_release_tarballs_ports_python_py-
numpy/py27-numpy/work/numpy-1.6.2/numpy/distutils/command/build.py", line
37, in run
old_build.run(self)
File
"/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/build.py",
line 127, in run
self.run_command(cmd_name)
File
"/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py",
line 326, in run_command
self.distribution.run_command(command)
File
"/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py",
line 972, in run_command
cmd_obj.run()
File
"/Volumes/Files/macports/var/macports/build/_Volumes_Files_macports_var_macports_sources_rsync.macports
.org_release_tarballs_ports_python_py-
numpy/py27-numpy/work/numpy-1.6.2/numpy/distutils/command/build_src.py",
line 152, in run
self.build_sources()
File
"/Volumes/Files/macports/var/macports/build/_Volumes_Files_macports_var_macports_sources_rsync.macports
.org_release_tarballs_ports_python_py-
numpy/py27-numpy/work/numpy-1.6.2/numpy/distutils/command/build_src.py",
line 163, in build_sources
self.build_library_sources(*libname_info)
File
"/Volumes/Files/macports/var/macports/build/_Volumes_Files_macports_var_macports_sources_rsync.macports
.org_release_tarballs_ports_python_py-
numpy/py27-numpy/work/numpy-1.6.2/numpy/distutils/command/build_src.py",
line 298, in build_library_sources
sources = self.generate_sources(sources, (lib_name, build_info))
File
"/Volumes/Files/macports/var/macports/build/_Volumes_Files_macports_var_macports_sources_rsync.macports
.org_release_tarballs_ports_python_py-
numpy/py27-numpy/work/numpy-1.6.2/numpy/distutils/command/build_src.py",
line 385, in generate_sources
source = func(extension, build_dir)
File "numpy/core/setup.py", line 696, in get_mathlib_info
raise RuntimeError("Broken toolchain: cannot link a simple C program")
RuntimeError: Broken toolchain: cannot link a simple C program
Command failed: cd
"/Volumes/Files/macports/var/macports/build/_Volumes_Files_macports_var_macports_sources_rsync.macports
.org_release_tarballs_ports_python_py-numpy/py27-numpy/work/numpy-1.6.2"
&&
/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
setup.py --no-user-cfg build
Exit code: 1
Error: org.macports.build for port py27-numpy returned: command execution
failed
Warning: targets not executed for py27-numpy: org.macports.activate
org.macports.build org.macports.destroot org.macports.install
Please see the log file for port py27-numpy for details:
/Volumes/Files/macports/var/macports/logs/_Volumes_Files_macports_var_macports_sources_rsync.macports
.org_release_tarballs_ports_python_py-numpy/py27-numpy/main.log
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
}}}
--
Ticket URL: <https://trac.macports.org/ticket/32693#comment:25>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list