Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 876391 - sys-fs/bees-0.7 - /.../btrfs.h: error: flexible array member btrfs_ioctl_same_args::info not at end of struct crucible::BtrfsExten
Summary: sys-fs/bees-0.7 - /.../btrfs.h: error: flexible array member btrfs_ioctl_same...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Kai Krakow
URL: https://github.com/Zygo/bees/issues/232
Whiteboard:
Keywords: PATCH, PullRequest
: 879043 880449 (view as bug list)
Depends on:
Blocks: 876331
  Show dependency tree
 
Reported: 2022-10-09 20:37 UTC by Toralf Förster
Modified: 2022-12-17 19:33 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.52 KB, text/plain)
2022-10-09 20:37 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,179.95 KB, text/plain)
2022-10-09 20:37 UTC, Toralf Förster
Details
environment (environment,85.01 KB, text/plain)
2022-10-09 20:37 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,11.32 KB, application/x-bzip)
2022-10-09 20:37 UTC, Toralf Förster
Details
sys-fs:bees-0.7:20221009-200733.log (sys-fs:bees-0.7:20221009-200733.log,11.01 KB, text/plain)
2022-10-09 20:37 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,22.25 KB, application/x-bzip)
2022-10-09 20:37 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 2022-10-09 20:37:21 UTC
x86_64-pc-linux-gnu-g++ -Wall -Wextra -O3 -I../include -D_FILE_OFFSET_BITS=64 -std=c++11 -Wold-style-cast -pipe -march=native -fno-diagnostics-color -O2 -o fd.o -c fd.cc
In file included from ../include/crucible/btrfs.h:17,
                 from ../include/crucible/fs.h:11,
                 from extentwalker.cc:5:
/usr/include/linux/btrfs.h:633:45: error: flexible array member btrfs_ioctl_same_args::info not at end of struct crucible::BtrfsExtentSame
  633 |         struct btrfs_ioctl_same_extent_info info[];
      |                                             ^~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-j4-20221008-190004

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.2
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.2
Python 3.10.7
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.16.1_p1 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php7.4 *
  [2]   php8.0
  [3]   php8.1
GNU Make 4.3

  HEAD of ::gentoo
commit 7d7ffd46e51149cb4379314ec9b29658223edcaa
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Oct 9 19:34:00 2022 +0000

    2022-10-09 19:33:59 UTC

emerge -qpvO sys-fs/bees
[ebuild  N    ] sys-fs/bees-0.7  USE="-tools"
Comment 1 Toralf Förster gentoo-dev 2022-10-09 20:37:22 UTC
Created attachment 823324 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-09 20:37:23 UTC
Created attachment 823327 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-10-09 20:37:25 UTC
Created attachment 823330 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-10-09 20:37:26 UTC
Created attachment 823333 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-10-09 20:37:27 UTC
Created attachment 823336 [details]
sys-fs:bees-0.7:20221009-200733.log
Comment 6 Toralf Förster gentoo-dev 2022-10-09 20:37:28 UTC
Created attachment 823339 [details]
temp.tar.bz2
Comment 7 Kai Krakow 2022-10-09 21:23:55 UTC
Reported upstream because I cannot reproduce it on my production systems running stable kernels.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-09 21:32:41 UTC
(In reply to Kai Krakow from comment #7)
> Reported upstream because I cannot reproduce it on my production systems
> running stable kernels.

It's linux-headers-6.0 (you should be able to install it safely, fwiw).
Comment 9 Kai Krakow 2022-10-10 09:36:45 UTC
(In reply to Sam James from comment #8)
> It's linux-headers-6.0 (you should be able to install it safely, fwiw).

Oh yes, you're right. But let's wait a little for the upstream developer, he's usually pretty fast in fixing things and very interested to work on future kernel compatibility.

Nevertheless, I'll check the newer kernel headers, maybe I can come up with a patch. May take a few days.
Comment 10 Kai Krakow 2022-10-14 15:26:37 UTC
Fixed in https://github.com/Zygo/bees/commit/14ce81c081e2aa3104e78bb74a54ecccd4624d0d

I'll prepare a new ebuild version.
Comment 11 Kai Krakow 2022-10-24 09:55:22 UTC
Another instance of this build error has been fixed:
https://github.com/Zygo/bees/commit/5040303f5067ac266b274a44888e0b49c06da816

It looks like this is more likely a problem with latest gcc than the kernel headers itself.
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-01 23:45:14 UTC
*** Bug 879043 has been marked as a duplicate of this bug. ***
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-08 23:35:19 UTC
*** Bug 880449 has been marked as a duplicate of this bug. ***
Comment 15 Kai Krakow 2022-11-09 09:06:54 UTC
It looks like this is solved upstream now in master, with multiple reports that it works now.

I'll check if we can get a version bump from upstream or if I need to rather extract the patches.
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-10 08:42:52 UTC
(In reply to Kai Krakow from comment #15)
> It looks like this is solved upstream now in master, with multiple reports
> that it works now.
> 
> I'll check if we can get a version bump from upstream or if I need to rather
> extract the patches.

Thanks!
Comment 17 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-28 10:06:37 UTC
ping, looks like 0.8 got tagged
Comment 18 Kai Krakow 2022-11-28 10:08:00 UTC
Thanks for the ping, Sam. I'll be following up soon, had some health issues.
Comment 19 Larry the Git Cow gentoo-dev 2022-12-17 19:33:16 UTC
The bug has been closed via the following commit(s):

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

commit 7b82cb595d75b20e591a4baf9aaed01b6dd263b1
Author:     Kai Krakow <kai@kaishome.de>
AuthorDate: 2022-12-17 11:38:38 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-17 19:33:03 +0000

    sys-fs/bees: add 0.8
    
    Closes: https://bugs.gentoo.org/876391
    Signed-off-by: Kai Krakow <kai@kaishome.de>
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-fs/bees/Manifest        |   1 +
 sys-fs/bees/bees-0.8.ebuild | 109 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 110 insertions(+)