Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 809686 - sys-devel/gdb-10.2: doesn't build against musl
Summary: sys-devel/gdb-10.2: doesn't build against musl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-22 20:46 UTC by Stijn Tintel
Modified: 2021-11-07 06:05 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,441.20 KB, text/x-log)
2021-08-22 20:47 UTC, Stijn Tintel
Details
emerge --info (emerge--info.txt,6.76 KB, text/plain)
2021-08-22 20:48 UTC, Stijn Tintel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stijn Tintel 2021-08-22 20:46:54 UTC
GDB does not build when using a musl profile

Reproducible: Always

Steps to Reproduce:
1. eselect profile set default/linux/amd64/17.0/musl/hardened
2. emerge gdb

Actual Results:  
GDB doesn't compile

Expected Results:  
GDB should compile
Comment 1 Stijn Tintel 2021-08-22 20:47:34 UTC
Created attachment 735172 [details]
build.log
Comment 2 Stijn Tintel 2021-08-22 20:48:15 UTC
Created attachment 735175 [details]
emerge --info
Comment 3 Petr Vaněk gentoo-dev 2021-08-22 21:17:36 UTC
This problem was already fixed in upstream https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=90d3edf01630093142e833235abea548aa78e65b

I just disabled -nls until gdb-11 will be out.
Comment 4 Stijn Tintel 2021-08-22 21:24:19 UTC
(In reply to Petr Vaněk from comment #3)
> This problem was already fixed in upstream
> https://sourceware.org/git/?p=binutils-gdb.git;a=commit;
> h=90d3edf01630093142e833235abea548aa78e65b
> 
> I just disabled -nls until gdb-11 will be out.

Thanks for the tip, I'll use it to unblock myself for now.

How about either carrying that patch in the musl overlay, or masking the nls USE flag there?
Comment 5 Petr Vaněk gentoo-dev 2021-08-23 10:14:30 UTC
> How about either carrying that patch in the musl overlay, or masking the nls
> USE flag there?

I think it would be better to backport the patch to ::musl or ::gentoo directly, maybe they are some users who use localized gdb.
Comment 6 Larry the Git Cow gentoo-dev 2021-11-07 06:04:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f76a3d9d5dd2af81db1db9ec2c027a57d76b79f0

commit f76a3d9d5dd2af81db1db9ec2c027a57d76b79f0
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-07 06:04:32 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-07 06:04:51 +0000

    profiles/features/musl: mask gdb-10[nls]
    
    11 should work though.
    
    Closes: https://bugs.gentoo.org/809686
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/features/musl/package.use.mask | 6 ++++++
 1 file changed, 6 insertions(+)