public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* gcc -pg broken after cygwin update?
@ 2022-12-07  8:58 Daniel Abrahamsson
  2022-12-07 11:50 ` Corinna Vinschen
  0 siblings, 1 reply; 13+ messages in thread
From: Daniel Abrahamsson @ 2022-12-07  8:58 UTC (permalink / raw)
  To: cygwin

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?

Regards,
Daniel

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-12-08 16:06 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-07  8:58 gcc -pg broken after cygwin update? Daniel Abrahamsson
2022-12-07 11:50 ` Corinna Vinschen
2022-12-07 12:40   ` Corinna Vinschen
2022-12-07 15:05     ` Daniel Abrahamsson
2022-12-07 15:09       ` Corinna Vinschen
2022-12-07 14:47   ` [EXTERNAL] " Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2022-12-07 15:07     ` Corinna Vinschen
2022-12-07 17:59       ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2022-12-08  9:40         ` Corinna Vinschen
2022-12-08 14:47           ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2022-12-08 15:32             ` Corinna Vinschen
2022-12-08 16:02               ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2022-12-08 16:06                 ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).