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

Bug 715856

Summary: dev-libs/libbpf-0.0.7 : /.../swab.h: error: expected ; before unsigned
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: RESOLVED FIXED    
Severity: normal CC: chutzpah
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=791364
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 713786    
Attachments: emerge-info.txt
dev-libs:libbpf-0.0.7:20200402-005502.log
emerge-history.txt
environment
etc.portage.tbz2

Description Toralf Förster gentoo-dev 2020-04-02 07:22:59 UTC
                 from /usr/include/linux/perf_event.h:20,
                 from libbpf.c:35:
/usr/include/linux/swab.h:136:23: error: expected ; before unsigned
  136 | static __always_inline unsigned long __swab(const unsigned long y)
      |                       ^~~~~~~~~
      |                       ;

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

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

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

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.3.0 *
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.42.0 *

timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Wed Apr  1 23:37:48 UTC 2020
/var/db/repos/musl	Fri Mar 27 00:25:27 UTC 2020

emerge -qpvO dev-libs/libbpf
[ebuild  N    ] dev-libs/libbpf-0.0.7  USE="static-libs"
Comment 1 Toralf Förster gentoo-dev 2020-04-02 07:23:02 UTC
Created attachment 628776 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-02 07:23:07 UTC
Created attachment 628778 [details]
dev-libs:libbpf-0.0.7:20200402-005502.log
Comment 3 Toralf Förster gentoo-dev 2020-04-02 07:23:12 UTC
Created attachment 628780 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-04-02 07:23:16 UTC
Created attachment 628782 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-04-02 07:23:19 UTC
Created attachment 628784 [details]
etc.portage.tbz2
Comment 6 Jakov Smolić archtester gentoo-dev 2021-11-09 14:35:11 UTC
The issue is in the linux-headers and has been fixed in the musl overlay (https://github.com/gentoo/musl/commit/e9a03616c762b689a02860e17347eb484d14addf)