Boost logo

Boost Users :

From: Patrik Jonsson (patrik_at_[hidden])
Date: 2005-05-25 17:48:48


> "power3" is something that was added by GCC after I wrote this support
> into boost.build. I just added it, and adjusted for the aix64 and
> power combinations... Try the attached.. but now the BUILD value will
> be the complete:
>
> <architecture>power/<address-model>64/<instruction-set>power3/<object-model>aix
>
>
> Not including the instruction-set should also work. But it will give
> you the generic -mcpu=powerpc64 option instead of the -mcpu=power3.
> It's up to you which one you want.
>
ok, this is looking good. It looks like I now can build all static
libraries. However, the shared libraries now fail because the -pthread
option is not given on the link line. (I'm pretty sure this worked before):

...
gcc-Link-action
bin/boost/libs/date_time/build/libboost_date_time.so/gcc/debug/a
ddress-model-64/architecture-power/instruction-set-power3/object-model-aix/share
d-linkable-true/libboost_date_time-gcc-d-1_32.so
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_init
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_destroy
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status

    set -e
    
LIBPATH=bin/boost/libs/date_time/build/libboost_date_time.so/gcc/debug/addre
ss-model-64/architecture-power/instruction-set-power3/object-model-aix/shared-li
nkable-true:$LIBPATH
    export LIBPATH
    "g++" -g -maix64 -fPIC -shared -o
"bin/boost/libs/date_time/build/libbo
ost_date_time.so/gcc/debug/address-model-64/architecture-power/instruction-set-p
ower3/object-model-aix/shared-linkable-true/libboost_date_time-gcc-d-1_32.so"

 "bin/boost/libs/date_time/build/libboost_date_time.so/gcc/debug/address-model-6
4/architecture-power/instruction-set-power3/object-model-aix/shared-linkable-tru
e/greg_month.o"
"bin/boost/libs/date_time/build/libboost_date_time.so/gcc/debug/
address-model-64/architecture-power/instruction-set-power3/object-model-aix/shar
ed-linkable-true/greg_weekday.o"
"bin/boost/libs/date_time/build/libboost_date_t
ime.so/gcc/debug/address-model-64/architecture-power/instruction-set-power3/obje
ct-model-aix/shared-linkable-true/date_generators.o"
   

...failed gcc-Link-action
bin/boost/libs/date_time/build/libboost_date_time.so/g
cc/debug/address-model-64/architecture-power/instruction-set-power3/object-model
-aix/shared-linkable-true/libboost_date_time-gcc-d-1_32.so...
...skipped <@boost!lib64-gcc>libboost_date_time-gcc-d-1_32.so for lack
of <@boos
t!libs!date_time!build/libboost_date_time.so/gcc/debug/address-model-64/architec
ture-power/instruction-set-power3/object-model-aix/shared-linkable-true>libboost
_date_time-gcc-d-1_32.so...

If this is fixed, it looks like everything will build ok. Thanks a bunch!

/Patrik


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net