Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 821301

Summary: sys-fs/btrfs-progs-5.14.2: musl build failed (/usr/include/linux/sysinfo.h:8:8: error: redefinition of 'struct sysinfo')
Product: Gentoo Linux Reporter: HougeLangley <hougelangley1987>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: musl, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
Build Log

Description HougeLangley 2021-11-02 10:59:33 UTC
I used x86_64-gentoo-linux-musl-gcc build btrfs-progs failed.

Reproducible: Always

Steps to Reproduce:
emerge -av sys-fs/btrfs-progs
Comment 1 HougeLangley 2021-11-02 11:01:29 UTC
Created attachment 748023 [details]
emerge --info
Comment 2 HougeLangley 2021-11-02 11:02:12 UTC
archiso / # emerge -pqv '=sys-fs/btrfs-progs-5.14.2::gentoo'
[ebuild  N    ] sys-fs/btrfs-progs-5.14.2  USE="convert zstd -doc -python -reiserfs -static -static-libs" PYTHON_SINGLE_TARGET="python3_9 -python3_8"
Comment 3 HougeLangley 2021-11-02 11:03:43 UTC
Created attachment 748026 [details]
Build Log
Comment 4 Jory A. Pratt gentoo-dev 2021-11-02 22:02:45 UTC
(In reply to HougeLangley from comment #2)
> archiso / # emerge -pqv '=sys-fs/btrfs-progs-5.14.2::gentoo'
> [ebuild  N    ] sys-fs/btrfs-progs-5.14.2  USE="convert zstd -doc -python
> -reiserfs -static -static-libs" PYTHON_SINGLE_TARGET="python3_9 -python3_8"

Using ::gentoo headers is not supported. If you can produce with the headers that are in the musl overlay then I will spend the time to fix it.
Comment 5 HougeLangley 2021-11-03 11:00:46 UTC
(In reply to Jory A. Pratt from comment #4)
> (In reply to HougeLangley from comment #2)
> > archiso / # emerge -pqv '=sys-fs/btrfs-progs-5.14.2::gentoo'
> > [ebuild  N    ] sys-fs/btrfs-progs-5.14.2  USE="convert zstd -doc -python
> > -reiserfs -static -static-libs" PYTHON_SINGLE_TARGET="python3_9 -python3_8"
> 
> Using ::gentoo headers is not supported. If you can produce with the headers
> that are in the musl overlay then I will spend the time to fix it.

Thanks for your reply. I will try it :P
Comment 6 HougeLangley 2021-11-04 08:59:25 UTC
(In reply to Jory A. Pratt from comment #4)
> (In reply to HougeLangley from comment #2)
> > archiso / # emerge -pqv '=sys-fs/btrfs-progs-5.14.2::gentoo'
> > [ebuild  N    ] sys-fs/btrfs-progs-5.14.2  USE="convert zstd -doc -python
> > -reiserfs -static -static-libs" PYTHON_SINGLE_TARGET="python3_9 -python3_8"
> 
> Using ::gentoo headers is not supported. If you can produce with the headers
> that are in the musl overlay then I will spend the time to fix it.

I have been install linux-headers::musl, btrfs-progs build success. Thanks.