X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 244C8384D6F3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1670416905; bh=BkVxQmTJ0z0xTEsfFN7KqU92QnExXt3sGedrI2QhtrE=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=QoUc0ABQ/WB+FAYVOoz4HKdyoUpru9rURxDpASXVGGoKJcI/aAJWBBv05oVH1Kf1q LpKfzxi4Y5px5cL36ewpqrW0/ZIziRu1g7aefNhp4oCBkKoSMirVbnWRmxfFwWj1oZ 2z/9/GGqmZnM2TMP/m0yPgUTH8VQG8rtnOgU3sIw= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com Date: Wed, 7 Dec 2022 13:40:58 +0100 To: cygwin AT cygwin DOT com Subject: Re: gcc -pg broken after cygwin update? Message-ID: <Y5CJ2puxN+/Reahf@calimero.vinschen.de> Mail-Followup-To: cygwin AT cygwin DOT com, Daniel Abrahamsson <daniel DOT abrahamsson AT prover DOT com> References: <AS8PR08MB6936BAD1D7274720E4449505E91A9 AT AS8PR08MB6936 DOT eurprd08 DOT prod DOT outlook DOT com> <Y5B+DvKl+fzjtZTk AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <Y5B+DvKl+fzjtZTk@calimero.vinschen.de> 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 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com> List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>, <mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe> List-Archive: <https://cygwin.com/pipermail/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help> List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>, <mailto:cygwin-request AT cygwin DOT com?subject=subscribe> From: Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com> Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>, Daniel Abrahamsson <daniel DOT abrahamsson AT prover DOT com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com> 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/<somefile>.o <somefile>.c > > > gcc -o ../bin/<mybin> ../obj/<somefile>.o -pg > > > /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: ../obj/<somefile>.o: in function `exit_eval_failure': > > /home/daab/dev/someproj/src/<somefile>.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 -- 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