Bug#913946: llvm*-dbgsym still missing
Adrian Bunk
bunk at debian.org
Fri Dec 21 19:35:14 GMT 2018
Control: reopen -1
Control: tags -1 = patch
On Fri, Dec 14, 2018 at 10:53:23PM +0000, Rebecca N. Palmer wrote:
> On 14/12/2018 21:21, Sylvestre Ledru wrote:
> > Maybe it will be automatically fixed as doko told me that he backported
> > the fix in binutils.
>
> The original form of this bug (i.e. "failed to find link section" when using
> GNU strip) should be fixed in binutils 2.31.1-11.
>
> To get back to that being our only problem, we need to revert at least the
> attempt to use LLVM strip (i.e. https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/commit/d441237cacb871abfebec1353b4b64398a362b0b).
>...
The fix in 1:7.0.1-1 was not complete, there were two additional problems
(missing -g and missing BuildID) that are fixed in
https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/merge_requests/28
> (There's also #914021, where llvm*-dbgsym do exist but don't actually work;
> I don't know whether that will affect 7 after these changes)
The above MR creates -dbgsym again and gives you the line numbers
in the backtrace back:
(gdb) bt full
#0 0x00007ffff4d54040 in llvm::sys::Wait(llvm::sys::ProcessInfo const&, unsigned int, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)@plt () from /usr/lib/x86_64-linux-gnu/libLLVM-7.so.1
No symbol table info available.
#1 0x00007ffff4f020f6 in ExecuteAndWait ()
at /tmp/llvm-toolchain-7-7.0.1/lib/Support/Program.cpp:41
No locals.
#2 0x00000000009cdbc1 in Execute ()
at /tmp/llvm-toolchain-7-7.0.1/tools/clang/lib/Driver/Job.cpp:335
No locals.
#3 0x00000000009ab3c3 in ExecuteCommand ()
at /tmp/llvm-toolchain-7-7.0.1/tools/clang/lib/Driver/Compilation.cpp:185
No locals.
#4 0x00000000009ab58a in ExecuteJobs ()
at /tmp/llvm-toolchain-7-7.0.1/tools/clang/lib/Driver/Compilation.cpp:236
No locals.
#5 0x00000000009bc3ae in ExecuteCompilation ()
at /tmp/llvm-toolchain-7-7.0.1/tools/clang/lib/Driver/Driver.cpp:1380
No locals.
#6 0x00000000006a81c0 in main ()
at /tmp/llvm-toolchain-7-7.0.1/tools/clang/tools/driver/driver.cpp:462
No locals.
(gdb)
Using -g instead of -g1 in the above MR gives a proper backtrace,
but that would cause build problems due to disk space usage.
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
More information about the Pkg-llvm-team
mailing list