Bug#913946: llvm*-dbgsym not built, lots of 'strip: [something].cpp.o: failed to find link section for section N' errors
Rebecca N. Palmer
rebecca_palmer at zoho.com
Sat Nov 17 13:34:15 GMT 2018
On 17/11/2018 12:43, Sylvestre Ledru wrote:
> I guess this is caused by the move to a stage2 build. Maybe clang
> generates .o files which make strip sad?!
That suggests trying llvm-strip instead (plain 'strip' is GNU binutils
strip). For initial testing you could just copy llvm-strip over strip;
the final package would probably need something like (in d/rules)
override_dh_strip:
ln -s [just built]/llvm-strip [somewhere]/strip
PATH=[somewhere]:$$PATH dh_strip
Though if that produces -dbgsym packages, it would be a good idea to
check whether those packages work in gdb, as it suggests that gcc and
clang don't agree on the format of debug information.
More information about the Pkg-llvm-team
mailing list