Hi

I used to build a GNU package regulairy for MSWindows on my openSUSE box. Unfortunately the PC dead and it looks as if I am not able to build my Mingw toolchain again. Strange enough on another PC the toolchain also failed after I upgraded to the newer mingw tools provided in the openSUSE repositories.

This made me believe there is a new bug  in the mingw toolchain, but I can't find anything recent on the Internet.

Look at the errors below. Has anybody an idea how to solve this?

Thanks in advance.


libbtool: link: rm -fr  .libs/libcharset.dll.a
libtool: link: i686-pc-mingw32-gcc -shared  .libs/localcharset.o .libs/relocatable.o    -Wl,--exclude-libs=libintl.a -Wl,--exclude-libs=libiconv.a -mms-bitfields   -o .libs/libcharset-1.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libcharset.dll.a
Creating library file: .libs/libcharset.dll.a
/usr/lib/gcc/i686-pc-mingw32/4.5.1/libgcc_eh.a(unwind-dw2.o): In function `__gthread_once':
/usr/src/packages/BUILD/mingw32-cross-gcc-4.5.1/gcc-4.5.1/build/i686-pc-mingw32/libgcc/../../../libgcc/../gcc/gthr-win32.h:554: undefined reference to `_InterlockedIncrement@4'
/usr/lib/gcc/i686-pc-mingw32/4.5.1/libgcc_eh.a(unwind-dw2-fde.o): In function `__gthread_mutex_init_function':
/usr/src/packages/BUILD/mingw32-cross-gcc-4.5.1/gcc-4.5.1/build/i686-pc-mingw32/libgcc/../../../libgcc/../gcc/gthr-win32.h:631: undefined reference to `_CreateSemaphoreA@16'
/usr/lib/gcc/i686-pc-mingw32/4.5.1/libgcc_eh.a(unwind-dw2-fde.o): In function `__gthread_once':
/usr/src/packages/BUILD/mingw32-cross-gcc-4.5.1/gcc-4.5.1/build/i686-pc-mingw32/libgcc/../../../libgcc/../gcc/gthr-win32.h:554: undefined reference to `_InterlockedIncrement@4'
/usr/lib/gcc/i686-pc-mingw32/4.5.1/libgcc_eh.a(unwind-dw2-fde.o): In function `__gthread_mutex_lock':
/usr/src/packages/BUILD/mingw32-cross-gcc-4.5.1/gcc-4.5.1/build/i686-pc-mingw32/libgcc/../../../libgcc/../gcc/gthr-win32.h:647: undefined reference to `_InterlockedIncrement@4'
/usr/lib/gcc/i686-pc-mingw32/4.5.1/libgcc_eh.a(unwind-dw2-fde.o): In function `__gthread_mutex_unlock':
/usr/src/packages/BUILD/mingw32-cross-gcc-4.5.1/gcc-4.5.1/build/i686-pc-mingw32/libgcc/../../../libgcc/../gcc/gthr-win32.h:681: undefined reference to `_InterlockedDecrement@4'
/usr/src/packages/BUILD/mingw32-cross-gcc-4.5.1/gcc-4.5.1/build/i686-pc-mingw32/libgcc/../../../libgcc/../gcc/gthr-win32.h:682: undefined reference to `_ReleaseSemaphore@12'
/usr/lib/gcc/i686-pc-mingw32/4.5.1/libgcc_eh.a(unwind-dw2-fde.o): In function `__gthread_mutex_lock':
/usr/src/packages/BUILD/mingw32-cross-gcc-4.5.1/gcc-4.5.1/build/i686-pc-mingw32/libgcc/../../../libgcc/../gcc/gthr-win32.h:648: undefined reference to `_WaitForSingleObject@8'
/usr/src/packages/BUILD/mingw32-cross-gcc-4.5.1/gcc-4.5.1/build/i686-pc-mingw32/libgcc/../../../libgcc/../gcc/gthr-win32.h:654: undefined reference to `_InterlockedDecrement@4'
/usr/src/packages/BUILD/mingw32-cross-gcc-4.5.1/gcc-4.5.1/build/i686-pc-mingw32/libgcc/../../../libgcc/../gcc/gthr-win32.h:647: undefined reference to `_InterlockedIncrement@4'
/usr/lib/gcc/i686-pc-mingw32/4.5.1/libgcc_eh.a(unwind-dw2-fde.o): In function `__gthread_mutex_unlock':
/usr/src/packages/BUILD/mingw32-cross-gcc-4.5.1/gcc-4.5.1/build/i686-pc-mingw32/libgcc/../../../libgcc/../gcc/gthr-win32.h:681: undefined reference to `_InterlockedDecrement@4'
/usr/src/packages/BUILD/mingw32-cross-gcc-4.5.1/gcc-4.5.1/build/i686-pc-mingw32/libgcc/../../../libgcc/../gcc/gthr-win32.h:682: undefined reference to `_ReleaseSemaphore@12'
/usr/lib/gcc/i686-pc-mingw32/4.5.1/libgcc_eh.a(unwind-dw2-fde.o): In function `__gthread_mutex_lock':
/usr/src/packages/BUILD/mingw32-cross-gcc-4.5.1/gcc-4.5.1/build/i686-pc-mingw32/libgcc/../../../libgcc/../gcc/gthr-win32.h:648: undefined reference to `_WaitForSingleObject@8'
/usr/src/packages/BUILD/mingw32-cross-gcc-4.5.1/gcc-4.5.1/build/i686-pc-mingw32/libgcc/../../../libgcc/../gcc/gthr-win32.h:654: undefined reference to `_InterlockedDecrement@4'
/usr/src/packages/BUILD/mingw32-cross-gcc-4.5.1/gcc-4.5.1/build/i686-pc-mingw32/libgcc/../../../libgcc/../gcc/gthr-win32.h:647: undefined reference to `_InterlockedIncrement@4'
/usr/src/packages/BUILD/mingw32-cross-gcc-4.5.1/gcc-4.5.1/build/i686-pc-mingw32/libgcc/../../../libgcc/../gcc/gthr-win32.h:648: undefined reference to `_WaitForSingleObject@8'
/usr/src/packages/BUILD/mingw32-cross-gcc-4.5.1/gcc-4.5.1/build/i686-pc-mingw32/libgcc/../../../libgcc/../gcc/gthr-win32.h:654: undefined reference to `_InterlockedDecrement@4'
/usr/lib/gcc/i686-pc-mingw32/4.5.1/libgcc_eh.a(unwind-dw2-fde.o): In function `__gthread_mutex_unlock':
/usr/src/packages/BUILD/mingw32-cross-gcc-4.5.1/gcc-4.5.1/build/i686-pc-mingw32/libgcc/../../../libgcc/../gcc/gthr-win32.h:681: undefined reference to `_InterlockedDecrement@4'
/usr/src/packages/BUILD/mingw32-cross-gcc-4.5.1/gcc-4.5.1/build/i686-pc-mingw32/libgcc/../../../libgcc/../gcc/gthr-win32.h:682: undefined reference to `_ReleaseSemaphore@12'
/usr/src/packages/BUILD/mingw32-cross-gcc-4.5.1/gcc-4.5.1/build/i686-pc-mingw32/libgcc/../../../libgcc/../gcc/gthr-win32.h:681: undefined reference to `_InterlockedDecrement@4'
/usr/src/packages/BUILD/mingw32-cross-gcc-4.5.1/gcc-4.5.1/build/i686-pc-mingw32/libgcc/../../../libgcc/../gcc/gthr-win32.h:682: undefined reference to `_ReleaseSemaphore@12'
/usr/lib/gcc/i686-pc-mingw32/4.5.1/libgcc_eh.a(unwind-dw2-fde.o): In function `__gthread_mutex_lock':
/usr/src/packages/BUILD/mingw32-cross-gcc-4.5.1/gcc-4.5.1/build/i686-pc-mingw32/libgcc/../../../libgcc/../gcc/gthr-win32.h:647: undefined reference to `_InterlockedIncrement@4'
/usr/src/packages/BUILD/mingw32-cross-gcc-4.5.1/gcc-4.5.1/build/i686-pc-mingw32/libgcc/../../../libgcc/../gcc/gthr-win32.h:648: undefined reference to `_WaitForSingleObject@8'
/usr/src/packages/BUILD/mingw32-cross-gcc-4.5.1/gcc-4.5.1/build/i686-pc-mingw32/libgcc/../../../libgcc/../gcc/gthr-win32.h:654: undefined reference to `_InterlockedDecrement@4'
collect2: ld returned 1 exit status
make[2]: *** [libcharset.la] Fout 1