Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715856 - dev-libs/libbpf-0.0.7 : /.../swab.h: error: expected ; before unsigned
Summary: dev-libs/libbpf-0.0.7 : /.../swab.h: error: expected ; before unsigned
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: PullRequest
Depends on:
Blocks: missing-musl-includes
  Show dependency tree
 
Reported: 2020-04-02 07:22 UTC by Toralf Förster
Modified: 2021-11-09 14:35 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.66 KB, text/plain)
2020-04-02 07:23 UTC, Toralf Förster
Details
dev-libs:libbpf-0.0.7:20200402-005502.log (dev-libs:libbpf-0.0.7:20200402-005502.log,9.98 KB, text/plain)
2020-04-02 07:23 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,229.46 KB, text/plain)
2020-04-02 07:23 UTC, Toralf Förster
Details
environment (environment,50.80 KB, text/plain)
2020-04-02 07:23 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,24.11 KB, application/x-bzip)
2020-04-02 07:23 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 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)