Boost logo

Boost-Build :

Subject: Re: [Boost-build] Gcc pthread link error on opensolaris
From: Karun Gahlawat (karun.gahlawat_at_[hidden])
Date: 2009-01-27 20:16:02


ok. changed the changeset (from sun to solaris on gcc.jam) but now it
fails on a different error. pasting the beginning of the install logs.
Also pasting at the end, the errors from toolset sun.

TOOLSET GCC (removing the ld usage output ..also not the complete log
for brevity)

./tools/jam/src/bin.solarisx86/bjam --user-config=user-config.jam
--prefix=/usr/local --exec-prefix=/usr/local --libdir=/usr/local/lib
--includedir=/usr/local/include install
warning: Graph library does not contain optional GraphML reader.
note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH to the
note: directories containing the Expat headers and libraries, respectively.
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
Building Boost.Regex with the optional Unicode/ICU support disabled.
Note: Please refer to the Boost.Regex documentation for more information
Note: this is a strictly optional feature.
...patience...
...patience...
...patience...
...found 19182 targets...
...updating 134 targets...
gcc.link.dll bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/libboost_math_c99-gcc34-mt-1_37.so.1.37.0
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VW:Y:?] file(s)
        [-64] enforce a 64-bit link-edit
.........skipped logs.......
collect2: ld returned 1 exit status

    "g++" -o
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/libboost_math_c99-gcc34-mt-1_37.so.1.37.0"
-Wl,-h -Wl,libboost_math_c99-gcc34-mt-1_37.so.1.37.0 -shared
-Wl,--start-group
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/tgamma.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/trunc.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/acosh.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/asinh.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/atanh.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/cbrt.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/copysign.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/erfc.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/erf.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/expm1.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/fmax.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/fmin.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/fpclassify.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/hypot.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/lgamma.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/llround.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/log1p.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/lround.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/nextafter.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/nexttoward.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/round.o"
-Wl,-Bstatic -Wl,-Bdynamic -lrt -Wl,--end-group -Wl,--strip-all
-pthreads

...failed gcc.link.dll
bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/libboost_math_c99-gcc34-mt-1_37.so.1.37.0...
...skipped <p/usr/local/lib>libboost_math_c99-gcc34-mt-1_37.so.1.37.0
for lack of <pbin.v2/libs/math/build/gcc-3.4.3/release/threading-multi>libboost_math_c99-gcc34-mt-1_37.so.1.37.0...
...skipped <p/usr/local/lib>libboost_math_c99-gcc34-mt-1_37.so for
lack of <p/usr/local/lib>libboost_math_c99-gcc34-mt-1_37.so.1.37.0...
gcc.link.dll bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/libboost_math_c99f-gcc34-mt-1_37.so.1.37.0
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VW:Y:?] file(s)
        [-64] enforce a 64-bit link-edit
collect2: ld returned 1 exit status

    "g++" -o
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/libboost_math_c99f-gcc34-mt-1_37.so.1.37.0"
-Wl,-h -Wl,libboost_math_c99f-gcc34-mt-1_37.so.1.37.0 -shared
-Wl,--start-group
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/acoshf.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/asinhf.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/atanhf.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/cbrtf.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/copysignf.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/erfcf.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/erff.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/expm1f.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/fmaxf.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/fminf.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/fpclassifyf.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/hypotf.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/lgammaf.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/llroundf.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/log1pf.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/lroundf.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/nextafterf.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/nexttowardf.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/roundf.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/tgammaf.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/truncf.o"
-Wl,-Bstatic -Wl,-Bdynamic -lrt -Wl,--end-group -Wl,--strip-all
-pthreads

