gcc 13 collect2 ld cannot find /usr/lib/gcc/x86_64-pc-cygwin/12/{crtbeginS.o,crtend.o}

2025年8月23日 12:01:03 -0700

In libtool build (ncurses package update), installed gcc 13:
$ gcc --version
gcc (GCC) 13.4.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
collect2 appears to be looking for startup crt objects from gcc 12:
cd ../lib && /usr/bin/libtool --tag=CXX --silent --mode=link /usr/bin/g++ -ggdb -O2 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=3 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=return-type -ffile-prefix-map=/usr/src/ncurses/ncurses-6.5+20250816-1.x86_64/build=/usr/src/debug/ncurses-6.5+20250816-1 -ffile-prefix-map=/usr/src/ncurses/ncurses-6.5+20250816-1.x86_64/src/ncurses-6.5-20250816=/usr/src/debug/ncurses-6.5+20250816-1 \ -o libncurses++w.la ../obj_lo/cursesf.lo ../obj_lo/cursesm.lo ../obj_lo/cursesw.lo ../obj_lo/cursespad.lo ../obj_lo/cursesp.lo ../obj_lo/cursslk.lo ../obj_lo/cursesapp.lo ../obj_lo/cursesmain.lo \
 -rpath /usr/lib \
-version-number 10:0 -no-undefined -L../lib -lformw -lmenuw -lpanelw -lncursesw -L../lib ../lib/libformw.la ../lib/libmenuw.la ../lib/libpanelw.la ../lib/libncursesw.la -lutil /usr/lib/gcc/x86_64-pc-cygwin/13/../../../../x86_64-pc-cygwin/bin/ld: cannot find /usr/lib/gcc/x86_64-pc-cygwin/12/crtbeginS.o: No such file or directory /usr/lib/gcc/x86_64-pc-cygwin/13/../../../../x86_64-pc-cygwin/bin/ld: cannot find /usr/lib/gcc/x86_64-pc-cygwin/12/crtend.o: No such file or directory
collect2: error: ld returned 1 exit status
$ cygcheck -p /usr/lib/gcc/x86_64-pc-cygwin/12/
Found 2 matches for /usr/lib/gcc/x86_64-pc-cygwin/12/
gcc-debuginfo-12.4.0-3 - gcc-debuginfo: Debug info for gcc
gcc-debuginfo-12.5.0-1 - gcc-debuginfo: Debug info for gcc
--
Take care. Thanks, Brian Inglis Calgary, Alberta, Canada
La perfection est atteinte Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher but when there is no more to cut
 -- Antoine de Saint-Exupéry
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation: https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple

Reply via email to