DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 57O4SfFi3006556 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 57O4SfFi3006556 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=xprmLPLZ X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D41C13857BA7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1756009718; bh=1CcF/7oSeCu8Cuxypg04j9PovsIQKyhE9wTz30abhbw=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=xprmLPLZfCw2MOXHv3O3uzWyRdG7BriGPMDgZQaDOi+ulntNXWHCES7zXyvHqyp1X 8sseJIaMs3OkSHMJ8d1qEKjaZ/l9ZFJnF1IHHnF5hBX8pNwu23JHexjOBCFYKainYF LNPa08w9MF5OyMCEe6omwJOmNhaowzjK0EzACOjY= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0465C3858CD1 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0465C3858CD1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1756009693; cv=none; b=d4TRvO50PfgvXU4oqe/DTQVNRuun7rgEKPv+3QwAFOJoGG2ZUB4Xn7fmkBVSC4okK0Ke6OnV4vabdm+knSn6khj80xUUV2R2J155at1TNsJ8BkxHROon9ezgm4w2Cjb1iuckRHuq9tAo9968yL/PcJ+XUCkoZNymwrHF7mY2C5g= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1756009693; c=relaxed/simple; bh=lkvxwiK7m/MXaVHqEKYkaPeEC90e1Snw4DPiNzwUwX8=; h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature; b=jKY4IGWdWr7kM7shtGP5pVG3Ei2Kw9rRBSjUmTyd2//+0gffEBqjYYzXKa6kTDdI1k2iLDUCGab44Cx/CQePL0z840WOD+Pu3MuaOxTqf1PXa25jncRJNPGEdsLJmjHaFhTgLaTwjazf9bW5BE7AJGb+Xe9Z93zCcefo31hd3pg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0465C3858CD1 Message-ID: <0ad82f4b-34cc-49e5-bcf5-5e45c6f9853e@systematicsw.ab.ca> Date: Sat, 23 Aug 2025 22:28:09 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: gcc 13 collect2 ld also failing in scallywag! Content-Language: en-CA To: cygwin AT cygwin DOT com References: <3399d319-d0ed-4bb2-b67f-8439ec5b8b4b AT SystematicSW DOT ab DOT ca> <2df39ac5-94cf-4552-b5d7-5a6ee7ed6454 AT systematicsw DOT ab DOT ca> Organization: Systematic Software In-Reply-To: <2df39ac5-94cf-4552-b5d7-5a6ee7ed6454@systematicsw.ab.ca> X-Stat-Signature: 77z96kq1cahuo64gwywn6ybpgrmcwomk X-Rspamd-Server: rspamout05 X-Rspamd-Queue-Id: E19F219 X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361 X-Session-ID: U2FsdGVkX1/evNY9TVeUU9eC1nj/0D/4ItWA0nCm8iI= X-HE-Tag: 1756009690-753185 X-HE-Meta: U2FsdGVkX19VOJ/pMfADIDL47HpbPK5Png8+Gqh0DWTTDgMWJ0Pv1aR3aFO579uC4x/Sn+TMQw9KjbGum5yt4VMVTLzVlWCEoICpFVp40uSMmfIE4NGyRHozl6rAjSoDzwAsrNvTdPy9YaJ72F4v3NUcWVXDLKoUAqLANav+Rzh7B8XT9gZ6rL7cY/AA6wP4/YUgO8lLdBoFrtmrfAcKO5JdwOy2ej4SlSPLvYDpsWOvecHaUWYItOC69nd2ovk3yK7Q0QsqWZDz2pNP24PzB1tsLhw8AVjVKE781UUOXko1rR4/Twngi8HIVS/X5Ct0Or3Xiye4Z0DCP9/ZQFRga9UGvdf7XVEmfxBre4OrKInYOryEJ/MA8xUkMIMjB++M7x4y4wyvYe4hD/FpRT7drb5Slp8BlcXFupl1pgS3zhD5HvRDKUrxYw== X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Brian Inglis via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Brian Inglis Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 57O4SfFi3006556 Hi folks, Previous GCC library paths are baked into libtool! Belated rediscovery of a previously used "feature". As ncurses is baked with a specific autoconf version 2.52, it can not be autoreconf-ed, but includes a fixup script to hack /usr/bin/libtool to update library paths to the latest GCC major version! Enabled execution of fixup script hack against libtool during each run to avoid any future issues! Not sure why libtool could not be written to use `gcc -dumpversion`, the path search expression in the fixup script, or the autotools/gnulib LT_INIT/AC_PROG_LIBTOOL/AM_PROG_LIBTOOL machinery to set the appropriate path? Sheesh! Sorry for the noise! On 2025-08-23 13:19, Brian Inglis via Cygwin wrote: > Also failing in GitHub Scallywag CI: > > https://cygwin.com/cgi-bin2/jobs.cgi?id=10262&srcpkg=ncurses&user=Brian+Inglis > > https://github.com/cygwin/scallywag/actions/runs/17178449093 > > https://github.com/cygwin/scallywag/actions/runs/17178449093/job/48737632987 > > 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=/cygdrive/d/a/scallywag/ncurses/ncurses-6.5+20250816-1.x86_64/build=/usr/ > src/debug/ncurses-6.5+20250816-1 -ffile-prefix-map=/cygdrive/d/a/scallywag/ > 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 > make[1]: *** [Makefile:383: ../lib/libncurses++w.la] Error 1 > make[1]: Leaving directory '/cygdrive/d/a/scallywag/ncurses/ > ncurses-6.5+20250816-1.x86_64/build/c++' > make: *** [Makefile:142: all] Error 2 > *** ERROR: make failed > > On 2025-08-23 13:00, Brian Inglis via Cygwin wrote: >> 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