Boost logo

Boost Users :

Subject: [Boost-users] Compilation error's while building Boost 1_43_0 on HP-UX 11.11 with gcc version 3.3.1
From: Nakul Virmani (nakulvirmani_at_[hidden])
Date: 2010-09-08 06:28:20


HI All,

I am trying to build boost 1_43_0 on HP-UX box (HP-UX 11.11) using gcc
verision 3.3.1, but i am running into compilation errors.

The gcc version details are as below

-bash-3.2$ ./gcc -v
Reading specs from ./../lib/gcc-lib/hppa2.0w-hp-hpux11.11/3.3.1/specs
Configured with: ../src/configure --enable-languages=c,c++
--prefix=/usr/local/pa20_32 --with-local-prefix=/usr/local/pa20_32
--with-gnu-as --with-as=/usr/local/pa20_32/bin/as --with-ld=/usr/ccs/bin/ld
--disable-shared --disable-nls
Thread model: single
gcc version 3.3.1

The following error are thrown and not even a single file is built

...patience...
...patience...
...patience...
...found 5243 targets...
...updating 747 targets...
common.mkdir stage
common.mkdir stage/lib
common.mkdir /export/home/devuser/Boost_1_43_0/boost_1_43_0/tmp/libs/boost
common.mkdir
/export/home/devuser/Boost_1_43_0/boost_1_43_0/tmp/libs/boost/bin.v2
common.mkdir
/export/home/devuser/Boost_1_43_0/boost_1_43_0/tmp/libs/boost/bin.v2/libs
common.mkdir
/export/home/devuser/Boost_1_43_0/boost_1_43_0/tmp/libs/boost/bin.v2/libs/math
common.mkdir
/export/home/devuser/Boost_1_43_0/boost_1_43_0/tmp/libs/boost/bin.v2/libs/math/build
common.mkdir
/export/home/devuser/Boost_1_43_0/boost_1_43_0/tmp/libs/boost/bin.v2/libs/math/build/gcc-3.3.1
common.mkdir
/export/home/devuser/Boost_1_43_0/boost_1_43_0/tmp/libs/boost/bin.v2/libs/math/build/gcc-3.3.1/release
common.mkdir
/export/home/devuser/Boost_1_43_0/boost_1_43_0/tmp/libs/boost/bin.v2/libs/math/build/gcc-3.3.1/release/threading-multi
common.mkdir
/export/home/devuser/Boost_1_43_0/boost_1_43_0/tmp/libs/boost/bin.v2/libs/math/build/gcc-3.3.1/release/threading-multi/..
common.mkdir
/export/home/devuser/Boost_1_43_0/boost_1_43_0/tmp/libs/boost/bin.v2/libs/math/build/gcc-3.3.1/release/threading-multi/../src
common.mkdir
/export/home/devuser/Boost_1_43_0/boost_1_43_0/tmp/libs/boost/bin.v2/libs/math/build/gcc-3.3.1/release/threading-multi/../src/tr1
gcc.compile.c++.pch
/export/home/devuser/Boost_1_43_0/boost_1_43_0/tmp/libs/boost/bin.v2/libs/math/build/gcc-3.3.1/release/threading-multi/../src/tr1/pch.hpp.gch
g++: unrecognized option `-pthread'
g++: language c++-header not recognized
g++: libs/math/build/../src/tr1/pch.hpp: linker input file unused because
linking not done
gcc.compile.c++
/export/home/devuser/Boost_1_43_0/boost_1_43_0/tmp/libs/boost/bin.v2/libs/math/build/gcc-3.3.1/release/threading-multi/assoc_laguerre.o
g++: unrecognized option `-pthread'
cc1plus: error: unrecognized option `-Winvalid-pch'
    "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall
-pthread -fPIC -Winvalid-pch -DBOOST_ALL_NO_LIB=1 -DBOOST_BUILD_PCH_ENABLED
-DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG
-I"/export/home/devuser/Boost_1_43_0/boost_1_43_0/tmp/libs/boost/bin.v2/libs/math/build/gcc-3.3.1/release/threading-multi/../src/tr1"
-I"." -I"libs/math/src/tr1" -c -o
"/export/home/devuser/Boost_1_43_0/boost_1_43_0/tmp/libs/boost/bin.v2/libs/math/build/gcc-3.3.1/release/threading-multi/assoc_laguerre.o"
"libs/math/build/../src/tr1/assoc_laguerre.cpp"
...failed gcc.compile.c++
/export/home/devuser/Boost_1_43_0/boost_1_43_0/tmp/libs/boost/bin.v2/libs/math/build/gcc-3.3.1/release/threading-multi/assoc_laguerre.o...
gcc.compile.c++
/export/home/devuser/Boost_1_43_0/boost_1_43_0/tmp/libs/boost/bin.v2/libs/math/build/gcc-3.3.1/release/threading-multi/assoc_legendre.o
g++: unrecognized option `-pthread'
cc1plus: error: unrecognized option `-Winvalid-pch'
    "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall
-pthread -fPIC -Winvalid-pch -DBOOST_ALL_NO_LIB=1 -DBOOST_BUILD_PCH_ENABLED
-DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG
-I"/export/home/devuser/Boost_1_43_0/boost_1_43_0/tmp/libs/boost/bin.v2/libs/math/build/gcc-3.3.1/release/threading-multi/../src/tr1"
-I"." -I"libs/math/src/tr1" -c -o
"/export/home/devuser/Boost_1_43_0/boost_1_43_0/tmp/libs/boost/bin.v2/libs/math/build/gcc-3.3.1/release/threading-multi/assoc_legendre.o"
"libs/math/build/../src/tr1/assoc_legendre.cpp"
...failed gcc.compile.c++
/export/home/devuser/Boost_1_43_0/boost_1_43_0/tmp/libs/boost/bin.v2/libs/math/build/gcc-3.3.1/release/threading-multi/assoc_legendre.o...
gcc.compile.c++
/export/home/devuser/Boost_1_43_0/boost_1_43_0/tmp/libs/boost/bin.v2/libs/math/build/gcc-3.3.1/release/threading-multi/beta.o
g++: unrecognized option `-pthread'
cc1plus: error: unrecognized option `-Winvalid-pch'

Am i missing something?Is there any specific HP-UX version or any minimum
gcc version that is required to build boost 1_43_0?

Regards,
Nakul Virmani



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