Boost logo

Boost :

Subject: Re: [boost] Boost Mingw w64 compilation issues and fixes
From: Andrew Ho (helloworld922_at_[hidden])
Date: 2013-07-14 22:17:34


> There are lots of worked examples in the Boost.Math /libs/math/examples
folder. Many are very
> simple and should provide a good sanity test.
>
> You should also be able to run both the examples and the tests using the
jamfile.v2 in /example (and
> also for a full workout in /test).
>
> To do this open a command window in the /example folder and run b2.exe
preferably sending a log
> file.
>
> $ b2 > math_examples.log
>
> 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...


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk