bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gprofng/30195] New: [display text] Source code location can not be


From: ruud.vanderpas at oracle dot com
Subject: [Bug gprofng/30195] New: [display text] Source code location can not be found
Date: Fri, 03 Mar 2023 11:13:30 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=30195

            Bug ID: 30195
           Summary: [display text] Source code location can not be found
           Product: binutils
           Version: 2.40
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gprofng
          Assignee: vladimir.mezentsev at oracle dot com
          Reporter: ruud.vanderpas at oracle dot com
  Target Milestone: ---

As the log of my session shown below shows, gprofng cannot find the location of
a source file, but the code has been compiled with -g.

This error has been observed using gcc 11 on Oracle Linux 9.

$ uname -r
5.15.0-5.76.5.1.el9uek.aarch64
$

$ gcc --version
gcc (GCC) 11.3.1 20220421 (Red Hat 11.3.1-2.1.0.1)
Copyright (C) 2021 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.

$ make
gcc -o ../objects/main.o -c -g -O -Wall -Werror=undef -Wstrict-prototypes
main.c
gcc -o ../objects/manage_data.o -c -g -O -Wall -Werror=undef
-Wstrict-prototypes manage_data.c
gcc -o ../objects/workload.o -c -g -O -Wall -Werror=undef -Wstrict-prototypes
workload.c
gcc -o ../objects/mxv.o -c -g -O -Wall -Werror=undef -Wstrict-prototypes mxv.c
gcc -o ../bindir/mxv-pthreads  ../objects/main.o ../objects/manage_data.o
../objects/workload.o ../objects/mxv.o -lm -lpthread
ldd ../bindir/mxv-pthreads
        linux-vdso.so.1 (0x0000ffff8a081000)
        libm.so.6 => /lib64/libm.so.6 (0x0000ffff89fa3000)
        libc.so.6 => /lib64/libc.so.6 (0x0000ffff89df5000)
        /lib/ld-linux-aarch64.so.1 (0x0000ffff8a044000)
$ cd ../bindir
$ gprofng collect app ./mxv-pthreads -m 8000 -n 4000
CPU clock frequency: 25000000
Creating experiment directory test.1.er (Process ID: 2101962) ...
mxv: error check passed - rows = 8000 columns = 4000 threads = 1
$ gprofng display text -source mxv_core test.1.er
Error: Source location not recorded in experiment
$

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]