...failed gcc.link.dll
bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/libboost_math_c99f-gcc34-mt-1_37.so.1.37.0...
...skipped <p/usr/local/lib>libboost_math_c99f-gcc34-mt-1_37.so.1.37.0
for lack of <pbin.v2/libs/math/build/gcc-3.4.3/release/threading-multi>libboost_math_c99f-gcc34-mt-1_37.so.1.37.0...
...skipped <p/usr/local/lib>libboost_math_c99f-gcc34-mt-1_37.so for
lack of <p/usr/local/lib>libboost_math_c99f-gcc34-mt-1_37.so.1.37.0...
gcc.link.dll bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/libboost_math_c99l-gcc34-mt-1_37.so.1.37.0
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VW:Y:?] file(s)
collect2: ld returned 1 exit status

    "g++" -o
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/libboost_math_c99l-gcc34-mt-1_37.so.1.37.0"
-Wl,-h -Wl,libboost_math_c99l-gcc34-mt-1_37.so.1.37.0 -shared
-Wl,--start-group
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/acoshl.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/asinhl.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/atanhl.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/cbrtl.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/copysignl.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/erfcl.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/erfl.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/expm1l.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/fmaxl.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/fminl.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/fpclassifyl.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/hypotl.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/lgammal.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/llroundl.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/log1pl.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/lroundl.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/nextafterl.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/nexttowardl.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/roundl.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/tgammal.o"
"bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/truncl.o"
-Wl,-Bstatic -Wl,-Bdynamic -lrt -Wl,--end-group -Wl,--strip-all
-pthreads

...failed gcc.link.dll
bin.v2/libs/math/build/gcc-3.4.3/release/threading-multi/libboost_math_c99l-gcc34-mt-1_37.so.1.37.0...
...skipped <p/usr/local/lib>libboost_math_c99l-gcc34-mt-1_37.so.1.37.0
for lack of <pbin.v2/libs/math/build/gcc-3.4.3/release/threading-multi>libboost_math_c99l-gcc34-mt-1_37.so.1.37.0...
...skipped <p/usr/local/lib>libboost_math_c99l-gcc34-mt-1_37.so for
lack of <p/usr/local/lib>libboost_math_c99l-gcc34-mt-1_37.so.1.37.0...
gcc.link.dll bin.v2/libs/program_options/build/gcc-3.4.3/release/threading-multi/libboost_program_options-gcc34-mt-1_37.so.1.37.0
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VW:Y:?] file(s)
collect2: ld returned 1 exit status

    "g++" -o
"bin.v2/libs/program_options/build/gcc-3.4.3/release/threading-multi/libboost_program_options-gcc34-mt-1_37.so.1.37.0"
-Wl,-h -Wl,libboost_program_options-gcc34-mt-1_37.so.1.37.0 -shared
-Wl,--start-group
"bin.v2/libs/program_options/build/gcc-3.4.3/release/threading-multi/cmdline.o"
"bin.v2/libs/program_options/build/gcc-3.4.3/release/threading-multi/config_file.o"
"bin.v2/libs/program_options/build/gcc-3.4.3/release/threading-multi/options_description.o"
"bin.v2/libs/program_options/build/gcc-3.4.3/release/threading-multi/parsers.o"
"bin.v2/libs/program_options/build/gcc-3.4.3/release/threading-multi/variables_map.o"
"bin.v2/libs/program_options/build/gcc-3.4.3/release/threading-multi/value_semantic.o"
"bin.v2/libs/program_options/build/gcc-3.4.3/release/threading-multi/positional_options.o"
"bin.v2/libs/program_options/build/gcc-3.4.3/release/threading-multi/utf8_codecvt_facet.o"
"bin.v2/libs/program_options/build/gcc-3.4.3/release/threading-multi/convert.o"
"bin.v2/libs/program_options/build/gcc-3.4.3/release/threading-multi/winmain.o"
 -Wl,-Bstatic -Wl,-Bdynamic -lrt -Wl,--end-group -Wl,--strip-all
-pthreads

