|
Boost : |
Subject: Re: [boost] Boost Mingw w64 compilation issues and fixes
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2013-07-15 04:44:14
> -----Original Message-----
> From: Boost [mailto:boost-bounces_at_[hidden]] On Behalf Of Andrew Ho
> Sent: Monday, July 15, 2013 3:18 AM
> To: boost_at_[hidden]
> Subject: Re: [boost] Boost Mingw w64 compilation issues and fixes
<snip>
> > Please report your findings.
>
> I was able to compile Math examples without any problem.
:-)
> I tried compiling Boost Math and math tests and in both cases cc1plus.exe stops working (no useful
> information why it crashed).
>
> Compilation command:
>
> b2 install --with-math -a -q toolset=gcc-4.8.1 address-model=64 variant=debug,release
threading=multi
> link=shared,static cxxflags=-std=c++11
>
> I think this might actually be related to this:
> http://stackoverflow.com/questions/6811240/cc1plus-exe-has-stopped-working-
> while-compiling-boost-spirit-code
>
> However, I don't know if it is because there is no useful information in the log output (I snipped
out just
> one log entry, but there are tons of them):
>
> gcc.compile.c++ ..\build\boost\bin.v2\libs\math\build\gcc-mingw-
> 4.8.1\debug\address-model-64\threading-multi\assoc_laguerre.o
>
> "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -mthreads -m64 - fvisibility=hidden
-std=c++11 -
> Winvalid-pch -DBOOST_ALL_NO_LIB=1 - DBOOST_BUILD_PCH_ENABLED -
> DBOOST_MATH_TR1_DYN_LINK=1 -
> I"..\build\boost\bin.v2\libs\math\build\gcc-mingw-4.8.1\debug\address-model-
> 64\threading-multi\..\src\tr1" -I"." -I"libs\math\src\tr1" -c -o
> "..\build\boost\bin.v2\libs\math\build\gcc-mingw-4.8.1\debug\address-model-
> 64\threading-multi\assoc_laguerre.o"
> "libs\math\build\..\src\tr1\assoc_laguerre.cpp"
>
> ...failed gcc.compile.c++ ..\build\boost\bin.v2\libs\math\build\gcc-mingw-
> 4.8.1\debug\address-model-64\threading-multi\assoc_laguerre.o...
This doesn't sound a problem with the Boost.Math code but I have no idea from this what the problem
is.
I trust you have read the Boost.Math section
"If and How to Build a Boost.Math Library, and its Examples and Tests"
It's most unusual to want/need to build a library - Boost.Math is most efficiently used as
header-only.
However the tests should run, and the test suite at
http://www.boost.org/development/tests/trunk/developer/math.html
and specifically the test using 4.8
MinGW-w64-4.8 jc-bell.com
Boost Regression Test, Windows 7 x64, MinGW-w64, gcc 4.8
are showing mostly green.
However it is showing a few unexpected failures (compared to previous gcc versions), for example:
Test output: MinGW-w64-4.8 jc-bell.com - math - test_remez / gcc-mingw-4.8.0
Rev 84971 / Sun, 07 Jul 2013 14:27:48 +0000
Compile [2013-07-08 00:15:42 UTC]: fail
"g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -Winvalid-pch -DBOOST_ALL_NO_LIB=1
-DBOOST_BUILD_PCH_ENABLED -DBOOST_TEST_NO_AUTO_LINK=1 -DBOOST_UBLAS_UNSUPPORTED_COMPILER=0
-I"F:\boost\GCC\trunk\results\boost\bin.v2\libs\math\test\gcc-mingw-4.8.0\debug\link-static" -I".."
-I"..\libs\math\test" -c -o
"F:\boost\GCC\trunk\results\boost\bin.v2\libs\math\test\test_remez.test\gcc-mingw-4.8.0\debug\link-s
tatic\test_remez.o" "..\libs\math\test\test_remez.cpp"
which is another similarly unhelpful message (as are the others).
So, to me, this looks like a compiler problem.
(And your StackOverflow link above also suggests the same).
Please report if you make any sense of/fix this.
HTH
Paul
--- Paul A. Bristow, Prizet Farmhouse, Kendal LA8 8AB UK +44 1539 561830 07714330204 pbristow_at_[hidden]
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk