|
Boost : |
From: Prasad Kommoju (pkommoju_at_[hidden])
Date: 2002-05-27 02:59:57
I have been trying to build boost threads library (boost_1_28_0) on SunOS
5.8, Sun WorkShop 6 update
2 C++ 5.3 compiler with no success. I am looking specifically for proper jam
file (sunpro-stlport-tools.jam,
or some such) that invokes Native C++ compiler, and the right user.hpp file.
If any one has successfully
built boost libraries (threads, most importantly) using Native C++ compiler,
on SunOS
5.3, please send me the jam file and user.hpp and any information that I
could use.
Thanks in advance.
Prasad Kommoju,
pkommoju_at_[hidden]
The most vexing problem is compiler core dump like this:
"/home/pkommoju/bnative/boost_1_28_0/boost/function.hpp", line 341: Warning
(Ana
chronism): Type names qualified by template parameters require "typename".
CC: Fatal error in ccfe: Segmentation Fault (core dumped)
Extra information that might give you a clue:
I have hacked gcc-tools.jam and gcc-stlport-tools.jam and created
sunpro-tools.jam and
sunpro-stlport-tools.jam.
I ran configure as follows:
CPPFLAGS=-D_REENTRANT -D_STLP_NO_OWN_NAMESPACE \
-D_STLP_HAS_NO_NEW_IOSTREAMS -I$HOME/snative/stlp \
CXXFLAGS="-mt -norunpath -xarch=native" -xcg92 -PIC -xO2 CXX=CC
and many more variations.
Copied the generated user.hpp to all required directories. Long story short,
a bunch of test compilations:
CC -D_STLP_NO_OWN_NAMESPACE -D_STLP_HAS_NO_NEW_IOSTREAMS \
-DBOOST_NO_INCLASS_MEMBER_INITIALIZATION \
-D_STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS -DBOOST_HAS_THREADS \
-DBOOST_HAS_PTHREADS -DBOOST_HAS_PTHREAD_DELAY_NP \
-DBOOST_HAS_NANOSLEEP -I/home/pkommoju/bnative/boost_1_28_0 \
-I/home/pkommoju/snative/stlp -mt -c thread.cpp
CC -DBOOST_NO_INCLASS_MEMBER_INITIALIZATION -DBOOST_HAS_THREADS \
-DBOOST_HAS_PTHREADS -DBOOST_HAS_PTHREAD_DELAY_NP \
-DBOOST_HAS_NANOSLEEP -I/home/pkommoju/bnative/boost_1_28_0 \
-I/home/pkommoju/snative/stlp -mt -c thread.cpp
CC -DBOOST_NO_INCLASS_MEMBER_INITIALIZATION -DBOOST_HAS_THREADS \
-DBOOST_HAS_PTHREADS -DBOOST_HAS_PTHREAD_DELAY_NP \
-DBOOST_HAS_NANOSLEEP \
-DBOOST_USER_CONFIG=\"/home/pkommoju/bnative/boost_1_28_0/my-boost-cfg.h\" \
-I/home/pkommoju/bnative/boost_1_28_0 -mt -c thread.cpp
of boost_1_28/boost/thread/thread.cpp all fail with a series of warnings
starting with:
"/home/pkommoju/bnative/boost_1_28_0/boost/function/function_template.hpp",
line
212: Warning (Anachronism): Type names qualified by template parameters
require
"typename".
And end in core dump with this:
"/home/pkommoju/bnative/boost_1_28_0/boost/function.hpp", line 341: Warning
(Ana
chronism): Type names qualified by template parameters require "typename".
CC: Fatal error in ccfe: Segmentation Fault (core dumped)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk