Windows-on-ARM-Experiments / mingw-woarm64-build

Workflows and build scripts for Windows on Arm64 GNU cross-compiler for `aarch64-w64-mingw32` target.
GNU General Public License v2.0
32 stars 4 forks source link

`error: constructor priorities are not supported` #195

Open Blackhex opened 1 month ago

Blackhex commented 1 month ago

Issue

make[2]: Entering directory '/root/mingw-woarm64-build/build-aarch64-w64-mingw32-msvcrt/mingw-winpthreads'
/bin/bash ./libtool  --tag=CC   --mode=compile aarch64-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I/root/mingw-woarm64-build/code/mingw/mingw-w64-libraries/winpthreads  -I/root/mingw-woarm64-build/code/mingw/mingw-w64-libraries/winpthreads/include -DIN_WINPTHREAD -DWINPTHREAD_DBG=1  -D__USE_MINGW_ANSI_STDIO=0  -Wall -DWIN32_LEAN_AND_MEAN   -MT src/libwinpthread_la-misc.lo -MD -MP -MF src/.deps/libwinpthread_la-misc.Tpo -c -o src/libwinpthread_la-misc.lo `test -f 'src/misc.c' || echo '/root/mingw-woarm64-build/code/mingw/mingw-w64-libraries/winpthreads/'`src/misc.c
libtool: compile:  aarch64-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I/root/mingw-woarm64-build/code/mingw/mingw-w64-libraries/winpthreads -I/root/mingw-woarm64-build/code/mingw/mingw-w64-libraries/winpthreads/include -DIN_WINPTHREAD -DWINPTHREAD_DBG=1 -D__USE_MINGW_ANSI_STDIO=0 -Wall -DWIN32_LEAN_AND_MEAN -MT src/libwinpthread_la-misc.lo -MD -MP -MF src/.deps/libwinpthread_la-misc.Tpo -c /root/mingw-woarm64-build/code/mingw/mingw-w64-libraries/winpthreads/src/misc.c -o src/libwinpthread_la-misc.o
/root/mingw-woarm64-build/code/mingw/mingw-w64-libraries/winpthreads/src/misc.c:34:1: error: constructor priorities are not supported
   34 | {
      | ^
make[2]: *** [Makefile:801: src/libwinpthread_la-misc.lo] Error 1

Workaround

Revert winpthreads: Fix constructor priority to make it run first · Windows-on-ARM-Experiments/mingw-woarm64@251fc7e.