Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831015 - sys-fs/erofs-utils-1.4 - main.c: error: S_IFMT undeclared (first use in this function)
Summary: sys-fs/erofs-utils-1.4 - main.c: error: S_IFMT undeclared (first use in this ...
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:
 
Reported: 2022-01-11 14:08 UTC by Toralf Förster
Modified: 2022-01-18 07:58 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,14.84 KB, text/plain)
2022-01-11 14:08 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,10.92 KB, text/plain)
2022-01-11 14:08 UTC, Toralf Förster
Details
environment (environment,68.31 KB, text/plain)
2022-01-11 14:08 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,11.58 KB, application/x-bzip)
2022-01-11 14:08 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,10.28 KB, application/x-bzip)
2022-01-11 14:08 UTC, Toralf Förster
Details
sys-fs:erofs-utils-1.4:20220111-114916.log (sys-fs:erofs-utils-1.4:20220111-114916.log,23.96 KB, text/plain)
2022-01-11 14:08 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,22.70 KB, application/x-bzip)
2022-01-11 14:08 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-01-11 14:08:27 UTC
Making all in fsck
make[2]: Entering directory '/var/tmp/portage/sys-fs/erofs-utils-1.4/work/erofs-utils-1.4/fsck'
x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I..  -I/usr/include/uuid  -DNDEBUG -Wall -Werror -I../include -pipe -march=native -fno-diagnostics-color -O2 -c -o fsck_erofs-main.o `test -f 'main.c' || echo './'`main.c
main.c: In function 'erofs_check_inode':
main.c:509:29: error: 'S_IFMT' undeclared (first use in this function)
  509 |         if ((inode.i_mode & S_IFMT) != S_IFDIR)
      |                             ^~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl_hardened-j4-20220111-092048

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-11.2.1 *
Python 3.9.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.57.0 *
php cli:

  HEAD of ::gentoo
commit b950f41a33a8081fa5274f864fbe3cb9498b63ff
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Jan 11 10:06:54 2022 +0000

    2022-01-11 10:06:51 UTC

emerge -qpvO sys-fs/erofs-utils
[ebuild  N    ] sys-fs/erofs-utils-1.4  USE="lz4 uuid -fuse (-selinux)"
Comment 1 Toralf Förster gentoo-dev 2022-01-11 14:08:28 UTC
Created attachment 761880 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-01-11 14:08:29 UTC
Created attachment 761881 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-01-11 14:08:30 UTC
Created attachment 761882 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-01-11 14:08:31 UTC
Created attachment 761883 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-01-11 14:08:33 UTC
Created attachment 761884 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-01-11 14:08:34 UTC
Created attachment 761885 [details]
sys-fs:erofs-utils-1.4:20220111-114916.log
Comment 7 Toralf Förster gentoo-dev 2022-01-11 14:08:35 UTC
Created attachment 761886 [details]
temp.tar.bz2
Comment 8 WANG Xuerui gentoo-dev 2022-01-17 11:35:59 UTC
Hmm, build failure under musl; I'll investigate later in the week and notify the upstream for now. I believe they're willing to fix this.
Comment 9 WANG Xuerui gentoo-dev 2022-01-17 12:18:42 UTC
Seems the file is just missing a #include <sys/stat.h>.

I'll try to reproduce and add a patch for this; however my musl chroot is broken for a while right now, so I may not be very quick.
Comment 10 Gao Xiang 2022-01-18 04:53:50 UTC
Hi,

I'm afraid these are known issues (already reported by others) which could be merged together:

since I cannot post URL within 24hours, so just commit ids here (all are in -dev branch):
17eb5c417bd56be4b2f7627c2d6879fbad6a86d6
1ca453ee89894b1669ac78d7f216bda172783e8d

Please consider the fixes above.

Thanks,
Gao Xiang
Comment 11 Larry the Git Cow gentoo-dev 2022-01-18 07:58:51 UTC
The bug has been closed via the following commit(s):

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

commit 8bb15cf3b80f086cf3b4a9133e47abe9d60d6624
Author:     WANG Xuerui <git@xen0n.name>
AuthorDate: 2022-01-18 06:54:33 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2022-01-18 07:58:41 +0000

    sys-fs/erofs-utils: fix build on musl
    
    Closes: https://bugs.gentoo.org/831015
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: WANG Xuerui <git@xen0n.name>
    Closes: https://github.com/gentoo/gentoo/pull/23850
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 sys-fs/erofs-utils/erofs-utils-1.4.ebuild          |  1 +
 .../files/1.4-fsck-add-missing-include.patch       | 31 ++++++++++++++++++++++
 2 files changed, 32 insertions(+)