undefined reference to `stpcpy'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
I am trying to comile GCC 11.2.0 on msys2 (gcc version 10.3), but when compiling liblto_plugin.dll in stage 3, it says "undefined reference to `stpcpy'".


This GCC configured by ../gcc-11.2.0/configure --disable-multilib --disable-nls --disable-rpath --disable-symvers --disable-win32-registry --enable-languages=c,c++,lto --enable-mingw-wildcard --enable-threads=posix --enable-libgomp --disable-libstdcxx-verbose --enable-fully-dynamic-string --with-build-config=bootstrap-lto-lean --with-system-zlib


Error Message:
/bin/sh ./libtool --tag=CC --tag=disable-static  --mode=link /h/build-gcc/./prev-gcc/xgcc -B/h/build-gcc/./prev-gcc/ -B/mingw64/x86_64-w64-mingw32/bin/ -L/mingw64/x86_64-w64-mingw32/lib -L/mingw64/lib -isystem /mingw64/x86_64-w64-mingw32/include -isystem /mingw64/include -B/mingw64/x86_64-w64-mingw32/bin/ -B/mingw64/x86_64-w64-mingw32/lib/ -isystem /mingw64/x86_64-w64-mingw32/include -isystem /mingw64/x86_64-w64-mingw32/sys-include   -fchecking=1 -Wall  -g -O2 -D__USE_MINGW_ACCESS -Wno-pedantic-ms-format -fchecking=1 -flto=jobserver -Wc,-static-libgcc -no-undefined -bindir "/mingw64/bin" -module -avoid-version -bindir /mingw64/libexec/gcc/x86_64-w64-mingw32/11.2.0  -Wc,../libiberty/libiberty.a  -Xcompiler '-static-libstdc++' -Xcompiler '-static-libgcc' '-Wl,--stack,12582912' -o liblto_plugin.la -rpath /mingw64/libexec/gcc/x86_64-w64-mingw32/11.2.0 lto-plugin.lo   
libtool: link: rm -fr  .libs/liblto_plugin.dll.a
libtool: link:  /h/build-gcc/./prev-gcc/xgcc -B/h/build-gcc/./prev-gcc/ -B/mingw64/x86_64-w64-mingw32/bin/ -L/mingw64/x86_64-w64-mingw32/lib -L/mingw64/lib -isystem /mingw64/x86_64-w64-mingw32/include -isystem /mingw64/include -B/mingw64/x86_64-w64-mingw32/bin/ -B/mingw64/x86_64-w64-mingw32/lib/ -isystem /mingw64/x86_64-w64-mingw32/include -isystem /mingw64/x86_64-w64-mingw32/sys-include   -fchecking=1 -shared  .libs/lto-plugin.o   -L/mingw64/x86_64-w64-mingw32/lib -L/mingw64/lib  -static-libgcc ../libiberty/libiberty.a -static-libstdc++ -static-libgcc -Wl,--stack -Wl,12582912   -o .libs/liblto_plugin.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/liblto_plugin.dll.a
D:\msys64\mingw64\x86_64-w64-mingw32\bin\ld.exe: C:\Users\Administrator\AppData\Local\Temp\ccjN6XVa.ltrans0.ltrans.o:<artificial>:(.text+0x5208): undefined reference to `stpcpy'
collect2.exe: error: ld returned 1 exit status
make[4]: *** [Makefile:465: liblto_plugin.la] Error 1
make[4]: Leaving directory '/h/build-gcc/lto-plugin'
make[3]: *** [Makefile:376: all] Error 2
make[3]: Leaving directory '/h/build-gcc/lto-plugin'
make[2]: *** [Makefile:15247: all-stage3-lto-plugin] Error 2
make[2]: Leaving directory '/h/build-gcc'
make[1]: *** [Makefile:23519: stage3-bubble] Error 2
make[1]: Leaving directory '/h/build-gcc'
make: *** [Makefile:1013: all] Error 2
How can I solve this problem?
Thanks.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux