Building boost under solaris
Hello,
I am trying to compile boost 1.57 under Solaris for the second day now,
please help.
Here is my setup:
- Solaris Sparc 5.10
- gcc 4.9.2
What I did:
./bootstrap.sh --without-icu --prefix=/usr/local/
-n Building Boost.Build engine with toolset gcc...
./b2
This results in two errors like the following:
gcc.compile.asm
bin.v2/libs/context/build/gcc-4.9.2/release/threading-multi/asm/make_sparc64_sysv_elf_gas.o
/usr/ccs/bin/as: "/var/tmp//cc3IBrs7.s", line 13: error: invalid character
(0x40)
/usr/ccs/bin/as: "/var/tmp//cc3IBrs7.s", line 34: warning: detect global
register use not covered .register pseudo-op
/usr/ccs/bin/as: "/var/tmp//cc3IBrs7.s", line 52: error: unknown "%"-symbol
/usr/ccs/bin/as: "/var/tmp//cc3IBrs7.s", line 52: error: quoted-string
operand required
/usr/ccs/bin/as: "/var/tmp//cc3IBrs7.s", line 52: error: statement syntax
"g++" -x assembler-with-cpp -O3 -finline-functions -Wno-inline -Wall
-fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTEXT_DYN_LINK=1
-DBOOST_CONTEXT_SOURCE -DNDEBUG -D_XOPEN_SOURCE=600 -I"." -c -o "bin.\
v2/libs/context/build/gcc-4.9.2/release/threading-multi/asm/make_sparc64_sysv_elf_gas.o"
"libs/context/src/asm/make_sparc64_sysv_elf_gas.S"
Question 1: the /usr/css/bin directory is not in my PATH. How can I tell b2
to use the gnu-utils assembler?
I also get a lot of errors like this:
"g++" -x assembler-with-cpp -O3 -finline-functions -Wno-inline -Wall
-fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTEXT_DYN_LINK=1
-DBOOST_CONTEXT_SOURCE -DNDEBUG -D_XOPEN_SOURCE=600 -I"." -c -o "bin.\
v2/libs/context/build/gcc-4.9.2/release/threading-multi/asm/jump_sparc64_sysv_elf_gas.o"
"libs/context/src/asm/jump_sparc64_sysv_elf_gas.S"
...failed gcc.compile.asm
bin.v2/libs/context/build/gcc-4.9.2/release/threading-multi/asm/jump_sparc64_sysv_elf_gas.o...
gcc.compile.c++
bin.v2/libs/context/build/gcc-4.9.2/release/threading-multi/unsupported.o
libs/context/src/unsupported.cpp:7:2: error: #error "platform not supported"
#error "platform not supported"
^
"g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall
-pthreads -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTEXT_DYN_LINK=1
-DBOOST_CONTEXT_SOURCE -DNDEBUG -D_XOPEN_SOURCE=600 -I"."\
-c -o
"bin.v2/libs/context/build/gcc-4.9.2/release/threading-multi/unsupported.o"
"libs/context/src/unsupported.cpp"
...failed gcc.compile.c++
bin.v2/libs/context/build/gcc-4.9.2/release/threading-multi/unsupported.o...
...skipped
SPARC is not supported by boost.context - please apply --without-context
2015-01-10 8:10 GMT+01:00 Vicente J. Botet Escriba : Le 08/01/15 15:14, Oliver Kowalke a écrit : SPARC is not supported by boost.context - please apply --without-context Oliver, maybe it would be worth to check for some macros so that the
error could be more explicit. the code already contains - '#error "platform not supported" - which should
be observed in the compiler messages - maybe overlooked by Raphael
Oliver
Le 10/01/15 10:37, Oliver Kowalke a écrit :
2015-01-10 8:10 GMT+01:00 Vicente J. Botet Escriba
mailto:vicente.botet@wanadoo.fr>: Le 08/01/15 15:14, Oliver Kowalke a écrit :
SPARC is not supported by boost.context - please apply --without-context
Oliver, maybe it would be worth to check for some macros so that the error could be more explicit.
the code already contains - '#error "platform not supported" - which should be observed in the compiler messages - maybe overlooked by Raphael
Great. I don't understand why then the user is showing the compile errors he shows :( Best, Vicente
2015-01-10 17:18 GMT+01:00 Vicente J. Botet Escriba < vicente.botet@wanadoo.fr>:
Great. I don't understand why then the user is showing the compile errors he shows :(
boost.context still contains the old SPARC assembler code (which was reported to work with gcc < 4.9, implementation was provided by Martin Husemann). I don't know why GNU as (from GCC-4.9.2) fails. best, Oliver
Hello, Oliver!
Tell me, please, you plan to add support of Solaris SPARC into
boost.context?
2015-01-08 19:14 GMT+05:00 Oliver Kowalke
SPARC is not supported by boost.context - please apply --without-context
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- С уважением, Владислав Щапов ICQ: 223-695-654
On Sat, Jan 10, 2015 at 5:42 AM, Владислав Щапов
Tell me, please, you plan to add support of Solaris SPARC into boost.context?
At a wild guess, he would need access to such a machine, its ABI specification and time to implement and test. Perhaps you (or someone) could provide the first two? Better still would be if you understand the ABI and could supply an assembler source, or even just a description of the necessary sequence of instructions.
participants (5)
-
Nat Goodspeed
-
Oliver Kowalke
-
Raphael Fuchs
-
Vicente J. Botet Escriba
-
Владислав Щапов