
Hi All, I need some help with compiling boost for solaris x64. When I try to compile the bjam, I get a x86 version of bjam and boost, any idea what setting/flag I need to use on bjam? Regards, Iskandar Prins iprins@alphabay.nl

Iskandar Prins wrote:
Hi All,
I need some help with compiling boost for solaris x64. When I try to compile the bjam, I get a x86
x86 build of bjam itself is fine.
version of bjam and boost, any idea what setting/flag I need to use on bjam?
Use bjam address-model=64 - Volodya

Ok, it compiled, but how can I make sure it's 64 bit ? -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Vladimir Prus Sent: Friday, March 19, 2010 16:50 To: boost-users@lists.boost.org Subject: Re: [Boost-users] Compiling for Solaris X64 Iskandar Prins wrote:
Hi All,
I need some help with compiling boost for solaris x64. When I try to compile the bjam, I get a x86
x86 build of bjam itself is fine.
version of bjam and boost, any idea what setting/flag I need to use on bjam?
Use bjam address-model=64 - Volodya _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Im trying to compile the asio example: but when compiling on solaris x64, I get the following error:
I compiled boost using bjam address-model=64
if [ ! -d .deps/ ]; then mkdir -p .deps/; fi
CC -xM1 -library=stlport4 -erroff=nonewline -I ./Lib/boost -I../../sdk/include64 -I../../sdk/examples -DSOLARIS -DSOLARIS64 -DNDEBUG -D_POSIX_PTHREAD_SEMANTICS -KPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -mt -erroff=nonewline -library=stlport4 -xarch=generic -xchip=generic -xO5 -xmodel=medium -xdepend=yes -fsimple=2 -fns=yes -ftrap=%none -xlibmil -xbuiltin=%all -nofstore -Qoption CC -iropt -Qoption CC -xcallee64 -Qoption ube -xcallee=yes -m64 -xarch=generic -xregs=no%frameptr -erroff=nonewline main.cpp | sed -e 's/^.*\.o *:/ main.o:/' > .deps/main.o.d
CC -I ./Lib/boost -I../../sdk/include64 -I../../sdk/examples -DSOLARIS -DSOLARIS64 -DNDEBUG -D_POSIX_PTHREAD_SEMANTICS -KPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -mt -erroff=nonewline -library=stlport4 -xarch=generic -xchip=generic -xO5 -xmodel=medium -xdepend=yes -fsimple=2 -fns=yes -ftrap=%none -xlibmil -xbuiltin=%all -nofstore -Qoption CC -iropt -Qoption CC -xcallee64 -Qoption ube -xcallee=yes -m64 -xarch=generic -xregs=no%frameptr -erroff=nonewline -c main.cpp -o main.o
"./Lib/boost/boost/asio/basic_socket_iostream.hpp", line 113: Error: Type name expected instead of "BOOST_PP_REPEAT_FROM_TO_1".
"./Lib/boost/boost/asio/ip/tcp.hpp", line 98: Where: While specializing "boost::asio::basic_socket_iostream
Hi All,
I need some help with compiling boost for solaris x64. When I try to compile the bjam, I get a x86
x86 build of bjam itself is fine.
version of bjam and boost, any idea what setting/flag I need to use on bjam?
Use bjam address-model=64 - Volodya _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

I'm running into the following problem with boost on solaris x64: g++ spits the following error out: In file included from ./Lib/boost/boost/thread.hpp:14, from main.cpp:2: ./Lib/boost/boost/thread/condition_variable.hpp:18:2: #error "Boost threads unavailable on this platform" In file included from ./Lib/boost/boost/thread.hpp:17, from main.cpp:2: ./Lib/boost/boost/thread/once.hpp:18:2: #error "Boost threads unavailable on this platform" In file included from ./Lib/boost/boost/thread.hpp:17, from main.cpp:2: It seems that solaris x64 is not supported for boost threads, however when I look into the boost/thread/detail/platform.hpp it should be supported. Any idea why this is? -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Vladimir Prus Sent: Friday, March 19, 2010 16:50 To: boost-users@lists.boost.org Subject: Re: [Boost-users] Compiling for Solaris X64 Iskandar Prins wrote:
Hi All,
I need some help with compiling boost for solaris x64. When I try to compile the bjam, I get a x86
x86 build of bjam itself is fine.
version of bjam and boost, any idea what setting/flag I need to use on bjam?
Use bjam address-model=64 - Volodya _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Iskandar Prins
-
Vladimir Prus