Closed illwieckz closed 1 year ago
I get those two errors when trying to build GLEW for the MSVC packages:
windows-amd64-msvc
x86_64-w64-mingw32-gcc -static-libgcc -O2 -Wall -W -Iinclude -D__USE_MINGW_ANSI_STDIO=0 -o bin/visualinfo.exe tmp/linux-mingw64/default/shared/visualinfo.o -Llib -lglew32 -L/home/illwieckz/dev/buildme-unvanquished/Daemon/external_deps/build-windows-amd64-msvc_8/prefix/lib -L/usr/x86_64-w64-mingw32/lib -lopengl32 -lgdi32 -luser32 -lkernel32 /usr/bin/x86_64-w64-mingw32-ld: lib/libglew32.dll.a: error adding symbols: file in wrong format collect2: error: ld returned 1 exit status /usr/bin/x86_64-w64-mingw32-ld: lib/libglew32.dll.a: error adding symbols: file in wrong format collect2: error: ld returned 1 exit status make: *** [Makefile:183: bin/glewinfo.exe] Error 1 make: *** Waiting for unfinished jobs.... make: *** [Makefile:189: bin/visualinfo.exe] Error 1
windows-i686-msvc
ld -nostdlib -shared -soname libglew32.dll --out-implib lib/libglew32.dll.a -o lib/glew32.dll tmp/linux-mingw32/default/shared/glew.o -L/home/illwieckz/dev/buildme-unvanquished/Daemon/external_deps/build-windows-i686-msvc_8/prefix/lib -L/usr/i686-w64-mingw32/lib -lopengl32 -lgdi32 -luser32 -lkernel32 ld: skipping incompatible /usr/i686-w64-mingw32/lib/libopengl32.a when searching for -lopengl32 ld: cannot find -lopengl32 ld: skipping incompatible /usr/i686-w64-mingw32/lib/libgdi32.a when searching for -lgdi32 ld: cannot find -lgdi32 ld: skipping incompatible /usr/i686-w64-mingw32/lib/libuser32.a when searching for -luser32 ld: cannot find -luser32 ld: skipping incompatible /usr/i686-w64-mingw32/lib/libkernel32.a when searching for -lkernel32 ld: cannot find -lkernel32 make: *** [Makefile:123: lib/glew32.dll] Error 1 make: *** Waiting for unfinished jobs....
I first got it with on my deps update branch:
But I reproduce the issue on current master.
master
This was reproduced on Debian Buster.
This should be fixed, I merged a lot of fixes and I don't reproduce it on my "update deps" branch rebased on those fixes.
I get those two errors when trying to build GLEW for the MSVC packages:
windows-amd64-msvc
:windows-i686-msvc
:I first got it with on my deps update branch:
But I reproduce the issue on current
master
.