P
P
Pavel Mikhalovsky2017-03-31 01:11:47
C++ / C#
Pavel Mikhalovsky, 2017-03-31 01:11:47

How to get around the Too many Sections error when building?

I'm trying to make a program for numerical integration, I use the exprtk library to enter the formula, which is header-only and takes 37k lines.
Under Mac Os and Linux, everything started up fine, it cost to start on windows...
How to get around this error?
I tried to fasten the wa,-mbig-obj flags in the pro file using QMAKE_CXX_FLAGS, tried to fasten them in different ways, the compiler does not know such flags.
The error itself is
C:/Qt/Qt5.8.0/Tools/mingw530_32/bin/../lib/gcc/i686-w64-mingw32/5.3.0/../../../../i686-w64- mingw32/bin/as.exe: debug\func.o: too many sections (65238)
{standard input}: Fatal error: can't close debug\func.o: File too big
Makefile.Debug:667: recipe for target 'debug/func.o' failed
mingw32-make[1]: Leaving directory 'C:/Users/1/Desktop/OOPcurse/build-Integrator-Desktop_Qt_5_8_0_MinGW_32bit-Debug'
mingw32-make[1]: *** [debug/func.o] Error 1
Makefile: 34: recipe for target 'debug' failed
mingw32-make: *** [debug] Error 2
23:45:15: Process "C:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe" exited with code 2.
Error while building/installing Integrator project (bundle: Desktop Qt 5.8.0 MinGW 32bit)
While executing Build
step 23:45:15: Time elapsed: 01:50.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2017-03-31
@jcmvbkbc

as.exe: debug\func.o: too many sections (65238)

I suspect it's worth trying to disable the -fdata-sections and -ffunction-sections options.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question