[C++-sig] building boost.python problems

Holger Joukl Holger.Joukl at LBBW.de
Thu Mar 4 17:28:25 CET 2004


Dear boost.pythoneers,
first of all, sorry for the lengthish post (and more so, for the
confidential blabla my employer attaches to all my outgoing mails).

I´m having a little trouble building even the simplest tutorial example,
running python 2.3.3 on a solaris 2.6 system and boost.python 1.31.0:
This is what I get when following the tutorial build instructions:

 hjoukl at dev-b .../boost_1_31_0 $ cd libs/python/example/tutorial/
0 hjoukl at dev-b .../tutorial $ export PYTHON_ROOT=/opt/tools
0 hjoukl at dev-b .../tutorial $ export PYTHON_VERSION=2.3
0 hjoukl at dev-b .../tutorial $ which gcc
/opt/tools/bin/gcc
0 hjoukl at dev-b .../tutorial $ ./bjam
...found 1972 targets...
...updating 24 targets...
gcc-C++-action
../../../../bin/boost/libs/python/build/libboost_python.so/gcc/debug/shared-linkable-true/numeric.o
In file included from /opt/tools/include/python2.3/Python.h:8,
                 from
/data/projects/hjoukl/new_boost/boost_1_31_0/boost/python/detail/wrap_python.hpp:121,
                 from
/data/projects/hjoukl/new_boost/boost_1_31_0/boost/python/detail/prefix..hpp:13,
                 from
/data/projects/hjoukl/new_boost/boost_1_31_0/boost/python/numeric.hpp:9,
                 from
/data/projects/hjoukl/new_boost/boost_1_31_0/libs/python/build/../src/numeric.cpp:7:
/opt/tools/include/python2.3/pyconfig.h:825: warning: `_FILE_OFFSET_BITS'
redefined
/usr/include/sys/feature_tests.h:80: warning: this is the location of the
previous definition
/opt/tools/bin/objcopy: unrecognized section flag `debug'
/opt/tools/bin/objcopy: supported flags: alloc, load, readonly, code, data,
rom, contents

...

    set -e
    g++   -c -Wall -ftemplate-depth-100  -DBOOST_PYTHON_DYNAMIC_LIB
-DBOOST_PYTHON_SOURCE  -g -O0 -fno-inline -fPIC
-I"../../../../bin/boost/libs/python/build"  -I
"/opt/tools/include/python2.3" -I
"/data/projects/hjoukl/new_boost/boost_1_31_0"  -o
"../../../../bin/boost/libs/python/build/libboost_python.so/gcc/debug/shared-linkable-true/object_operators.o"

"/data/projects/hjoukl/new_boost/boost_1_31_0/libs/python/build/../src/object_operators.cpp"
    /opt/tools/bin/objcopy --set-section-flags .debug_str=contents,debug
"../../../../bin/boost/libs/python/build/libboost_python.so/gcc/debug/shared-linkable-true/object_operators.o"

...failed gcc-C++-action
../../../../bin/boost/libs/python/build/libboost_python.so/gcc/debug/shared-linkable-true/object_operators.o...
...removing
../../../../bin/boost/libs/python/build/libboost_python.so/gcc/debug/shared-linkable-true/object_operators.o
...skipped
<@boost!libs!python!build/libboost_python.so/gcc/debug/shared-linkable-true>libboost_python.so
 for lack of
<@boost!libs!python!build/libboost_python.so/gcc/debug/shared-linkable-true>numeric.o...
...skipped
<@boost!libs!python!example!tutorial/hello.so/gcc/debug/shared-linkable-true>hello.so
 for lack of
<@boost!libs!python!build/libboost_python.so/gcc/debug/shared-linkable-true>libboost_python.so...
...failed updating 22 targets...
...skipped 2 targets...

As I understand this, boost_python shared library is looked for in a debug
version, which is not found as for some other reason,
building the debug objects failed. There is indeed a "normal" boost_python
lib:

1 hjoukl at dev-b .../tutorial $ ls -l
../../../../bin/boost/libs/python/build/libboost_python.so/gcc/release/shared-linkable-true/libboost_python-gcc-1_31.so
-rwxr-xr-x   1 hjoukl   intern     448536 Mar  2 13:00
../../../../bin/boost/libs/python/build/libboost_python.so/gcc/release/shared-linkable-true/libboost_python-gcc-1_31.so*


Also the objcopy step seems not to work, probably for the same reason?
No hello.so is created and the jam build system remains a mystery to me at
the moment.

Any hints are appreciated,
G
  Holger

Der Inhalt dieser E-Mail ist vertraulich. Falls Sie nicht der angegebene
Empfänger sind oder falls diese E-Mail irrtümlich an Sie adressiert wurde,
verständigen Sie bitte den Absender sofort und löschen Sie die E-Mail
sodann. Das unerlaubte Kopieren sowie die unbefugte Übermittlung sind nicht
gestattet. Die Sicherheit von Übermittlungen per E-Mail kann nicht
garantiert werden. Falls Sie eine Bestätigung wünschen, fordern Sie bitte
den Inhalt der E-Mail als Hardcopy an.

The contents of this  e-mail are confidential. If you are not the named
addressee or if this transmission has been addressed to you in error,
please notify the sender immediately and then delete this e-mail.  Any
unauthorized copying and transmission is forbidden. E-Mail transmission
cannot be guaranteed to be secure. If verification is required, please
request a hard copy version.







More information about the Cplusplus-sig mailing list