Opened 9 years ago
Closed 9 years ago
#9776 closed Bugs (fixed)
polygon gtl_boost_unit_test.cpp needs /bigobj option
Reported by: | Owned by: | Andrii Sydorchuk | |
---|---|---|---|
Milestone: | Boost 1.57.0 | Component: | polygon |
Version: | Boost 1.55.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Boost 1.55.0 polygon lib debug build fails on gtl_boost_unit_test.cpp to compile with MSVC2012:
gtl_boost_unit_test.cpp : fatal error C1128: number of sections exceeded object file format limit : compile with /bigobj
or icl :
icl -TP /Z7 /Od /Ob0 /W0 /GR /MDd /Zc:forScope /Zc:wchar_t /Qwn5 /Qwd985 -Qoption,c,--arg_dep_lookup -D_SECURE_SCL=0 -Qoption,cpp,--arg_dep_lookup -Qpchi- /wd4675 /EHs –c -DBOOST_ALL_NO_LIB=1 "-I." "-I.." "-I../../.." "gtl_ boost_unit_test.cpp" gtl_boost_unit_test.cpp gtl_boost_unit_test.obj": catastrophic error: too many segments in object file
compilation aborted for gtl_boost_unit_test.cpp (code 4)
This can be fixed easily by adding /bigobj option to boost_1_55_0/libs/polygon/test/Jamfile.v2
# diff boost_1_55_0/libs/polygon/test/Jamfile.v2.old boost_1_55_0/libs/polygon/test/Jamfile.v2 24c24 < [ run gtl_boost_unit_test.cpp ] ---
[ run gtl_boost_unit_test.cpp : : : <toolset>intel-win:<cxxflags>/bigobj <toolset>msvc:<cxxflags>/bigobj ]
Change History (2)
comment:1 by , 9 years ago
Milestone: | To Be Determined → Boost 1.57.0 |
---|---|
Owner: | changed from | to
comment:2 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I used the suggested fix and the change is in the master branch. Marking as fixed.
Thanks for the report! I am going to split the monolithic test-suite into a few smaller once.