I'm having difficulty building the following project using mingw-w64:

https://github.com/ArashPartow/exprtk

When I build it vanilla, I get the following:


exprtk>make exprtk_test
c++ -pedantic-errors -Wall -Wextra -Werror -Wno-long-long -O1 -o
exprtk_test exprtk_test.cpp -L/usr/lib -lstdc++ -lm
C:/Program 
Files/mingw-w64/x86_64-6.2.0-win32-seh-rt_v5-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/a
s.exe: ...\Temp\ccOqU8eK.o: too many sections (52426)
...\Temp\ccZewRfk.s: Assembler messages:
...\Temp\ccZewRfk.s: Fatal error: can't write ...\Temp\ccOqU8eK.o: File too big

C:/Program 
Files/mingw-w64/x86_64-6.2.0-win32-seh-rt_v5-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/a
s.exe: ...\Temp\ccOqU8eK.o: too many sections (52426)
...\Temp\ccZewRfk.s: Fatal error: can't close ...\Temp\ccOqU8eK.o: File too big
Makefile:50: recipe for target 'exprtk_test' failed
make: [exprtk_test] Error 1 (ignored)


Adding -Wa,-mbig-obj to the linker options in the Makefile, seems to
cause ld to go into some infinite loop:


exprtk>make clean exprtk_test
c++ -pedantic-errors -Wall -Wextra -Werror -Wno-long-long -O1 -o
exprtk_test exprtk_test.cpp -Wa,-mbig-obj -L/usr/lib -lstdc++ -lm



Before eventually killing it I let the above run for about 9hrs.
During its run ld was continuously consuming one complete core and
about ~980MB of RAM.

Based on the following it seems that this issue has already been
resolved. Is there an extra option that needs to be enabled? or is it
something else that I'm missing?

https://sourceware.org/ml/binutils/2014-03/msg00114.html
https://sourceware.org/ml/binutils/2014-03/msg00127.html

The project builds error and warning free using GCC and Clang on
Linux, msvc and Clang on Windows.


Arash


.

------------------------------------------------------------------------------
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to