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: | 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 , 9 years ago
comment:2 by , 9 years ago
Component: | None → Building 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 , 9 years ago
Component: | Building Boost → math |
---|---|
Owner: | set to |
comment:4 by , 9 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
The next release will use pch=off by default for gcc-mingw and the build works fine for me here, so closing down.
In fact, looking at this again, just changing the following lines in
boost_1_54_0\libs\math\build\Jamfile.v2
:to
fixes the crash. Which seems strange.