public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug gcov-profile/106979] New: Gcov tutorial for Freestanding Environments failing
@ 2022-09-20 15:16 rob at lightmatter dot co
  2022-09-20 15:31 ` [Bug gcov-profile/106979] " marxin at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: rob at lightmatter dot co @ 2022-09-20 15:16 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106979

            Bug ID: 106979
           Summary: Gcov tutorial for Freestanding Environments failing
           Product: gcc
           Version: 11.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gcov-profile
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rob at lightmatter dot co
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.1 LTS"

gcc --version
gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0

Following the documentation here:
https://gcc.gnu.org/onlinedocs/gcc/Freestanding-Environments.html
---------- Warning ----------
The following step:
Compile app.c and main.c with test coverage and -fprofile-info-section. 

Produces a warning:
gcc -fprofile-arcs -ftest-coverage -fprofile-info-section -c main.c
main.c: In function 'filename':
main.c:35:3: warning: implicit declaration of function
'__gcov_filename_to_gcfn' [-Wimplicit-function-declaration]
   35 |   __gcov_filename_to_gcfn (f, dump, arg);
      |   ^~~~~~~~~~~~~~~~~~~~~~~
main.c: In function 'dump_gcov_info':
main.c:63:5: warning: implicit declaration of function '__gcov_info_to_gcda'
[-Wimplicit-function-declaration]
   63 |     __gcov_info_to_gcda (*info, filename, dump, allocate, arg);
      |     ^~~~~~~~~~~~~~~~~~~
---------- Failure ----------
Subsequent step fails:
gcc --coverage main.o app.o -T linkcmds -Wl,-Map,app.map
/usr/bin/ld: main.o: in function `filename':
main.c:(.text+0x10c): undefined reference to `__gcov_filename_to_gcfn'
/usr/bin/ld: main.o: in function `dump_gcov_info':
main.c:(.text+0x196): undefined reference to `__gcov_info_to_gcda'
collect2: error: ld returned 1 exit status
make: *** [Makefile:38: test3] Error 1

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

* [Bug gcov-profile/106979] Gcov tutorial for Freestanding Environments failing
  2022-09-20 15:16 [Bug gcov-profile/106979] New: Gcov tutorial for Freestanding Environments failing rob at lightmatter dot co
@ 2022-09-20 15:31 ` marxin at gcc dot gnu.org
  2022-09-20 15:41 ` rob at lightmatter dot co
  2022-09-20 16:54 ` marxin at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-09-20 15:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106979

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
The 2 functions will be available in GCC 13.1.

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

* [Bug gcov-profile/106979] Gcov tutorial for Freestanding Environments failing
  2022-09-20 15:16 [Bug gcov-profile/106979] New: Gcov tutorial for Freestanding Environments failing rob at lightmatter dot co
  2022-09-20 15:31 ` [Bug gcov-profile/106979] " marxin at gcc dot gnu.org
@ 2022-09-20 15:41 ` rob at lightmatter dot co
  2022-09-20 16:54 ` marxin at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rob at lightmatter dot co @ 2022-09-20 15:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106979

--- Comment #2 from rob at lightmatter dot co ---
What is the solution for embedded systems using earlier versions of GCC?

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

* [Bug gcov-profile/106979] Gcov tutorial for Freestanding Environments failing
  2022-09-20 15:16 [Bug gcov-profile/106979] New: Gcov tutorial for Freestanding Environments failing rob at lightmatter dot co
  2022-09-20 15:31 ` [Bug gcov-profile/106979] " marxin at gcc dot gnu.org
  2022-09-20 15:41 ` rob at lightmatter dot co
@ 2022-09-20 16:54 ` marxin at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-09-20 16:54 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106979

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
The embedded support is new, so please try using the latest master snapshots we
provide :)

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

end of thread, other threads:[~2022-09-20 16:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-20 15:16 [Bug gcov-profile/106979] New: Gcov tutorial for Freestanding Environments failing rob at lightmatter dot co
2022-09-20 15:31 ` [Bug gcov-profile/106979] " marxin at gcc dot gnu.org
2022-09-20 15:41 ` rob at lightmatter dot co
2022-09-20 16:54 ` marxin at gcc dot gnu.org

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).