
I just got 1.40 and tried building. I kept having some pieces fail with a complete build, sometimes I had gcc that ran until resources exausted, sometimes the compiler would segfault. Eventaully I tracked it down to the math library. After noticing the many errors from the gch (things like : error _REENTERANT not defined or used diffrent -fpic). I disabled pch for the math library (actually the boost project and the libs/math/test) and I did not have any more issues. This is how I compiled it: ./bootstrap.sh --without-icu --prefix=ID_1_40_0 ./bjam install stage --prefix=/path/to/install -j 16 --buildid=ID_1_40_0 --layout=tagged --build-type=complete --stagedir=/path/to/install The system is sles (suse enterprise) 11. It's an 8 core intel machine. gcc version 4.3.2 [gcc-4_3-branch revision 141291] (SUSE Linux) I did not figure out how to disable this via the command line, so I did this: *** boost_1_40_0-compiled/Jamroot 2009-08-23 12:17:37.000000000 -0400 --- boost_1_40_0-new/Jamroot 2009-09-03 13:25:05.000000000 -0400 *************** *** 177,182 **** --- 177,183 ---- # Disable auto-linking for all targets here, primarily because it caused # troubles with V2. <define>BOOST_ALL_NO_LIB=1 + <toolset>gcc:<pch>off # Used to encode variant in target name. See the 'tag' rule below. <tag>@$(__name__).tag <conditional>@handle-static-runtime *** boost_1_40_0-compiled/libs/math/test/Jamfile.v2 2009-07-23 05:45:33.000000000 -0400 --- boost_1_40_0-new/libs/math/test/Jamfile.v2 2009-09-03 13:24:40.000000000 -0400 *************** *** 23,28 **** --- 23,29 ---- <toolset>intel:<linkflags>-nologo #<toolset>intel-linux:<pch>off <toolset>intel-darwin:<pch>off + <toolset>gcc:<pch>off <toolset>msvc:<warnings>all <toolset>msvc:<asynch-exceptions>on <toolset>msvc:<cxxflags>/wd4996

Jonathan Brannan wrote:
I just got 1.40 and tried building. I kept having some pieces fail with a complete build, sometimes I had gcc that ran until resources exausted, sometimes the compiler would segfault. Eventaully I tracked it down to the math library. After noticing the many errors from the gch (things like : error _REENTERANT not defined or used diffrent -fpic). I disabled pch for the math library (actually the boost project and the libs/math/test) and I did not have any more issues.
Since PCH is somewhat desirable in general, and for Boost.Math in particular, I don't think that disabling it altogether is right. Maybe, you can create a ticket with specific description of problems? Also, did you report "compiler would segfault" to the appropriate persons? That the first action here, I think. - Volodya

I just got 1.40 and tried building. I kept having some pieces fail with a complete build, sometimes I had gcc that ran until resources exausted, sometimes the compiler would segfault. Eventaully I tracked it down to the math library. After noticing the many errors from the gch (things like : error _REENTERANT not defined or used diffrent -fpic). I disabled pch for the math library (actually the boost project and the libs/math/test) and I did not have any more issues.
Can you be more specific about the error messages? A: bjam --with-math will build just the math lib, if you could post the complete output that would be most helpful. There's something strange going on here though as it builds just fine locally here (ubuntu Linux), and on our regression test machines (various Linux flavours). Thanks, John.
participants (3)
-
John Maddock
-
Jonathan Brannan
-
Vladimir Prus