Boost 1.41 compile error with gcc 4.2.4 on Solaris Sparc
Hi,
I have a problem to compile Boost 1.39 or 1.40 ro 1.41 on Solaris
Sparck with gcc 4.2.4.
I am tried to compile with bjam and witj Cmake but I will get the same
assembler message about illegal operands error.
I noticed that when I defined BOOST_SP_USE_PTHREADS everything
compiled fine until I tried to compile my software using Boost. Then I
got the same assembler message about illegal operands.
Do You have any advice?
Best Regards,
Teemu
Here is the error while running make:
~/boost-1.41.0.cmake0/build % make
[ 0%] Building CXX object libs/date_time/src/CMakeFiles/
boost_date_time-mt-shared.dir/gregorian/greg_month.cpp.o
/var/tmp//ccXu6PKl.s: Assembler messages:
/var/tmp//ccXu6PKl.s:580: Error: Illegal operands
/var/tmp//ccXu6PKl.s:595: Error: Illegal operands
/var/tmp//ccXu6PKl.s:8504: Error: Illegal operands
make[2]: *** [libs/date_time/src/CMakeFiles/boost_date_time-mt-
shared.dir/gregorian/greg_month.cpp.o] Error 1
make[1]: *** [libs/date_time/src/CMakeFiles/boost_date_time-mt-
shared.dir/all] Error 2
make: *** [all] Error 2
Here is the generated configuration output from Cmake:
tes@kielo
Hi, Teme wrote:
Hi,
I have a problem to compile Boost 1.39 or 1.40 ro 1.41 on Solaris Sparck with gcc 4.2.4. I am tried to compile with bjam and witj Cmake but I will get the same assembler message about illegal operands error.
This will be addressed in the next release. You can apply the following patch: https://svn.boost.org/trac/boost/changeset/57949 to fix it locally.
I noticed that when I defined BOOST_SP_USE_PTHREADS everything compiled fine until I tried to compile my software using Boost. Then I got the same assembler message about illegal operands.
Defining BOOST_SP_USE_PTHREADS should indeed deal with it, but you need to remember to define it both when you build Boost and when you build your own code.
Hi,
Thanks a lot Peter!
Everything compiled and linked fine after the asm patch.
BR,
Teme
On 2 joulu, 14:42, "Peter Dimov"
Hi,
Teme wrote:
Hi,
I have a problem to compile Boost 1.39 or 1.40 ro 1.41 on Solaris Sparck with gcc 4.2.4. I am tried to compile with bjam and witj Cmake but I will get the same assembler message about illegal operands error.
This will be addressed in the next release. You can apply the following patch:
https://svn.boost.org/trac/boost/changeset/57949
to fix it locally.
I noticed that when I defined BOOST_SP_USE_PTHREADS everything compiled fine until I tried to compile my software using Boost. Then I got the same assembler message about illegal operands.
Defining BOOST_SP_USE_PTHREADS should indeed deal with it, but you need to remember to define it both when you build Boost and when you build your own code.
_______________________________________________ Boost-users mailing list Boost-us...@lists.boost.orghttp://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Peter Dimov
-
Teme