[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] Where do we use boost::system?
From: |
Greg Chicares |
Subject: |
Re: [lmi] Where do we use boost::system? |
Date: |
Tue, 26 Jan 2016 06:51:10 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 |
On 2016-01-26 04:32, Greg Chicares wrote:
> On 2016-01-26 03:45, Greg Chicares wrote:
>> I'm working on '-std=c++11' cross-compilation, and I can build boost-1.33.1's
>> 'regex' and 'filesystem' libraries...but that version has no 'system'
>> library.
>> Why were we building it? Was it for xmlwrapp? If so, is there a configure
>> option to avoid using it?
>
> I reconfigured and rebuilt everything, and it all seemed to work, suggesting
> that whatever library wanted that didn't really need it (or recognized that
> it's not in 1.33.1 and fell back on some alternative). But I want to remove
> almost everything and build again just to be sure.
I removed the lmi source and fetched it again from svn, and now it doesn't
build: lmi is the code that wanted boost::system. AFAICT, that dependency
was added for boost-1.38.0, but boost::system doesn't exist in boost-1.33.1
(which we use in production). I hacked it out of 'configure.ac', and then
lmi built successfully.
I think the chain of causation here is that boost was upgraded to 1.38.0
in autotools only...and only for expm1() and log1p()...which AIUI can be
necessary only for msvc...but I didn't think msvc builds were autotoolized.
So can we just revert 1.38.0 to 1.33.1 in 'configure.ac'? Whatever benefit
1.38.0 may have brought, it's now an obstacle to upgrading to C++11, whereas
1.33.1 is not.
BTW, new timings: debian-8 on bare metal (old machine), --jobs=16:
wx: no '-std' vs. '-std=c++11'
make $coefficiency install 2969.58s user 109.25s system 957% cpu 5:21.63 total
make $coefficiency install 3579.30s user 152.91s system 1058% cpu 5:52.49 total
lmi: no '-std' vs. '-std=c++11'
make $coefficiency install 745.96s user 39.50s system 1039% cpu 1:15.60 total
make $coefficiency install 1062.60s user 54.20s system 1197% cpu 1:33.28 total