Misssing libgcc.a from mingw-w64-gcc-base package.
I'm trying to crossbuild some stuff for Windows using Alpine 3.10, but zlib failed with following error:
x86_64-w64-mingw32-gcc -O3 -D_LARGEFILE64_SOURCE=1 -DNO_STRERROR -DNO_vsnprintf -o example example.o -L. libz.a
/usr/lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld: cannot find -lgcc
/usr/lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld: cannot find -lgcc_eh
/usr/lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld: cannot find -lgcc
/usr/lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld: cannot find -lgcc_eh
I did some research, the mingw-w64-gcc-base
contains compiler, but not these libraries, what's weird. Any chance to get it fixed for x86_64-w64-mingw32-gcc-8.3.0
???
The packages mingw-w64-gcc
cannot be used instead as the constraint for libmpfr.so.6
cannot be fulfilled without using Edge.