Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MinGW w64 GCC 5.3 gl/functions.cpp "too many sections (33420)" #135

Closed
kkitsune opened this issue Jan 12, 2016 · 5 comments
Closed

MinGW w64 GCC 5.3 gl/functions.cpp "too many sections (33420)" #135

kkitsune opened this issue Jan 12, 2016 · 5 comments

Comments

@kkitsune
Copy link

I just moved to the latest commit from master and I can't even compile it!

I'm on Windows 10 x64, using MSYS2's GCC 5.3 64-bit and the compiler throws this :

C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/as.exe: CMakeFiles\glbinding.dir\source\gl\functions.cpp.obj: too many sections (33420)
C:\Users\Daniel\AppData\Local\Temp\cc7Qbbhg.s: Assembler messages:
C:\Users\Daniel\AppData\Local\Temp\cc7Qbbhg.s: Fatal error: can't write CMakeFiles\glbinding.dir\source\gl\functions.cpp.obj: File too big
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/as.exe: CMakeFiles\glbinding.dir\source\gl\functions.cpp.obj: too many sections (33420)
C:\Users\Daniel\AppData\Local\Temp\cc7Qbbhg.s: Fatal error: can't close CMakeFiles\glbinding.dir\source\gl\functions.cpp.obj: File too big

I'm searching on a way to fix this, but is there anyone that can help?

@kkitsune
Copy link
Author

GCC's spec :

$ gcc -v
Using built-in specs.
COLLECT_GCC=C:\msys64\mingw64\bin\gcc.exe
COLLECT_LTO_WRAPPER=C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-5.3.0/configure --prefix=/mingw64 --with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include --libexecdir=/mingw64/lib --with-gxx-include-dir=/mingw64/include/c++/5.3.0 --enable-bootstrap --with-arch=x86-64 --with-tune=generic --enable-languages=c,lto,c++,objc,obj-c++,fortran,ada --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-time=yes --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-version-specific-runtime-libs --disable-isl-version-check --enable-lto --enable-libgomp --disable-multilib --enable-checking=release --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-libiconv --with-system-zlib --with-gmp=/mingw64 --with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64 --with-pkgversion='Rev1, Built by MSYS2 project' --with-bugurl=http://sourceforge.net/projects/msys2 --with-gnu-as --with-gnu-ld
Thread model: posix
gcc version 5.3.0 (Rev1, Built by MSYS2 project)

@kkitsune
Copy link
Author

Found it! By adding

-Wa,-mbig-obj

I was able to compile it (it's long as hell but working). Now, how to integrate it in the build system?

@scheibel
Copy link
Member

We are aware of this issue, that's why we integrated a workaround for the bigobj requirement in https://github.com/cginternals/glbinding/blob/master/source/glbinding/CMakeLists.txt. Seems like made an error in matching the compilers where we split the heavy cpp files. I'll provide a fix soon.

@scheibel
Copy link
Member

Does this PR solve the issue for you? #136

@kkitsune
Copy link
Author

Yep! That did it! Thanks a lot

scheibel added a commit that referenced this issue Jan 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants