Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828726 - sys-kernel/linux-headers: causes build failure on musl of sys-fs/btrfs-progs (sys-fs/btrfs-progs-5.15.1 - /.../sysinfo.h: error: redefinition of struct sysinfo)
Summary: sys-kernel/linux-headers: causes build failure on musl of sys-fs/btrfs-progs ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords: PATCH
: 829618 (view as bug list)
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2021-12-10 10:31 UTC by Toralf Förster
Modified: 2021-12-30 09:45 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,14.14 KB, text/plain)
2021-12-10 10:31 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,31.17 KB, text/plain)
2021-12-10 10:31 UTC, Toralf Förster
Details
environment (environment,91.68 KB, text/plain)
2021-12-10 10:31 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,40.42 KB, application/x-bzip)
2021-12-10 10:31 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,6.91 KB, application/x-bzip)
2021-12-10 10:31 UTC, Toralf Förster
Details
sys-fs:btrfs-progs-5.15.1:20211210-012459.log (sys-fs:btrfs-progs-5.15.1:20211210-012459.log,91.29 KB, text/plain)
2021-12-10 10:31 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,25.56 KB, application/x-bzip)
2021-12-10 10:32 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-12-10 10:31:53 UTC
	
In file included from /usr/include/linux/kernel.h:5,
                 from ./kerncompat.h:31,
                 from common/utils.c:42:
/usr/include/linux/sysinfo.h:8:8: error: redefinition of 'struct sysinfo'
    8 | struct sysinfo {
      |        ^~~~~~~
In file included from common/utils.c:27:
/usr/include/sys/sysinfo.h:10:8: note: originally defined here

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-j4-20211209-163207

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-11.2.1 *
clang version 13.0.0
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.57.0 *
php cli:

  HEAD of ::gentoo
commit fcac4407d226ee54f0c57af2d89756b4e26deef0
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Dec 10 00:36:44 2021 +0000

    2021-12-10 00:36:41 UTC

emerge -qpvO sys-fs/btrfs-progs
[ebuild  N    ] sys-fs/btrfs-progs-5.15.1  USE="convert zstd -doc -python -reiserfs -static -static-libs" PYTHON_SINGLE_TARGET="python3_9 -python3_8"
Comment 1 Toralf Förster gentoo-dev 2021-12-10 10:31:54 UTC
Created attachment 758036 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-12-10 10:31:55 UTC
Created attachment 758037 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-12-10 10:31:56 UTC
Created attachment 758038 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-12-10 10:31:57 UTC
Created attachment 758039 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-12-10 10:31:58 UTC
Created attachment 758040 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-12-10 10:31:59 UTC
Created attachment 758041 [details]
sys-fs:btrfs-progs-5.15.1:20211210-012459.log
Comment 7 Toralf Förster gentoo-dev 2021-12-10 10:32:00 UTC
Created attachment 758042 [details]
temp.tar.bz2
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-30 08:54:02 UTC
hm, it seems to build fine for Alpine.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-30 09:07:01 UTC
*** Bug 830277 has been marked as a duplicate of this bug. ***
Comment 11 Larry the Git Cow gentoo-dev 2021-12-30 09:41:03 UTC
The bug has been closed via the following commit(s):

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

commit e1bd866997acfb6ed2f4e3051ce233658f1b69bc
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-30 09:39:10 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-30 09:39:10 +0000

    sys-kernel/linux-headers: fix 5.10 for musl (sysinfo.h)
    
    Notably fixes btrfs-progs build.
    
    Closes: https://bugs.gentoo.org/828726
    Signed-off-by: Sam James <sam@gentoo.org>

 ...x-headers-5.15-remove-inclusion-sysinfo.h.patch | 24 ++++++++++
 .../linux-headers/linux-headers-5.15-r2.ebuild     | 52 ++++++++++++++++++++++
 2 files changed, 76 insertions(+)

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

commit 1ef3659212ff98d2e6bb5df51e405c0953a45fec
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-30 09:37:33 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-30 09:37:37 +0000

    sys-kernel/linux-headers: fix 5.10 for musl (sysinfo.h)
    
    Notably fixes btrfs-progs build.
    
    Closes: https://bugs.gentoo.org/828726
    Signed-off-by: Sam James <sam@gentoo.org>

 ...x-headers-5.10-remove-inclusion-sysinfo.h.patch | 24 +++++++++++
 .../linux-headers/linux-headers-5.10-r2.ebuild     | 49 ++++++++++++++++++++++
 2 files changed, 73 insertions(+)
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-30 09:45:29 UTC
*** Bug 829618 has been marked as a duplicate of this bug. ***