Opened 11 years ago

Closed 11 years ago

#5549 closed Bugs (fixed)

FTBFS due to chrono/detail/inlined/posix/thread_clock.hpp

Reported by: Peter Schueller <ps@…> Owned by: viboes
Milestone: Boost 1.47.0 Component: chrono
Version: Boost Development Trunk Severity: Showstopper
Keywords: Cc:

Description

Between 71950 and 71963 a bug was introduced, I can no longer build the trunk, I get

    "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pedantic -pthread -fPIC -Wextra -Wno-long-long -pedantic -DBOOST_ALL_DYN_LINK=1 -DBOOST_ALL_NO_LIB=1 -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -DNDEBUG  -I"." -c -o "bin.v2/libs/chrono/build/gcc-4.4.5/release/threading-multi/thread_clock.o" "libs/chrono/src/thread_clock.cpp"

In file included from ./boost/chrono/detail/inlined/thread_clock.hpp:39,
                 from libs/chrono/src/thread_clock.cpp:18:
./boost/chrono/detail/inlined/posix/thread_clock.hpp: In static member function ‘static boost::chrono::time_point<boost::chrono::thread_clock, boost::chrono::duration<long int, boost::ratio<1l, 1000000000l> > > boost::chrono::thread_clock::now()’:
./boost/chrono/detail/inlined/posix/thread_clock.hpp:26: error: ‘ts’ was not declared in this scope
./boost/chrono/detail/inlined/posix/thread_clock.hpp:47: error: ‘ts’ was not declared in this scope
./boost/chrono/detail/inlined/posix/thread_clock.hpp: In static member function ‘static boost::chrono::time_point<boost::chrono::thread_clock, boost::chrono::duration<long int, boost::ratio<1l, 1000000000l> > > boost::chrono::thread_clock::now(boost::system::error_code&)’:
./boost/chrono/detail/inlined/posix/thread_clock.hpp:54: error: ‘ts’ was not declared in this scope
./boost/chrono/detail/inlined/posix/thread_clock.hpp:86: error: ‘ts’ was not declared in this scope

Change History (4)

comment:1 by Peter Schueller <ps@…>, 11 years ago

possibly related to #5543

compiler:

g++-4.4.5

commandline:

./bjam --layout=tagged --variant=release -d+2 --threading=multi install

do you need any more information?

comment:2 by Peter Schueller <ps@…>, 11 years ago

as boost still does not build for me, I investigated a bit more

it is definitely [71951] to blame

I think the "struct timespec ts;" was removed in too many places or should have been put within the new #if defined.

comment:3 by Peter Schueller <ps@…>, 11 years ago

Severity: ProblemShowstopper

comment:4 by anonymous, 11 years ago

Milestone: To Be DeterminedBoost 1.47.0
Resolution: fixed
Status: newclosed

Solution merged to release branch: Committed revision 72239.

Note: See TracTickets for help on using tickets.