Boost logo

Boost Users :

Subject: Re: [Boost-users] trouble getting older version of boost to build
From: David Toth (dtoth) (dtoth_at_[hidden])
Date: 2014-06-02 08:56:02


H Slava. Thanks for the suggestion. I had the bjam program just build the threading library and have put the output of running the command bjam inline below. To be honest, I don't even know where to begin to debug this. I did surf the web looking for ideas, but didn't find any. Again, any thoughts would be greatly appreciated. Thanks!

Dave



-----Original Message-----
From: Boost-users [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Slava
Sent: Monday, June 02, 2014 4:29 AM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] trouble getting older version of boost to build

On Sun, 01 Jun 2014 17:40:41 +0200, David Toth (dtoth) <dtoth_at_[hidden]>
wrote:

> On Ubuntu, Fedora, and Debian (these are the versions of Linux I can
> use on the systems), I am unable to build the full set of libraries.
> After running bootstrap.sh and bjam, I am missing these files that
> were created on CentOS:
> libboost_thread.a‎
> libboost_thread.so‎
> libboost_thread.so.1.41.0‎

Hi David,

Look at the console output of build process, there is normally an error diagnostic in plain text, which should give you a clue how to proceed further.

---- beginning of bjam output ----



Building the Boost C++ Libraries.

After the build, the headers will be located at
  
    /home/dtoth/Desktop/vina/boost_1_41_0
    
The libraries will be located at
    
    /home/dtoth/Desktop/vina/boost_1_41_0/stage/lib
     
Use 'bjam install --prefix=<path>' if you wish to install headers and
libraries to a different location and remove the source tree.


...patience...
...found 518 targets...
...updating 8 targets...
gcc.compile.c++ bin.v2/libs/thread/build/gcc-4.4.7/release/threading-multi/pthread/thread.o
In file included from libs/thread/src/pthread/thread.cpp:25:
libs/thread/src/pthread/timeconv.inl: In function ‘void<unnamed>::to_time(int, boost::xtime&)’:
libs/thread/src/pthread/timeconv.inl:20: error: expected unqualified-id before numeric constant
libs/thread/src/pthread/timeconv.inl: In function ‘void<unnamed>::to_timespec_duration(const boost::xtime&, timespec&)’:
libs/thread/src/pthread/timeconv.inl:57: error: expected unqualified-id before numeric constant
libs/thread/src/pthread/timeconv.inl: In function ‘void<unnamed>::to_duration(boost::xtime, int&)’:
libs/thread/src/pthread/timeconv.inl:88: error: expected unqualified-id before numeric constant
libs/thread/src/pthread/timeconv.inl: In function ‘void<unnamed>::to_microduration(boost::xtime, int&)’:
libs/thread/src/pthread/timeconv.inl:110: error: expected unqualified-id before numeric constant

    "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_THREAD_BUILD_DLL=1 -DBOOST_THREAD_POSIX -DNDEBUG -I"." -c -o "bin.v2/libs/thread/build/gcc-4.4.7/release/threading-multi/pthread/thread.o" "libs/thread/src/pthread/thread.cpp"

...failed gcc.compile.c++ bin.v2/libs/thread/build/gcc-4.4.7/release/threading-multi/pthread/thread.o...
...skipped <pbin.v2/libs/thread/build/gcc-4.4.7/release/threading-multi>libboost_thread.so.1.41.0 for lack of <pbin.v2/libs/thread/build/gcc-4.4.7/release/threading-multi>pthread/thread.o...
...skipped <pstage/lib>libboost_thread.so.1.41.0 for lack of <pbin.v2/libs/thread/build/gcc-4.4.7/release/threading-multi>libboost_thread.so.1.41.0...
...skipped <pstage/lib>libboost_thread.so for lack of <pstage/lib>libboost_thread.so.1.41.0...
gcc.compile.c++ bin.v2/libs/thread/build/gcc-4.4.7/release/link-static/threading-multi/pthread/thread.o
In file included from libs/thread/src/pthread/thread.cpp:25:
libs/thread/src/pthread/timeconv.inl: In function ‘void<unnamed>::to_time(int, boost::xtime&)’:
libs/thread/src/pthread/timeconv.inl:20: error: expected unqualified-id before numeric constant
libs/thread/src/pthread/timeconv.inl: In function ‘void<unnamed>::to_timespec_duration(const boost::xtime&, timespec&)’:
libs/thread/src/pthread/timeconv.inl:57: error: expected unqualified-id before numeric constant
libs/thread/src/pthread/timeconv.inl: In function ‘void<unnamed>::to_duration(boost::xtime, int&)’:
libs/thread/src/pthread/timeconv.inl:88: error: expected unqualified-id before numeric constant
libs/thread/src/pthread/timeconv.inl: In function ‘void<unnamed>::to_microduration(boost::xtime, int&)’:
libs/thread/src/pthread/timeconv.inl:110: error: expected unqualified-id before numeric constant

    "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_THREAD_BUILD_LIB=1 -DBOOST_THREAD_POSIX -DNDEBUG -I"." -c -o "bin.v2/libs/thread/build/gcc-4.4.7/release/link-static/threading-multi/pthread/thread.o" "libs/thread/src/pthread/thread.cpp"

...failed gcc.compile.c++ bin.v2/libs/thread/build/gcc-4.4.7/release/link-static/threading-multi/pthread/thread.o...
...skipped <pbin.v2/libs/thread/build/gcc-4.4.7/release/link-static/threading-multi>libboost_thread.a(clean) for lack of <pbin.v2/libs/thread/build/gcc-4.4.7/release/link-static/threading-multi>pthread/thread.o...
...skipped <pbin.v2/libs/thread/build/gcc-4.4.7/release/link-static/threading-multi>libboost_thread.a for lack of <pbin.v2/libs/thread/build/gcc-4.4.7/release/link-static/threading-multi>pthread/thread.o...
...skipped <pstage/lib>libboost_thread.a for lack of <pbin.v2/libs/thread/build/gcc-4.4.7/release/link-static/threading-multi>libboost_thread.a...
...failed updating 2 targets...
...skipped 6 targets...

---- end of bjam output ----





// Unless you need the whole set of boost libraries, you may list the libraries you need using --with-libraries option of bjam, see http://www.boost.org/doc/libs/1_55_0/more/getting_started/unix-variants.html#easy-build-and-install
for reference.

Regards, Slava

_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


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