...failed gcc.link.dll
bin.v2/libs/program_options/build/gcc-3.4.3/release/threading-multi/libboost_program_options-gcc34-mt-1_37.so.1.37.0...
...skipped <p/usr/local/lib>libboost_program_options-gcc34-mt-1_37.so.1.37.0
for lack of <pbin.v2/libs/program_options/build/gcc-3.4.3/release/threading-multi>libboost_program_options-gcc34-mt-1_37.so.1.37.0...
...skipped <p/usr/local/lib>libboost_program_options-gcc34-mt-1_37.so
for lack of <p/usr/local/lib>libboost_program_options-gcc34-mt-1_37.so.1.37.0...
gcc.compile.c++
bin.v2/libs/python/build/gcc-3.4.3/release/threading-multi/numeric.o
In file included from ./boost/python/object/make_instance.hpp:9,
                 from ./boost/python/object/make_ptr_instance.hpp:8,
                 from ./boost/python/to_python_indirect.hpp:11,
                 from ./boost/python/converter/arg_to_python.hpp:10,
                 from ./boost/python/call.hpp:15,
                 from ./boost/python/object_core.hpp:12,
                 from ./boost/python/object.hpp:9,
                 from ./boost/python/tuple.hpp:10,
                 from ./boost/python/numeric.hpp:10,
                 from libs/python/src/numeric.cpp:6:
./boost/python/object/instance.hpp:44: error: a casts to a type other
than an integral or enumeration type cannot appear in a
constant-expression
./boost/python/object/instance.hpp:44: error: '->' cannot appear in a
constant-expression
./boost/python/object/instance.hpp:44: error: `&' cannot appear in a
constant-expression
In file included from ./boost/python/converter/registry.hpp:9,
                 from ./boost/python/converter/registered.hpp:8,
                 from ./boost/python/object/make_instance.hpp:10,
                 from ./boost/python/object/make_ptr_instance.hpp:8,
                 from ./boost/python/to_python_indirect.hpp:11,
                 from ./boost/python/converter/arg_to_python.hpp:10,
                 from ./boost/python/call.hpp:15,
                 from ./boost/python/object_core.hpp:12,
                 from ./boost/python/object.hpp:9,
                 from ./boost/python/tuple.hpp:10,
                 from ./boost/python/numeric.hpp:10,
                 from libs/python/src/numeric.cpp:6:
./boost/python/converter/rvalue_from_python_data.hpp:99: error: '->'
cannot appear in a constant-expression
./boost/python/converter/rvalue_from_python_data.hpp:99: error: `&'
cannot appear in a constant-expression
./boost/python/converter/rvalue_from_python_data.hpp:99: error:
template argument 1 is invalid
./boost/python/converter/rvalue_from_python_data.hpp:99: error:
`value' is not a member of `<declaration error>'

    "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline
-Wall -pthreads -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE
-DNDEBUG -I"." -I"/usr/include/python2.4" -c -o
"bin.v2/libs/python/build/gcc-3.4.3/release/threading-multi/numeric.o"
"libs/python/src/numeric.cpp"

...failed gcc.compile.c++
bin.v2/libs/python/build/gcc-3.4.3/release/threading-multi/numeric.o...
gcc.compile.c++
bin.v2/libs/python/build/gcc-3.4.3/release/threading-multi/list.o
In file included from ./boost/python/object/make_instance.hpp:9,
                 from ./boost/python/object/make_ptr_instance.hpp:8,
                 from ./boost/python/to_python_indirect.hpp:11,
                 from ./boost/python/converter/arg_to_python.hpp:10,
                 from ./boost/python/call.hpp:15,
                 from ./boost/python/object_core.hpp:12,
                 from ./boost/python/object.hpp:9,
                 from ./boost/python/list.hpp:10,
                 from libs/python/src/list.cpp:5:
./boost/python/object/instance.hpp:44: error: a casts to a type other
than an integral or enumeration type cannot appear in a
constant-expression
./boost/python/object/instance.hpp:44: error: '->' cannot appear in a
constant-expression
./boost/python/object/instance.hpp:44: error: `&' cannot appear in a
constant-expression
In file included from ./boost/python/converter/registry.hpp:9,
                 from ./boost/python/converter/registered.hpp:8,
                 from ./boost/python/object/make_instance.hpp:10,
                 from ./boost/python/object/make_ptr_instance.hpp:8,
                 from ./boost/python/to_python_indirect.hpp:11,
                 from ./boost/python/converter/arg_to_python.hpp:10,
                 from ./boost/python/call.hpp:15,
                 from ./boost/python/object_core.hpp:12,
                 from ./boost/python/object.hpp:9,
                 from ./boost/python/list.hpp:10,
                 from libs/python/src/list.cpp:5:
./boost/python/converter/rvalue_from_python_data.hpp:99: error: '->'
cannot appear in a constant-expression
./boost/python/converter/rvalue_from_python_data.hpp:99: error: `&'
cannot appear in a constant-expression
./boost/python/converter/rvalue_from_python_data.hpp:99: error:
template argument 1 is invalid
./boost/python/converter/rvalue_from_python_data.hpp:99: error:
`value' is not a member of `<declaration error>'

    "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline
-Wall -pthreads -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE
-DNDEBUG -I"." -I"/usr/include/python2.4" -c -o
"bin.v2/libs/python/build/gcc-3.4.3/release/threading-multi/list.o"
"libs/python/src/list.cpp"

...failed gcc.compile.c++
bin.v2/libs/python/build/gcc-3.4.3/release/threading-multi/list.o...
gcc.compile.c++
bin.v2/libs/python/build/gcc-3.4.3/release/threading-multi/long.o
In file included from ./boost/python/object/make_instance.hpp:9,
                 from ./boost/python/object/make_ptr_instance.hpp:8,
                 from ./boost/python/to_python_indirect.hpp:11,
                 from ./boost/python/converter/arg_to_python.hpp:10,
                 from ./boost/python/call.hpp:15,
                 from ./boost/python/object_core.hpp:12,
                 from ./boost/python/object.hpp:9,
                 from ./boost/python/long.hpp:10,
                 from libs/python/src/long.cpp:5:
./boost/python/object/instance.hpp:44: error: a casts to a type other
than an integral or enumeration type cannot appear in a
constant-expression
./boost/python/object/instance.hpp:44: error: '->' cannot appear in a
constant-expression
./boost/python/object/instance.hpp:44: error: `&' cannot appear in a
constant-expression
In file included from ./boost/python/converter/registry.hpp:9,
                 from ./boost/python/converter/registered.hpp:8,
                 from ./boost/python/object/make_instance.hpp:10,
                 from ./boost/python/object/make_ptr_instance.hpp:8,
                 from ./boost/python/to_python_indirect.hpp:11,
                 from ./boost/python/converter/arg_to_python.hpp:10,
                 from ./boost/python/call.hpp:15,
                 from ./boost/python/object_core.hpp:12,
                 from ./boost/python/object.hpp:9,
                 from ./boost/python/long.hpp:10,
                 from libs/python/src/long.cpp:5:
./boost/python/converter/rvalue_from_python_data.hpp:99: error: '->'
cannot appear in a constant-expression
./boost/python/converter/rvalue_from_python_data.hpp:99: error: `&'
cannot appear in a constant-expression
./boost/python/converter/rvalue_from_python_data.hpp:99: error:
template argument 1 is invalid
./boost/python/converter/rvalue_from_python_data.hpp:99: error:
`value' is not a member of `<declaration error>'

    "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline
-Wall -pthreads -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE
-DNDEBUG -I"." -I"/usr/include/python2.4" -c -o
"bin.v2/libs/python/build/gcc-3.4.3/release/threading-multi/long.o"
"libs/python/src/long.cpp"

