[Pythonmac-SIG] Intel compilers to build Python?
Boyd Waters
bwaters at nrao.edu
Mon Aug 28 00:44:04 CEST 2006
I cannot get the Python package to build with the Intel compiler. It
does not find the _Py_Main symbol when linking the top-level
"python.exe".
What environment variables, configure arguments, and linker tweaks
are you all using to build Python on Macintosh with the Intel compilers?
/usr/bin/install -c -d -m 755 Python.framework/Versions/2.4
icpc -dynamiclib -o Python.framework/Versions/2.4/Python -dynamic
libpython2.4.a \
-lSystem -lSystemStubs -arch_only i386 -install_name /opt/
local/Library/Frameworks/Python.framework/Versions/2.4/Python -
compatibility_version 2.4 -current_version 2.4
/usr/bin/install -c -d -m 755 \
Python.framework/Versions/2.4/Resources/English.lproj
/usr/bin/install -c -m 644 ./Mac/OSXResources/framework/Info.plist \
Python.framework/Versions/2.4/Resources/Info.plist
/usr/bin/install -c -m 644 ./Mac/OSXResources/framework/version.plist \
Python.framework/Versions/2.4/Resources/version.plist
/usr/bin/install -c -m 644 ./Mac/OSXResources/framework/English.lproj/
InfoPlist.strings \
Python.framework/Versions/2.4/Resources/English.lproj/
InfoPlist.strings
ln -fsn 2.4 Python.framework/Versions/Current
ln -fsn Versions/Current/Python Python.framework/Python
ln -fsn Versions/Current/Headers Python.framework/Headers
ln -fsn Versions/Current/Resources Python.framework/Resources
icpc -u _PyMac_Error Python.framework/Versions/2.4/Python -undefined
dynamic_lookup -o python.exe \
Modules/ccpython.o \
-ldl
case $MAKEFLAGS in \
*-s*) DYLD_FRAMEWORK_PATH=/opt/local/var/db/dports/build/
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp
orts_lang_python24/work/Python-2.4.3: CC='icc' LDSHARED='icc -bundle
-undefined dynamic_lookup' OPT='-DNDEBUG -c99 -axT -O3 -parallel -
fstack-security-check -fPIC -fno-common' ./python.exe -E ./setup.py -
q build;; \
*) DYLD_FRAMEWORK_PATH=/opt/local/var/db/dports/build/
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp
orts_lang_python24/work/Python-2.4.3: CC='icc' LDSHARED='icc -bundle
-undefined dynamic_lookup' OPT='-DNDEBUG -c99 -axT -O3 -parallel -
fstack-security-check -fPIC -fno-common' ./python.exe -E ./setup.py
build;; \
esac
dyld: lazy symbol binding failed: Symbol not found: _Py_Main
Referenced from: /opt/local/var/db/dports/build/
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp
orts_lang_python24/work/Python-2.4.3/./python.exe
Expected in: dynamic lookup
dyld: Symbol not found: _Py_Main
Referenced from: /opt/local/var/db/dports/build/
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp
orts_lang_python24/work/Python-2.4.3/./python.exe
Expected in: dynamic lookup
Thanks!
- boyd
Boyd Waters
Scientific Programmer
National Radio Astronomy Observatory
Socorro, New Mexico
http://www.aoc.nrao.edu/
More information about the Pythonmac-SIG
mailing list