[Bug 2040041] [NEW] -pg does not generate gmon.out file
Skewray
2040041 at bugs.launchpad.net
Sat Oct 21 05:29:32 UTC 2023
Public bug reported:
compiling with -pg has two issues. First, many "gcov" routines are not
found during ld. I fixed this by adding "-L/usr/lib/gcc/x86_64-linux-
gnu/12 -lgcov" to the ld command. That's pretty arcane. Second, the
program generates .gcda files, but not the gmon.out required by the
"gprof" command.
The manual entries for gcc and gprof do not imply that this
functionality has been removed or altered.
ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: gcc 4:12.2.0-3ubuntu1
ProcVersionSignature: Ubuntu 6.2.0-34.34-generic 6.2.16
Uname: Linux 6.2.0-34-generic x86_64
ApportVersion: 2.26.1-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: XFCE
Date: Fri Oct 20 22:23:12 2023
ProcEnviron:
LANGUAGE=en_US
PATH=(custom, no user)
SHELL=/bin/tcsh
TERM=xterm-256color
XDG_RUNTIME_DIR=<set>
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: gcc-defaults
UpgradeStatus: Upgraded to lunar on 2023-05-01 (172 days ago)
** Affects: gcc-defaults (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug lunar
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/2040041
Title:
-pg does not generate gmon.out file
Status in gcc-defaults package in Ubuntu:
New
Bug description:
compiling with -pg has two issues. First, many "gcov" routines are not
found during ld. I fixed this by adding "-L/usr/lib/gcc/x86_64-linux-
gnu/12 -lgcov" to the ld command. That's pretty arcane. Second, the
program generates .gcda files, but not the gmon.out required by the
"gprof" command.
The manual entries for gcc and gprof do not imply that this
functionality has been removed or altered.
ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: gcc 4:12.2.0-3ubuntu1
ProcVersionSignature: Ubuntu 6.2.0-34.34-generic 6.2.16
Uname: Linux 6.2.0-34-generic x86_64
ApportVersion: 2.26.1-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: XFCE
Date: Fri Oct 20 22:23:12 2023
ProcEnviron:
LANGUAGE=en_US
PATH=(custom, no user)
SHELL=/bin/tcsh
TERM=xterm-256color
XDG_RUNTIME_DIR=<set>
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: gcc-defaults
UpgradeStatus: Upgraded to lunar on 2023-05-01 (172 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/2040041/+subscriptions
More information about the foundations-bugs
mailing list