Boost logo

Boost Users :

Subject: [Boost-users] Building boost under solaris
From: Raphael Fuchs (raphael.fuchs1_at_[hidden])
Date: 2015-01-08 07:44:07


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
<pbin.v2/libs/context/build/gcc-4.9.2/release/threading-multi>libboost_context.so.1.57.0
for lack of
<pbin.v2/libs/context/build/gcc-4.9.2/release/threading-multi>asm/make_sparc64_sysv_\
   elf_gas.o...

Question 2:Why does the compiler complain, even though the
-D_XOPEN_SOURCE=600 flag is specified?

Your support is very much appreciated

Best regards
Raphael



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