[LLVMbugs] [Bug 5011] New: Binaries generated by llvm-gcc break rpm debugedit
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sat Sep 19 17:49:18 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=5011
Summary: Binaries generated by llvm-gcc break rpm debugedit
Product: new-bugs
Version: 2.6
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: bero at arklinux.org
CC: llvmbugs at cs.uiuc.edu
rpm debugedit is a tool that extracts debug info from binaries, allowing
packages to include small, stripped binaries while still providing debug
symbols etc. to those who need it, in a separate file.
When using it on anything built with llvm-gcc (including stuff it works on when
it was built with gcc, using identical makefiles), it complains that
/usr/lib/rpm/bin/debugedit: canonicalization unexpectedly shrank by one
character
This is usually caused by an extra / in a path name; the typical way to trigger
it would be
mkdir src
cat > src/foo.c <<EOF
int
main(int argc, char **argv)
{
return 0;
}
EOF
cd src
gcc -g3 -o foo ../src//foo.c
/usr/lib/rpm/debugedit -b `pwd` -d / foo
(see https://bugzilla.redhat.com/show_bug.cgi?id=304121)
given there are no extra slashes in path names in the code being built
(debugedit works if it's built with gcc), llvm-gcc is likely bringing in an
extra / somewhere.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list