[C++-sig] boost.python on OS X 10.3 (Panther)

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Mon Nov 3 02:05:50 CET 2003


--- Harri Hakula <Harri.Hakula at arabianranta.com> wrote:
> With the latest compiler from Apple everything builds even on Jaguar.
> I got most of the tests I tried running, but had to compile everything 
> manually.

After seeing Harri Hakula's posting I've upgraded our Mac to
OS 10.2.8 followed by installing the August 2003 gcc update.
gcc --version reports:

gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1493)

I've used this gcc to compile Python 2.3 from scratch as a framework
build. Using the current boost CVS I've made just one modification
based on Sean Spicer's posting. See attached patch. Then:

bjam -sPYTHON_VERSION=2.3 -sTOOLS=darwin "-sBUILD=debug <warnings>off"
-sALL_LOCATE_TARGET=/net_coral/scratch1/rwgk/bjam

This is a full success. Everything compiles and links without
warnings or errors. Some tests run, but unfortunately most hang
indefinitely until killed manually with -9. See attached log.
For example, this is fine:

bjam -sPYTHON_VERSION=2.3 -sTOOLS=darwin "-sBUILD=debug <warnings>off"
-sALL_LOCATE_TARGET=/net_coral/scratch1/rwgk/bjam -sRUN_ALL_TESTS=1 dict
...found 2015 targets...
...updating 1 target...
python-test-target
/net_coral/scratch1/rwgk/bjam/bin/boost/libs/python/test/dict.test/darwin/debug/warnings-off/dict.test
running...
Done.
...updated 1 target...

But this one hangs:

bjam -sPYTHON_VERSION=2.3 -sTOOLS=darwin "-sBUILD=debug <warnings>off"
-sALL_LOCATE_TARGET=/net_coral/scratch1/rwgk/bjam -sRUN_ALL_TESTS=1 list

It hangs at this line:

from list_ext import *

According to the debugger the process hangs here:

(gdb) where
#0  0x90034728 in semaphore_wait_trap ()
#1  0x90009c18 in pthread_mutex_lock ()
#2  0x0054f1f0 in std::__default_alloc_template<true, 0>::allocate(unsigned
long
etc.

Does this ring any bells?

Harri, how did you get around this problem? Could you please post more
details about your platform and the commands that you used to compile
and link?

Ralf


Index: build/v1/darwin-tools.jam
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/v1/darwin-tools.jam,v
retrieving revision 1.8
diff -r1.8 darwin-tools.jam
160c160
<       -framework$(_)$(FRAMEWORKS) -bundle_loader$(_)"$(BUNDLE_LOADER)"
"$(BUNDLE_LOADER)"
---
>       -framework Python -bundle_loader$(_)"$(BUNDLE_LOADER)"
"$(BUNDLE_LOADER)"
171c171
<       -framework$(_)$(FRAMEWORKS) \
---
>       -framework Python \


% boost_python_run_tests.csh 
python $BOOST_DIST/libs/python/test/staticmethod.py
running...
Killed
python $BOOST_DIST/libs/python/test/shared_ptr.py
running...
Killed
python $BOOST_DIST/libs/python/test/polymorphism.py
Killed
python $BOOST_DIST/libs/python/test/auto_ptr.py
running...
Killed
python $BOOST_DIST/libs/python/test/minimal.py
IMPORTING minimal_ext
DONE IMPORTING minimal_ext
python $BOOST_DIST/libs/python/test/args.py
running...
Killed
python $BOOST_DIST/libs/python/test/numpy.py
running...
Done.
python $BOOST_DIST/libs/python/test/enum.py
running...
Killed
python $BOOST_DIST/libs/python/test/exception_translator.py
running...
Done.
python $BOOST_DIST/libs/python/test/test_pointer_adoption.py
running...
Killed
python $BOOST_DIST/libs/python/test/operators.py
running...
Killed
python $BOOST_DIST/libs/python/test/callbacks.py
running...
Killed
python $BOOST_DIST/libs/python/test/defaults.py
running...
Killed
python $BOOST_DIST/libs/python/test/object.py
running...
Killed
python $BOOST_DIST/libs/python/test/list.py
running...
Killed
python $BOOST_DIST/libs/python/test/long.py
running...
Killed
python $BOOST_DIST/libs/python/test/dict.py
running...
Done.
python $BOOST_DIST/libs/python/test/tuple.py
running...
Killed
python $BOOST_DIST/libs/python/test/str.py
running...
Done.
python $BOOST_DIST/libs/python/test/virtual_functions.py
running...
Killed
python $BOOST_DIST/libs/python/test/back_reference.py
running...
Killed
python $BOOST_DIST/libs/python/test/implicit.py
running...
Killed
python $BOOST_DIST/libs/python/test/data_members.py
running...
Killed
python $BOOST_DIST/libs/python/test/ben_scott1.py
Killed
python $BOOST_DIST/libs/python/test/bienstman1.py
running...
Killed
python $BOOST_DIST/libs/python/test/bienstman2.py
running...
Killed
python $BOOST_DIST/libs/python/test/bienstman3.py
running...
Killed
python $BOOST_DIST/libs/python/test/multi_arg_constructor.py
running...
Killed
python $BOOST_DIST/libs/python/test/extract.py
running...
Killed
python $BOOST_DIST/libs/python/test/opaque.py
running...
Killed
python $BOOST_DIST/libs/python/test/pickle1.py
running...
Killed
python $BOOST_DIST/libs/python/test/pickle2.py
running...
Killed
python $BOOST_DIST/libs/python/test/pickle3.py
running...
Killed
python $BOOST_DIST/libs/python/test/nested.py
running...
Killed
python $BOOST_DIST/libs/python/test/docstring.py
running...
Killed
python $BOOST_DIST/libs/python/test/bienstman4.py
running...
Killed
python $BOOST_DIST/libs/python/test/bienstman5.py
running...
Killed
python $BOOST_DIST/libs/python/test/test_builtin_converters.py
running...
Killed
python $BOOST_DIST/libs/python/test/test_cltree.py
Killed
python $BOOST_DIST/libs/python/test/newtest.py
running...
Killed
python $BOOST_DIST/libs/python/test/iterator.py
running...
Killed
python $BOOST_DIST/libs/python/test/crossmod_exception.py
running...
Done.
python $BOOST_DIST/libs/python/test/vector_indexing_suite.py
running...
Killed
python $BOOST_DIST/libs/python/test/return_arg.py
running...
Killed
python $BOOST_DIST/libs/python/test/keywords_test.py
running...
Killed
python $BOOST_DIST/libs/python/test/properties.py
Killed
python $BOOST_DIST/libs/python/test/map_indexing_suite.py
running...
Killed
python $BOOST_DIST/libs/python/test/injected.py
running...
Killed


__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/




More information about the Cplusplus-sig mailing list