установка scipy через macports не удалась после самостоятельного обновления - PullRequest
1 голос
/ 12 октября 2011

У меня возникли проблемы с сборкой и установкой py27-scipy после обновления до последней версии macports (установлена ​​базовая версия MacPorts 2.0.3).

Точная ошибка сборки: -

:info:build In file included from scipy/integrate/_quadpackmodule.c:6:
:info:build scipy/integrate/__quadpack.h:54: warning: function declaration isn't a prototype
:info:build scipy/integrate/__quadpack.h:55: warning: function declaration isn't a prototype
:info:build scipy/integrate/__quadpack.h:56: warning: function declaration isn't a prototype
:info:build scipy/integrate/__quadpack.h:57: warning: function declaration isn't a prototype
:info:build scipy/integrate/__quadpack.h:58: warning: function declaration isn't a prototype
:info:build scipy/integrate/__quadpack.h:59: warning: function declaration isn't a prototype
:info:build scipy/integrate/__quadpack.h:60: warning: function declaration isn't a prototype
:info:build scipy/integrate/__quadpack.h: In function 'quad_function':
:info:build scipy/integrate/__quadpack.h:74: warning: unused variable 'nb'
:info:build scipy/integrate/_quadpackmodule.c: At top level:
:info:build /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include/numpy/npy_3kcompat.h:391: warning: 'simple_capsule_dtor' defined but not used
:info:build /opt/local/bin/gfortran-mp-4.4 -Wall -Wall -undefined dynamic_lookup -bundle build/temp.macosx-10.6-x86_64-2.7/scipy/integrate/_quadpackmodule.o -L/opt/local/lib/gcc44/gcc/x86_64-apple-darwin10/4.4.6 -Lbuild/temp.macosx-10.6-x86_64-2.7 -lquadpack -llinpack_lite -lmach -lgfortran -o build/lib.macosx-10.6-x86_64-2.7/scipy/integrate/_quadpack.so
:info:build building 'scipy.integrate._odepack' extension
:info:build compiling C sources
:info:build C compiler: /opt/local/bin/gcc-mp-4.4 -fno-strict-aliasing -fno-common -dynamic -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
:info:build 
:info:build compile options: '-DNO_ATLAS_INFO=3 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c'
:info:build extra options: '-faltivec -I/System/Library/Frameworks/vecLib.framework/Headers'
:info:build gcc-mp-4.4: scipy/integrate/_odepackmodule.c
:info:build cc1: error: unrecognized command line option "-faltivec"
:info:build cc1: error: unrecognized command line option "-faltivec"
:info:build error: Command "/opt/local/bin/gcc-mp-4.4 -fno-strict-aliasing -fno-common -dynamic -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DNO_ATLAS_INFO=3 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c scipy/integrate/_odepackmodule.c -o build/temp.macosx-10.6-x86_64-2.7/scipy/integrate/_odepackmodule.o -faltivec -I/System/Library/Frameworks/vecLib.framework/Headers" failed with exit status 1
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-scipy/py27-scipy/work/scipy-0.9.0" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg config_fc --fcompiler gnu95 --f77exec /opt/local/bin/gfortran-mp-4.4 --f90exec /opt/local/bin/gfortran-mp-4.4 config --cc /opt/local/bin/gcc-mp-4.4 --include-dirs /opt/local/include --library-dirs /opt/local/lib build " returned error 1
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
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 py27-scipy): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for py27-scipy is at: /opt/local/var/macports 
/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-scipy/py27-scipy/main.log

Любые предложения, чтобы указать мне в правильном направлении?

Ответы [ 2 ]

3 голосов
/ 07 ноября 2011

У меня была точно такая же проблема. В моем случае это было вызвано старой сборкой dev на моих системах, которая мешала процессу сборки. Удаление упомянутого .egg полностью сработало для меня. Смотрите билет MacPorts:

https://trac.macports.org/ticket/31833

0 голосов
/ 01 ноября 2011

Эта проблема возникла из-за того, что gfortran / gcc44 не компилировался должным образом, потому что я использовал Lion / XCode 4.2.

Ссылочный билет macports, который был решен - https://trac.macports.org/ticket/31604

...