[C++-sig] FYI: Boost.Python & Linux Intel C++ 8.0

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Tue Jan 20 21:19:54 CET 2004


FYI:

Most of Boost.Python works with Linux Intel C++ 8.0 (Build 20031231Z
Package ID: l_cc_pc_8.0.058) but there are a couple of tricks to know:

- To avoid unresolved symbol warnings /opt/intel_cc_80/lib/libirc.a
  has to be converted to a shared library:

    /opt/intel_cc_80/bin/icc -shared -o libirc.so /opt/intel_cc_80/lib/libirc.a

  Store libirc.so somewhere in your LD_LIBRARY_PATH.

- To use the native Python define LD_PRELOAD (thanks to Raoul Gough
  for discovering this). E.g.:

    LD_PRELOAD="/some/path/libirc.so:/opt/intel_cc_80/lib/libunwind.so.5"
    export LD_PRELOAD

All Boost.Python tests (libs/python/test) compile.
If compiled with -O0 all run successfully.
If compiled with -O2 seven end with a segmentation fault.

Attached are a few example compilation and link commands.

Ralf

icc -fPIC -O0 -DBOOST_PYTHON_SOURCE -I/net/worm/scratch1/rwgk/dist/boost
-I/usr/include/python2.2 -c -o
boost/libs/python/src/converter/arg_to_python_base.os
/net/worm/scratch1/rwgk/dist/boost/libs/python/src/converter/arg_to_python_base.cpp

icc -shared -o libtbx/libboost_python.so boost/libs/python/src/list.os ...

icc -fPIC -O0 -I/net/worm/scratch1/rwgk/dist/boost -I/usr/include/python2.2 -c
-o boost/libs/python/test/return_arg.os
/net/worm/scratch1/rwgk/dist/boost/libs/python/test/return_arg.cpp

icc -shared -o libtbx/return_arg_ext.so boost/libs/python/test/return_arg.os
-Llibtbx -lboost_python -lm


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus




More information about the Cplusplus-sig mailing list