...failed gcc.compile.c++
bin.v2/libs/python/build/gcc-3.4.3/release/threading-multi/long.o...
gcc.compile.c++
bin.v2/libs/python/build/gcc-3.4.3/release/threading-multi/dict.o
In file included from ./boost/python/object/make_instance.hpp:9,
                 from ./boost/python/object/make_ptr_instance.hpp:8,
                 from ./boost/python/to_python_indirect.hpp:11,
                 from ./boost/python/converter/arg_to_python.hpp:10,
                 from ./boost/python/call.hpp:15,
                 from ./boost/python/object_core.hpp:12,
                 from ./boost/python/object.hpp:9,
                 from ./boost/python/dict.hpp:10,
                 from libs/python/src/dict.cpp:4:
./boost/python/object/instance.hpp:44: error: a casts to a type other
than an integral or enumeration type cannot appear in a
constant-expression
./boost/python/object/instance.hpp:44: error: '->' cannot appear in a
constant-expression
./boost/python/object/instance.hpp:44: error: `&' cannot appear in a
constant-expression
In file included from ./boost/python/converter/registry.hpp:9,
                 from ./boost/python/converter/registered.hpp:8,
                 from ./boost/python/object/make_instance.hpp:10,
                 from ./boost/python/object/make_ptr_instance.hpp:8,
                 from ./boost/python/to_python_indirect.hpp:11,
                 from ./boost/python/converter/arg_to_python.hpp:10,
                 from ./boost/python/call.hpp:15,
                 from ./boost/python/object_core.hpp:12,
                 from ./boost/python/object.hpp:9,
                 from ./boost/python/dict.hpp:10,
                 from libs/python/src/dict.cpp:4:
./boost/python/converter/rvalue_from_python_data.hpp:99: error: '->'
cannot appear in a constant-expression
./boost/python/converter/rvalue_from_python_data.hpp:99: error: `&'
cannot appear in a constant-expression
./boost/python/converter/rvalue_from_python_data.hpp:99: error:
template argument 1 is invalid
./boost/python/converter/rvalue_from_python_data.hpp:99: error:
`value' is not a member of `<declaration error>'

--------------gcc ends------------

TOOLSET SUN

./tools/jam/src/bin.solaris/bjam --user-config=user-config.jam
--prefix=/usr/local --exec-prefix=/usr/local --libdir=/usr/local/lib
--includedir=/usr/local/include stdlib=sun-stlport install
warning: Graph library does not contain optional GraphML reader.
note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH to the
note: directories containing the Expat headers and libraries, respectively.
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
Building Boost.Regex with the optional Unicode/ICU support disabled.
Note: Please refer to the Boost.Regex documentation for more information
Note: this is a strictly optional feature.
...patience...
...patience...
...patience...
...found 19190 targets...
...updating 13 targets...
sun.compile.c++
bin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi/thread.o
"./boost/thread/detail/thread.hpp", line 344: Error:
boost::thread::thread(boost::thread&) is not accessible from
boost::move(boost::detail::thread_move_t<boost::thread>).
1 Error(s) detected.

    "CC" -library=stlport4 -fast -mt -KPIC -DBOOST_ALL_NO_LIB=1
-DBOOST_THREAD_BUILD_DLL=1 -DBOOST_THREAD_POSIX -DNDEBUG -I"." -c -o
"bin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi/thread.o"
"libs/thread/src/pthread/thread.cpp"

