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

libunistring failures with gcc-13 #43

Closed
shawnlaffan opened this issue May 1, 2023 · 1 comment · Fixed by #46
Closed

libunistring failures with gcc-13 #43

shawnlaffan opened this issue May 1, 2023 · 1 comment · Fixed by #46

Comments

@shawnlaffan
Copy link
Contributor

Error logs below. Looks like it is not linking to the correct threads?

Presumably this should be a configure argument.

FWIW, the build script does not have libunistring special cased so it uses the generic build:

build-extlibs/build.sh

Lines 1688 to 1698 in eb611d5

##standard build - via ./configure
*)
echo "## !!!WARNING!!! using default build scenario"
cd $WRKDIR/$PACK
save_configure_help
#xxrun ./configure $HOSTBUILD --prefix=$OUT CFLAGS="-O2 -I$OUTINC -mms-bitfields" LDFLAGS="-L$OUTLIB"
xxrun ./configure $HOSTBUILD --prefix=$OUT --disable-dependency-tracking --enable-static=no --enable-shared=yes CFLAGS="-O2 -I$OUTINC -mms-bitfields" LDFLAGS="-L$OUTLIB"
patch_libtool
xxrun make
xxrun make install
;;

Version 0.9.10:

libtool: link: x86_64-w64-mingw32-gcc -shared .libs\\libunistring.la.lnkscript  -L/z/extlib/_bgcc13__/lib -liconv  -O2 -
mms-bitfields -Wl,--export-all-symbols -Wl,--disable-auto-import   -o .libs/libunistring-2__.dll -Wl,--enable-auto-image
-base -Xlinker --out-implib -Xlinker .libs/libunistring.dll.a
C:/spbuild/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: .libs\\localename
.o:localename.c:(.rdata$.refptr.pthread_mutexattr_gettype[.refptr.pthread_mutexattr_gettype]+0x0): undefined reference t
o `pthread_mutexattr_gettype'
collect2.exe: error: ld returned 1 exit status
make[3]: *** [Makefile:4215: libunistring.la] Error 1
make[3]: Leaving directory '/z/extlib/_bgcc13__.src/libunistring-0.9.10/lib'
make[2]: *** [Makefile:3581: all] Error 2
make[2]: Leaving directory '/z/extlib/_bgcc13__.src/libunistring-0.9.10/lib'
make[1]: *** [Makefile:1559: all-recursive] Error 1
make[1]: Leaving directory '/z/extlib/_bgcc13__.src/libunistring-0.9.10'
make: *** [Makefile:1487: all] Error 2

Version 1.1:

libtool: link: rm -fr  .libs/libunistring.dll.a .libs/libunistring.la.lnkscript
libtool: link: x86_64-w64-mingw32-gcc -shared .libs\\libunistring.la.lnkscript  -L/z/extlib/_bgcc13__/lib -liconv  -O2 -
mms-bitfields -Wl,--export-all-symbols   -o .libs/libunistring-5__.dll -Wl,--enable-auto-image-base -Xlinker --out-impli
b -Xlinker .libs/libunistring.dll.a
C:/spbuild/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: .libs\\libunistri
ng_la-localename.o:localename.c:(.rdata$.refptr.pthread_mutexattr_gettype[.refptr.pthread_mutexattr_gettype]+0x0): undef
ined reference to `pthread_mutexattr_gettype'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [Makefile:5285: libunistring.la] Error 1
make[2]: Leaving directory '/z/extlib/_bgcc13__.src/libunistring-1.1/lib'
make[1]: *** [Makefile:7273: install] Error 2
make[1]: Leaving directory '/z/extlib/_bgcc13__.src/libunistring-1.1/lib'
make: *** [Makefile:2018: install-recursive] Error 1
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

Successfully merging a pull request may close this issue.

1 participant