[MacPorts] #23244: py26-numpy +universal configure or build does not like the -arch option passed to gcc-mp
MacPorts
noreply at macports.org
Wed Jul 21 16:01:54 PDT 2010
#23244: py26-numpy +universal configure or build does not like the -arch option
passed to gcc-mp
-----------------------------------------+----------------------------------
Reporter: dave.evans55@… | Owner: mcalhoun@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.99
Keywords: | Port: py26-numpy
-----------------------------------------+----------------------------------
Comment(by payam.minoofar@…):
As of today, after compiling gcc44 and gcc43 as universal builds, I this
error in the py26-numpy log:
{{{
version:1
:msg:main ---> Computing dependencies for py26-numpy:info:main
.:debug:main Searching for dependency: python26
:debug:main Found Dependency: receipt exists for python26
:debug:main Searching for dependency: fftw-3
:debug:main Found Dependency: receipt exists for fftw-3
:debug:main Searching for dependency: py26-nose
:debug:main Found Dependency: receipt exists for py26-nose
:debug:main Searching for dependency: atlas
:debug:main Found Dependency: receipt exists for atlas
:debug:main Searching for dependency: gcc44
:debug:main Found Dependency: receipt exists for gcc44
:msg:main
:debug:main Executing org.macports.main (py26-numpy)
:msg:main ---> Fetching py26-numpy
:debug:fetch fetch phase started at Wed Jul 21 14:00:45 PDT 2010
:debug:fetch Executing org.macports.fetch (py26-numpy)
:msg:fetch ---> Verifying checksum(s) for py26-numpy
:debug:checksum checksum phase started at Wed Jul 21 14:00:45 PDT 2010
:debug:checksum Executing org.macports.checksum (py26-numpy)
:info:checksum ---> Checksumming numpy-1.4.1.tar.gz
:debug:checksum Correct (md5) checksum for numpy-1.4.1.tar.gz
:debug:checksum Correct (sha1) checksum for numpy-1.4.1.tar.gz
:debug:checksum Correct (rmd160) checksum for numpy-1.4.1.tar.gz
:msg:checksum ---> Extracting py26-numpy
:debug:extract extract phase started at Wed Jul 21 14:00:45 PDT 2010
:debug:extract Executing org.macports.extract (py26-numpy)
:info:extract ---> Extracting numpy-1.4.1.tar.gz
:debug:extract setting option extract.args to
'/opt/local/var/macports/distfiles/python/numpy-1.4.1.tar.gz'
:debug:extract Environment: CPATH='/opt/local/include'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-numpy/work/.CC_PRINT_OPTIONS'
LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES'
MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:extract Assembled command: 'cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-numpy/work"
&& /usr/bin/gzip -dc
'/opt/local/var/macports/distfiles/python/numpy-1.4.1.tar.gz' |
/usr/bin/gnutar --no-same-owner -xf -'
:debug:patch patch phase started at Wed Jul 21 14:00:46 PDT 2010
:debug:patch Executing org.macports.patch (py26-numpy)
:msg:patch ---> Applying patches to py26-numpy
:info:patch ---> Applying
/opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py26-numpy/files
/patch-f2py_setup.py.diff
:debug:patch Environment: CPATH='/opt/local/include'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-numpy/work/.CC_PRINT_OPTIONS'
LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES'
MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:patch Assembled command: 'cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-numpy/work/numpy-1.4.1"
&& /usr/bin/patch -p0'
:info:patch patching file numpy/f2py/setup.py
:info:patch Hunk #1 succeeded at 50 (offset -2 lines).
:info:patch Hunk #2 succeeded at 74 (offset -4 lines).
:info:patch ---> Applying
/opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py26-numpy/files
/patch-system_info.py.diff
:debug:patch Environment: CPATH='/opt/local/include'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-numpy/work/.CC_PRINT_OPTIONS'
LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES'
MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:patch Assembled command: 'cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-numpy/work/numpy-1.4.1"
&& /usr/bin/patch -p0'
:info:patch patching file numpy/distutils/system_info.py
:info:patch ---> Applying
/opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py26-numpy/files
/patch-fcompiler_g95.diff
:debug:patch Environment: CPATH='/opt/local/include'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-numpy/work/.CC_PRINT_OPTIONS'
LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES'
MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:patch Assembled command: 'cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-numpy/work/numpy-1.4.1"
&& /usr/bin/patch -p0'
:info:patch patching file numpy/distutils/fcompiler/__init__.py
:info:patch ---> Applying
/opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py26-numpy/files
/patch-setup.py.diff
:debug:patch Environment: CPATH='/opt/local/include'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-numpy/work/.CC_PRINT_OPTIONS'
LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES'
MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:patch Assembled command: 'cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-numpy/work/numpy-1.4.1"
&& /usr/bin/patch -p0'
:info:patch patching file numpy/core/setup.py
:info:patch Hunk #1 succeeded at 425 (offset 116 lines).
:info:patch Hunk #2 succeeded at 518 with fuzz 2 (offset 125 lines).
:debug:patch Executing proc-post-org.macports.patch-patch-0
:msg:patch ---> Configuring py26-numpy
:debug:patch Using compiler 'MacPorts gcc 4.4'
:debug:configure configure phase started at Wed Jul 21 14:00:47 PDT 2010
:debug:configure Executing org.macports.configure (py26-numpy)
:msg:configure ---> Building py26-numpy
:debug:build build phase started at Wed Jul 21 14:00:47 PDT 2010
:debug:build Executing proc-pre-org.macports.build-build-0
:debug:build Executing org.macports.build (py26-numpy)
:debug:build Environment: CPATH='/opt/local/include' CFLAGS='-arch x86_64
-arch i386' CXXFLAGS='-arch x86_64 -arch i386'
LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.6'
CXX='/opt/local/bin/g++-mp-4.4' LAPACK='/opt/local/lib'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-numpy/work/.CC_PRINT_OPTIONS'
LDFLAGS='-arch x86_64 -arch i386' BLAS='/opt/local/lib' OBJCFLAGS='-arch
x86_64 -arch i386' ATLAS='/opt/local/lib' CC_PRINT_OPTIONS='YES'
CC='/opt/local/bin/gcc-mp-4.4'
:debug:build Assembled command: 'cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-numpy/work/numpy-1.4.1"
&&
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6
setup.py --no-user-cfg build'
:info:build Running from numpy source directory.
:info:build non-existing path in 'numpy/distutils': 'site.cfg'
:info:build F2PY Version 2
:info:build blas_opt_info:
:info:build blas_mkl_info:
:info:build libraries mkl,vml,guide not found in
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib
:info:build libraries mkl,vml,guide not found in /usr/local/lib
:info:build libraries mkl,vml,guide not found in /usr/lib
:info:build libraries mkl,vml,guide not found in /opt/local/lib
:info:build NOT AVAILABLE
:info:build
:info:build atlas_blas_threads_info:
:info:build Setting PTATLAS=ATLAS
:info:build Setting PTATLAS=ATLAS
:info:build Setting PTATLAS=ATLAS
:info:build FOUND:
:info:build libraries = ['ptf77blas', 'ptcblas', 'atlas']
:info:build library_dirs = ['/opt/local/lib']
:info:build language = c
:info:build include_dirs = ['/opt/local/include']
:info:build
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-numpy/work/numpy-1.4.1/numpy/distutils/command/config.py:394:
DeprecationWarning:
:info:build +++++++++++++++++++++++++++++++++++++++++++++++++
:info:build Usage of get_output is deprecated: please do not
:info:build use it anymore, and avoid configuration checks
:info:build involving running executable on the target machine.
:info:build +++++++++++++++++++++++++++++++++++++++++++++++++
:info:build
:info:build DeprecationWarning)
:info:build customize NAGFCompiler
:info:build Could not locate executable f95
:info:build customize AbsoftFCompiler
:info:build Could not locate executable f90
:info:build Could not locate executable f77
:info:build customize IBMFCompiler
:info:build Could not locate executable xlf90
:info:build Could not locate executable xlf
:info:build customize IntelFCompiler
:info:build Could not locate executable ifort
:info:build Could not locate executable ifc
:info:build customize GnuFCompiler
:info:build Could not locate executable g77
:info:build customize Gnu95FCompiler
:info:build Could not locate executable gfortran
:info:build don't know how to compile Fortran code on platform 'posix'
:info:build compiling '_configtest.c':
:info:build
:info:build /* This file is generated from numpy/distutils/system_info.py
*/
:info:build void ATL_buildinfo(void);
:info:build int main(void) {
:info:build ATL_buildinfo();
:info:build return 0;
:info:build }
:info:build C compiler: /opt/local/bin/gcc-mp-4.4 -DNDEBUG -g -fwrapv -O3
-Wall -Wstrict-prototypes -arch x86_64 -arch i386
:info:build
:info:build compile options: '-c'
:info:build gcc-mp-4.4: _configtest.c
:info:build cc1: error: unrecognized command line option "-arch"
:info:build cc1: error: unrecognized command line option "-arch"
:info:build cc1: error: unrecognized command line option "-arch"
:info:build cc1: error: unrecognized command line option "-arch"
:info:build failure.
:info:build removing: _configtest.c _configtest.o
:info:build Status: 255
:info:build Output:
:info:build FOUND:
:info:build libraries = ['ptf77blas', 'ptcblas', 'atlas']
:info:build library_dirs = ['/opt/local/lib']
:info:build language = c
:info:build define_macros = [('NO_ATLAS_INFO', 2)]
:info:build include_dirs = ['/opt/local/include']
:info:build
:info:build lapack_opt_info:
:info:build lapack_mkl_info:
:info:build mkl_info:
:info:build libraries mkl,vml,guide not found in
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib
:info:build libraries mkl,vml,guide not found in /usr/local/lib
:info:build libraries mkl,vml,guide not found in /usr/lib
:info:build libraries mkl,vml,guide not found in /opt/local/lib
:info:build NOT AVAILABLE
:info:build
:info:build NOT AVAILABLE
:info:build
:info:build atlas_threads_info:
:info:build Setting PTATLAS=ATLAS
:info:build libraries lapack_atlas not found in /opt/local/lib
:info:build numpy.distutils.system_info.atlas_threads_info
:info:build Setting PTATLAS=ATLAS
:info:build Setting PTATLAS=ATLAS
:info:build FOUND:
:info:build libraries = ['lapack', 'ptf77blas', 'ptcblas', 'atlas']
:info:build library_dirs = ['/opt/local/lib']
:info:build language = f77
:info:build include_dirs = ['/opt/local/include']
:info:build
:info:build customize NAGFCompiler
:info:build customize AbsoftFCompiler
:info:build customize IBMFCompiler
:info:build customize IntelFCompiler
:info:build customize GnuFCompiler
:info:build customize Gnu95FCompiler
:info:build don't know how to compile Fortran code on platform 'posix'
:info:build compiling '_configtest.c':
:info:build
:info:build /* This file is generated from numpy/distutils/system_info.py
*/
:info:build void ATL_buildinfo(void);
:info:build int main(void) {
:info:build ATL_buildinfo();
:info:build return 0;
:info:build }
:info:build C compiler: /opt/local/bin/gcc-mp-4.4 -DNDEBUG -g -fwrapv -O3
-Wall -Wstrict-prototypes -arch x86_64 -arch i386
:info:build
:info:build compile options: '-c'
:info:build gcc-mp-4.4: _configtest.c
:info:build cc1: error: unrecognized command line option "-arch"
:info:build cc1: error: unrecognized command line option "-arch"
:info:build cc1: error: unrecognized command line option "-arch"
:info:build cc1: error: unrecognized command line option "-arch"
:info:build failure.
:info:build removing: _configtest.c _configtest.o
:info:build Status: 255
:info:build Output:
:info:build FOUND:
:info:build libraries = ['lapack', 'ptf77blas', 'ptcblas', 'atlas']
:info:build library_dirs = ['/opt/local/lib']
:info:build language = f77
:info:build define_macros = [('NO_ATLAS_INFO', 2)]
:info:build include_dirs = ['/opt/local/include']
:info:build
:info:build running build
:info:build running config_cc
:info:build unifing config_cc, config, build_clib, build_ext, build
commands --compiler options
:info:build running config_fc
:info:build unifing config_fc, config, build_clib, build_ext, build
commands --fcompiler options
:info:build running build_src
:info:build build_src
:info:build building py_modules sources
:info:build creating build
:info:build creating build/src.macosx-10.6-x86_64-2.6
:info:build creating build/src.macosx-10.6-x86_64-2.6/numpy
:info:build creating build/src.macosx-10.6-x86_64-2.6/numpy/distutils
:info:build building library "npymath" sources
:info:build customize NAGFCompiler
:info:build customize AbsoftFCompiler
:info:build customize IBMFCompiler
:info:build customize IntelFCompiler
:info:build customize GnuFCompiler
:info:build customize Gnu95FCompiler
:info:build don't know how to compile Fortran code on platform 'posix'
:info:build C compiler: /opt/local/bin/gcc-mp-4.4 -DNDEBUG -g -fwrapv -O3
-Wall -Wstrict-prototypes -arch x86_64 -arch i386
:info:build
:info:build 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/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
-c'
:info:build gcc-mp-4.4: _configtest.c
:info:build cc1: error: unrecognized command line option "-arch"
:info:build cc1: error: unrecognized command line option "-arch"
:info:build cc1: error: unrecognized command line option "-arch"
:info:build cc1: error: unrecognized command line option "-arch"
:info:build failure.
:info:build removing: _configtest.c _configtest.o
:info:build Traceback (most recent call last):
:info:build File "setup.py", line 187, in <module>
:info:build setup_package()
:info:build File "setup.py", line 180, in setup_package
:info:build configuration=configuration )
:info:build File
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-numpy/work/numpy-1.4.1/numpy/distutils/core.py",
line 186, in setup
:info:build return old_setup(**new_attr)
:info:build File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py",
line 152, in setup
:info:build dist.run_commands()
:info:build File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py",
line 987, in run_commands
:info:build self.run_command(cmd)
:info:build File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py",
line 1007, in run_command
:info:build cmd_obj.run()
:info:build File
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-numpy/work/numpy-1.4.1/numpy/distutils/command/build.py",
line 37, in run
:info:build old_build.run(self)
:info:build File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/command/build.py",
line 134, in run
:info:build self.run_command(cmd_name)
:info:build File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/cmd.py",
line 333, in run_command
:info:build self.distribution.run_command(command)
:info:build File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py",
line 1007, in run_command
:info:build cmd_obj.run()
:info:build File
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-numpy/work/numpy-1.4.1/numpy/distutils/command/build_src.py",
line 152, in run
:info:build self.build_sources()
:info:build File
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-numpy/work/numpy-1.4.1/numpy/distutils/command/build_src.py",
line 163, in build_sources
:info:build self.build_library_sources(*libname_info)
:info:build File
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-numpy/work/numpy-1.4.1/numpy/distutils/command/build_src.py",
line 298, in build_library_sources
:info:build sources = self.generate_sources(sources, (lib_name,
build_info))
:info:build File
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-numpy/work/numpy-1.4.1/numpy/distutils/command/build_src.py",
line 385, in generate_sources
:info:build source = func(extension, build_dir)
:info:build File "numpy/core/setup.py", line 671, in get_mathlib_info
:info:build raise RuntimeError("Broken toolchain: cannot link a simple
C program")
:info:build RuntimeError: Broken toolchain: cannot link a simple C program
:info:build shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-numpy/work/numpy-1.4.1"
&&
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6
setup.py --no-user-cfg build " returned error 1
:error:build Target org.macports.build returned: shell command failed
:debug:build Backtrace: shell command failed
while executing
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for py26-numpy):
org.macports.destroot org.macports.build
:notice:build Log for py26-numpy is at:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-numpy/main.log
}}}
--
Ticket URL: <http://trac.macports.org/ticket/23244#comment:50>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list