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

Bug 715930

Summary: dev-util/pahole-1.17 : /.../swab.h: error: expected ; before unsigned
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: CONFIRMED ---    
Severity: normal CC: zzam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 713786    
Attachments: emerge-info.txt
dev-util:dwarves-1.17:20200402-160858.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-04-02 17:18:28 UTC
                 from /usr/include/linux/perf_event.h:20,
                 from /var/tmp/portage/dev-util/dwarves-1.17/work/dwarves-1.17/lib/bpf/src/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	Thu Apr  2 14:37:38 UTC 2020
/var/db/repos/musl	Thu Apr  2 13:46:05 UTC 2020

emerge -qpvO dev-util/dwarves
[ebuild  N    ] dev-util/dwarves-1.17  USE="-debug" PYTHON_SINGLE_TARGET="python3_6"
Comment 1 Toralf Förster gentoo-dev 2020-04-02 17:18:30 UTC
Created attachment 629094 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-02 17:18:33 UTC
Created attachment 629096 [details]
dev-util:dwarves-1.17:20200402-160858.log
Comment 3 Toralf Förster gentoo-dev 2020-04-02 17:18:36 UTC
Created attachment 629098 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-04-02 17:18:39 UTC
Created attachment 629100 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-04-02 17:18:41 UTC
Created attachment 629102 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-04-02 17:18:45 UTC
Created attachment 629104 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-04-02 17:18:47 UTC
Created attachment 629106 [details]
temp.tbz2
Comment 8 Andreas Sturmlechner gentoo-dev 2021-03-12 21:27:53 UTC
Reproducible with 1.20 or not?
Comment 9 Toralf Förster gentoo-dev 2021-03-12 22:44:50 UTC
(In reply to Andreas Sturmlechner from comment #8)
> Reproducible with 1.20 or not?

not reproducible at non-musl-images (musl isn't regularly scheduled here at the tinderbox b/c musl was not matured enough last time it was discussed)
Comment 10 Matthias Schwarzott gentoo-dev 2024-01-19 08:11:49 UTC
I think this is fixed in sys-kernel/linux-headers-6.2 with commit defbab270d45e32b ("include/uapi/linux/swab: Fix potentially missing __always_inline") see [1].

This fixes a potentially missing definition of __always_inline.
The original report used sys-kernel/linux-headers: 5.6

@Toralf Is it possible to retest this issue? Otherwise I would just resolve it.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=defbab270d45e32b068e7e73c3567232d745c60f