Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828809 - dev-perl/IO-AIO-4.760.0 - AIO.xs: error: invalid application of sizeof to incomplete type struct fiemap
Summary: dev-perl/IO-AIO-4.760.0 - AIO.xs: error: invalid application of sizeof to inc...
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:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2021-12-10 15:18 UTC by Toralf Förster
Modified: 2023-02-11 04:26 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,14.38 KB, text/plain)
2021-12-10 15:18 UTC, Toralf Förster
Details
dev-perl:IO-AIO-4.760.0:20211210-061819.log (dev-perl:IO-AIO-4.760.0:20211210-061819.log,8.26 KB, text/plain)
2021-12-10 15:18 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,69.72 KB, text/plain)
2021-12-10 15:18 UTC, Toralf Förster
Details
environment (environment,43.15 KB, text/plain)
2021-12-10 15:18 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,40.57 KB, application/x-bzip)
2021-12-10 15:18 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,6.72 KB, application/x-bzip)
2021-12-10 15:18 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,14.66 KB, application/x-bzip)
2021-12-10 15:18 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 15:18:23 UTC
cp AIO.pm blib/lib/IO/AIO.pm
mv AIO.xsc AIO.c
x86_64-gentoo-linux-musl-gcc -c   -pipe -march=native -fno-diagnostics-color -O2 -fwrapv -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -march=native -fno-diagnostics-color -O2   -DVERSION=\"4.76\" -DXS_VERSION=\"4.76\" -fPIC "-I/usr/lib/perl5/5.34/x86_64-linux/CORE"   AIO.c
AIO.xs: In function 'boot_IO__AIO':
AIO.xs:1243:15: error: invalid application of 'sizeof' to incomplete type 'struct fiemap'
 1243 |     const_iv (FS_IOC_FIEMAP)
      |               ^~~~~~~~~~~~~
AIO.xs:1111:42: note: in definition of macro 'const_iv'
 1111 | #   define const_iv(name) { # name, (IV) name },

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

  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 e1df40d825b1a0fe5001e846d8d3f6dc180cc7aa
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Dec 10 04:51:41 2021 +0000

    2021-12-10 04:51:37 UTC

emerge -qpvO dev-perl/IO-AIO
[ebuild  N    ] dev-perl/IO-AIO-4.760.0  USE="-test"
Comment 1 Toralf Förster gentoo-dev 2021-12-10 15:18:24 UTC
Created attachment 758170 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-12-10 15:18:25 UTC
Created attachment 758171 [details]
dev-perl:IO-AIO-4.760.0:20211210-061819.log
Comment 3 Toralf Förster gentoo-dev 2021-12-10 15:18:26 UTC
Created attachment 758172 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-12-10 15:18:28 UTC
Created attachment 758173 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-12-10 15:18:29 UTC
Created attachment 758174 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-12-10 15:18:29 UTC
Created attachment 758175 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-12-10 15:18:30 UTC
Created attachment 758176 [details]
temp.tar.bz2
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-11 04:01:38 UTC
from 4.790:
192 +/* the incompetent fool that created musl keeps __linux__, refuses
193 + * to implement any linux standard apis, and also has no way to test
194 + * for his broken implementation. don't complain to me if this fails
195 + * for you.
196 + */
197 +#if __linux__ && (defined __GLIBC__ || defined __UCLIBC__)
198 +# include <linux/fs.h> /* MUST be included after sys/mount.h */
199 +# ifdef FS_IOC_FIEMAP
200 +#  include <linux/types.h>
201 +#  include <linux/fiemap.h>
202 +#  undef HAVE_FIEMAP
203 +#  define HAVE_FIEMAP 1
204 +# endif
205 +#endif
206 +

charming!
Comment 9 Larry the Git Cow gentoo-dev 2023-02-11 04:26:43 UTC
The bug has been closed via the following commit(s):

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

commit e7585b56b33300b5fac8483868b93a7bb267f266
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-11 04:01:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-11 04:18:59 +0000

    dev-perl/IO-AIO: add 4.790.0
    
    Closes: https://bugs.gentoo.org/828809
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-perl/IO-AIO/IO-AIO-4.790.0.ebuild | 30 ++++++++++++++++++++++++++++++
 dev-perl/IO-AIO/Manifest              |  1 +
 2 files changed, 31 insertions(+)