From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.75]) by sourceware.org (Postfix) with ESMTPS id 781A93850B29 for ; Wed, 7 Dec 2022 12:41:03 +0000 (GMT) Authentication-Results: sourceware.org; dmarc=permerror header.from=cygwin.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=cygwin.com Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MMWgb-1pMUmb3ytT-00JaHF; Wed, 07 Dec 2022 13:40:58 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 5CAA1A80797; Wed, 7 Dec 2022 13:40:58 +0100 (CET) Date: Wed, 7 Dec 2022 13:40:58 +0100 From: Corinna Vinschen To: cygwin@cygwin.com Cc: Daniel Abrahamsson Subject: Re: gcc -pg broken after cygwin update? Message-ID: Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com, Daniel Abrahamsson References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:/9BCTP25KllzDwz4BXHKIDCFTq/IixR7okau9sebryrBegYFojE c01D/mkPlMgdXtXroQEQL/T0j1eSu9+QtKqCW/bb+UJrBo3NCj1UaBvttk98HqH4iFzleoY yec2rbvsRX6F+mML0bR7VuIABuLx+GyJbXEFKsXd1Y8v3SX/hLqcXnbVgpR4JiXlJyjMlqE 3Y768bY2eAfySUUZf0p7w== X-UI-Out-Filterresults: notjunk:1;V03:K0:6/IXY11oiFM=:ucGrNtVbxvesOHvmrFr3m1 vg1IfWK+SJeiD2ispO+zfwSgWG76QfbH8cGZzF/RttpKGLuHM5Va5R/fkCHqZRhbJ2gx/f727 dqrRDTXWW/+0Zunf6yUcl8FSLb9rPeUY73QdEKpGCqDJJxi5JoQuGdOfEBeQyqUTi7IQW/RAX THXeVVQ0/1mbD7f7qk8HLt1Pu9ebL+r8kiCgImXOJNF5bbRGRW9lMShRn4IbAUQNKVeFKWGpv gX6Dk/GZiA5Jucis3wd1MBb6l6Gkx+a5kR4AhZmZnfiHqQMzRrK1Wn07azCqkW3/rMdBC0Xlu HcuH5ujFE6ZKJKWIkmV7X/0CAm2f9zbE89MrhK/VQNBeKQSK3nIAx2M+BnmmxoMHxw/PXdD+g m5JTLouVuI3T0KRW5dlcRaSorUlplnozErFl6EV8YZ+qXrbcizwVfM61S/RlZxumYnwC4nCTe yeJ7RPBmmTOPlKTDw9Ibk+RauTR2r9VrHltoo/qqAA3XlEuj+R0lQ2Z9ddwwkwIyscHU1nsn0 /7fROoRBNHNflpEnNkbxlnDafNYPTzxHLPgdOdncFYb1TOmG8IfP8h0lBfsAwL81qIZbVBNeq w0wSDZDgaDVT2qJ3H0P0aUdeSXjjU6E0Mc0uSooL/qMCRetLP91MmuoyRCGNc5lvLIIhRZvaP LEE6JRqbjshKPwlc2HruD8qr5/FOXO+fZLJeIUDZZajfaPqyDM2PL5aRx7I24WIk+1y0ni/gw vWo4Egh0ia6kqad+/neL65w9eaWIMMnAeCq66YIGjBU9Gz+sXJyz2xFGPAvlcS5ioCf9ZDbml GsgUGGXlVKNdhVJes3OFGafbwTByQ== X-Spam-Status: No, score=-95.4 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_DMARC_STATUS,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Dec 7 12:50, Corinna Vinschen via Cygwin wrote: > On Dec 7 08:58, Daniel Abrahamsson via Cygwin wrote: > > Hi, > > > > This morning I updated cygwin, and after that gcc started producing errors like this: > > > > > gcc -Wall -Wextra -Werror -pedantic -Wno-unused-parameter -g -pg -DVERBOSE -c -o ../obj/.o .c > > > gcc -o ../bin/ ../obj/.o -pg > > > /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: ../obj/.o: in function `exit_eval_failure': > > /home/daab/dev/someproj/src/.c:17: undefined reference to `__fentry__' > > > > If I drop the "pg" flags from the compilation and linking stages, everything works. > > > > I typically update cygwin packages once per week, but now it has been > > maybe a month since I last updated. As far as I can tell from the > > cygwin-announce archives, there has not been any gcc updates in that > > period, but I do note that cygwin itself has been updated. Could that > > be related? > > Thanks for the report. > > This is a dumb bug I introduced into the build system in 3.4.0. I fixed > that in the git repo, but the automated build of the matching test > release cygwin-3.5.0-0.17.g95f5b0a62036 is currently not building due to > some hiccup on cygwin.com. I'll send a new mail as soon as this is > fixed and you can test it (provided you run at least Windows 8.1). Automated builds have been picked up again and the Cygwin test package 3.5.0-0.17.g95f5b0a62036 should be available later today. You can install it using setup.exe, just like any other test release. Don't forget to install the matching cygwin-devel package, too, that's the one containing the library libgmon.a, which is what gets linked in with `gcc -pg'. Thanks, Corinna