Opened 9 years ago

Closed 9 years ago

#9093 closed Bugs (worksforme)

cc1plus.exe crashes building math lib with MinGW-x64-4.8.1-posix-seh

Reported by: Matt Clarkson <mattyclarkson@…> Owned by: John Maddock
Milestone: To Be Determined Component: math
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:

Description

When building boost with MinGW-x64-4.8.1-posix-seh cc1plus.exe crashes due to running out of memory. Adding the -Wl,--enable-large-address-aware flag solves the issue.

I don't really understand Boost Jam to fully formulate a patch for the project, I just added <cxxflags>-Wl,--enable-large-address-aware to each of the lib objects in the Jamfile.v2 for the math library to get it to build. I'm not sure how to write a test for a crashing compiler to determine if the flag needs to be enabled.

Change History (4)

comment:1 by Matt Clarkson <mattyclarkson@…>, 9 years ago

In fact, looking at this again, just changing the following lines in boost_1_54_0\libs\math\build\Jamfile.v2:

<link>shared:<define>BOOST_MATH_TR1_DYN_LINK=1

to

<link>shared:<define>BOOST_MATH_TR1_DYN_LINK=0

fixes the crash. Which seems strange.

comment:2 by Matt Clarkson <mattyclarkson@…>, 9 years ago

Component: NoneBuilding Boost

This is a problem with MinGW not Boost. Just specify pch=off on the command line and it'll compile.

This can be closed (I can't seem to close it myself)

comment:3 by viboes, 9 years ago

Component: Building Boostmath
Owner: set to John Maddock

comment:4 by John Maddock, 9 years ago

Resolution: worksforme
Status: newclosed

The next release will use pch=off by default for gcc-mingw and the build works fine for me here, so closing down.

Note: See TracTickets for help on using tickets.