Boost C++ Libraries: Ticket #8786: Boost.Log fails to build with 64-bit MinGW https://svn.boost.org/trac10/ticket/8786 <p> When building Boost.Log using 64-bit MinGW 4.8.1 (from MinGW-Builds <a class="missing wiki">SourceForge</a> project, 64-bit compiler, posix threads, SEH exception model), compilation fails with the following message </p> <pre class="wiki">gcc.compile.c++ E:\Tools\Boost\1.54.0-gcc-4.8.1_x64-build\boost\bin.v2\libs\log\build\gcc-mingw-4.8.1\debug\address-model-64\link-static\log-api-winnt\threading-multi\default_filter_factory.o "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -mthreads -m64 -D__int64="long long int" -include cmath -march=native -mtune=native -Wno-unused-local-typedefs -fno-strict-aliasing -ftemplate-depth-1024 -DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_STATIC_LINK=1 -DBOOST_FILESYSTEM_STATIC_LINK=1 -DBOOST_LOG_SETUP_BUILDING_THE_LIB=1 -DBOOST_LOG_USE_AVX2 -DBOOST_LOG_USE_SSSE3 -DBOOST_SPIRIT_USE_PHOENIX_V3=1 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_THREAD_BUILD_LIB=1 -DBOOST_THREAD_DONT_USE_CHRONO=1 -DBOOST_THREAD_USE_LIB=1 -DDATE_TIME_INLINE -I"." -c -o "E:\Tools\Boost\1.54.0-gcc-4.8.1_x64-build\boost\bin.v2\libs\log\build\gcc-mingw-4.8.1\debug\address-model-64\link-static\log-api-winnt\threading-multi\default_filter_factory.o" "libs\log\src\default_filter_factory.cpp" e:/tools/mingw/x64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/as.exe: E:\Tools\Boost\1.54.0-gcc-4.8.1_x64-build\boost\bin.v2\libs\log\build\gcc-mingw-4.8.1\debug\address-model-64\link-static\log-api-winnt\threading-multi\default_filter_factory.o: too many sections (43643) C:\Users\Ashish\AppData\Local\Temp\ccCaEoj5.s: Assembler messages: C:\Users\Ashish\AppData\Local\Temp\ccCaEoj5.s: Fatal error: can't write E:\Tools\Boost\1.54.0-gcc-4.8.1_x64-build\boost\bin.v2\libs\log\build\gcc-mingw-4.8.1\debug\address-model-64\link-static\log-api-winnt\threading-multi\default_filter_factory.o: File too big e:/tools/mingw/x64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/as.exe: E:\Tools\Boost\1.54.0-gcc-4.8.1_x64-build\boost\bin.v2\libs\log\build\gcc-mingw-4.8.1\debug\address-model-64\link-static\log-api-winnt\threading-multi\default_filter_factory.o: too many sections (43643) C:\Users\Ashish\AppData\Local\Temp\ccCaEoj5.s: Fatal error: can't close E:\Tools\Boost\1.54.0-gcc-4.8.1_x64-build\boost\bin.v2\libs\log\build\gcc-mingw-4.8.1\debug\address-model-64\link-static\log-api-winnt\threading-multi\default_filter_factory.o: File too big </pre><p> Boost.Log builds successfully using the 32-bit version of MinGW 4.8.1 </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8786 Trac 1.4.3 Andrey Semashev Sat, 13 Jul 2013 23:17:33 GMT <link>https://svn.boost.org/trac10/ticket/8786#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8786#comment:1</guid> <description> <p> Right now you can try reducing the binary size by disabling portions of the library (for example, disable unused character types or settings parsers altogether). See <a href="http://www.boost.org/doc/libs/1_54_0/libs/log/doc/html/log/installation/config.html">here</a> for configuration options. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrey Semashev</dc:creator> <pubDate>Sun, 14 Jul 2013 11:31:20 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8786#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8786#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/85031" title="Extracted default formatter factory to a separate translation unit. ...">[85031]</a>) Extracted default formatter factory to a separate translation unit. Made all default factories optional, the factories can be disabled with the new config macro BOOST_LOG_WITHOUT_DEFAULT_FACTORIES. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8773" title="#8773: Bugs: Shrink Boost.Log to reasonable size (closed: fixed)">#8773</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8786" title="#8786: Bugs: Boost.Log fails to build with 64-bit MinGW (closed: fixed)">#8786</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrey Semashev</dc:creator> <pubDate>Sat, 03 Aug 2013 18:41:55 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8786#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8786#comment:3</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/85202" title="Extracted Boost.Xpressive use to a separate translation unit in ...">[85202]</a>) Extracted Boost.Xpressive use to a separate translation unit in attempt to work around MinGW 64 bit compiler limitation on the number of sections in the object file. Made some changes to reduce binary size. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8786" title="#8786: Bugs: Boost.Log fails to build with 64-bit MinGW (closed: fixed)">#8786</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8773" title="#8773: Bugs: Shrink Boost.Log to reasonable size (closed: fixed)">#8773</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrey Semashev</dc:creator> <pubDate>Sat, 03 Aug 2013 19:13:39 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8786#comment:4 https://svn.boost.org/trac10/ticket/8786#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket anonymous Fri, 21 Mar 2014 04:13:27 GMT <link>https://svn.boost.org/trac10/ticket/8786#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8786#comment:5</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/8786#comment:2" title="Comment 2">andysem</a>: </p> <blockquote class="citation"> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/85031" title="Extracted default formatter factory to a separate translation unit. ...">[85031]</a>) Extracted default formatter factory to a separate translation unit. Made all default factories optional, the factories can be disabled with the new config macro BOOST_LOG_WITHOUT_DEFAULT_FACTORIES. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8773" title="#8773: Bugs: Shrink Boost.Log to reasonable size (closed: fixed)">#8773</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8786" title="#8786: Bugs: Boost.Log fails to build with 64-bit MinGW (closed: fixed)">#8786</a>. </p> </blockquote> <p> dcmm </p> </description> <category>Ticket</category> </item> </channel> </rss>