...failed sun.compile.c++
bin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi/thread.o...
...skipped <pbin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi>libboost_thread-sw-mt-1_37.so.1.37.0
for lack of <pbin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi>thread.o...
...skipped <p/usr/local/lib>libboost_thread-sw-mt-1_37.so.1.37.0 for
lack of <pbin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi>libboost_thread-sw-mt-1_37.so.1.37.0...
...skipped <p/usr/local/lib>libboost_thread-sw-mt-1_37.so for lack of
<p/usr/local/lib>libboost_thread-sw-mt-1_37.so.1.37.0...
...skipped <pbin.v2/libs/wave/build/sun/release/stdlib-sun-stlport/threading-multi>libboost_wave-sw-mt-1_37.so.1.37.0
for lack of <pbin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threading-multi>libboost_thread-sw-mt-1_37.so.1.37.0...
...skipped <p/usr/local/lib>libboost_wave-sw-mt-1_37.so.1.37.0 for
lack of <pbin.v2/libs/wave/build/sun/release/stdlib-sun-stlport/threading-multi>libboost_wave-sw-mt-1_37.so.1.37.0...
...skipped <p/usr/local/lib>libboost_wave-sw-mt-1_37.so for lack of
<p/usr/local/lib>libboost_wave-sw-mt-1_37.so.1.37.0...
...skipped <p/usr/local/lib>libboost_thread-sw-mt.so for lack of
<p/usr/local/lib>libboost_thread-sw-mt-1_37.so.1.37.0...
...skipped <p/usr/local/lib>libboost_wave-sw-mt.so for lack of
<p/usr/local/lib>libboost_wave-sw-mt-1_37.so.1.37.0...
sun.compile.c++
bin.v2/libs/thread/build/sun/release/link-static/stdlib-sun-stlport/threading-multi/thread.o
"./boost/thread/detail/thread.hpp", line 344: Error:
boost::thread::thread(boost::thread&) is not accessible from
boost::move(boost::detail::thread_move_t<boost::thread>).
1 Error(s) detected.

    "CC" -library=stlport4 -fast -mt -DBOOST_ALL_NO_LIB=1
-DBOOST_THREAD_BUILD_LIB=1 -DBOOST_THREAD_POSIX -DNDEBUG -I"." -c -o
"bin.v2/libs/thread/build/sun/release/link-static/stdlib-sun-stlport/threading-multi/thread.o"
"libs/thread/src/pthread/thread.cpp"

...failed sun.compile.c++
bin.v2/libs/thread/build/sun/release/link-static/stdlib-sun-stlport/threading-multi/thread.o...
...skipped <pbin.v2/libs/thread/build/sun/release/link-static/stdlib-sun-stlport/threading-multi>libboost_thread-sw-mt-1_37.a
for lack of <pbin.v2/libs/thread/build/sun/release/link-static/stdlib-sun-stlport/threading-multi>thread.o...
...skipped <p/usr/local/lib>libboost_thread-sw-mt-1_37.a for lack of
<pbin.v2/libs/thread/build/sun/release/link-static/stdlib-sun-stlport/threading-multi>libboost_thread-sw-mt-1_37.a...
...skipped <p/usr/local/lib>libboost_thread-sw-mt.a for lack of
<p/usr/local/lib>libboost_thread-sw-mt-1_37.a...
...failed updating 2 targets...
...skipped 11 targets...
Not all Boost libraries built properly.

On Tue, Jan 27, 2009 at 12:40 PM, Vladimir Prus <ghost_at_[hidden]> wrote:
> On Tuesday 27 January 2009 19:12:28 Karun Gahlawat wrote:
>> Hi,
>> I am trying to build boost on opensolaris 2008.11 using gcc which is
>> automatically selected by configure.
>> It is however failing on building / linking with
>> g++ unknown option 'pthread' given to ld error.
>> Could someone please point me to the right direction?
>
> If the above error is the *exact* error you got, then I believe it's fixed in SVN
> head as follows:
>
> https://svn.boost.org/trac/boost/changeset/49616
>
> and we presently pass -pthreads, not -pthread. You can either apply this fix to your
> version of Boost, or use SVN HEAD.
>
>> Building using sun CC cannot build multithreading either.
>
> With what error?
>
>> Also,
>> Is boost pre built available for openbsd?
>
> What do you mean 'pre built'? C++ Boost is distributed in source form only,
> and I don't know if openbsd provides a binary package.
>
> - Volodya
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
>


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk