Created attachment 865796 [details] build.log app-arch/libarchive-3.7.0 failes to emerge on musl/llvm ``` /bin/sh ./libtool --tag=CC --mode=compile clang -DHAVE_CONFIG_H -I. -I/var/tmp/portage/app-arch/libarchive-3.7.0/work/libarchive-3.7.0 -I/usr/include/libxml2 -O2 -pipe -march=native -Wall -Wformat -Wformat-security -ffunction-sections -fdata-sections -fvisibility=hidden -D__LIBARCHIVE_ENABLE_VISIBILITY -c -o libarchive/archive_read_extract.lo /var/tmp/portage/app-arch/libarchive-3.7.0/work/libarchive-3.7.0/libarchive/archive_read_extract.c /var/tmp/portage/app-arch/libarchive-3.7.0/work/libarchive-3.7.0/libarchive/archive_read_disk_posix.c:1869:41: error: no member named 'f_namelen' in 'struct statvfs'; did you mean 'f_namemax'? t->current_filesystem->name_max = svfs.f_namelen; ^~~~~~~~~ f_namemax /usr/include/sys/statvfs.h:25:24: note: 'f_namemax' declared here unsigned long f_flag, f_namemax; ^ 1 error generated. ```
Created attachment 865797 [details] emerge --info
This is a musl issue as I've just hit the same with GCC.
Try https://github.com/libarchive/libarchive/commit/bd074c2531e867078788fe8539376c31119e4e55
(I didn't even get the repo open before you had the fix.) Confirmed fix and PR inbound to ::gentoo.
Still does not compile. But hits another error
Fixed with https://github.com/libarchive/libarchive/commit/852611e3d9475cfe7ef9121da03a29272377d39c
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=436a86c6ba463931212876d2ed96d067f20d378e commit 436a86c6ba463931212876d2ed96d067f20d378e Author: Ian Jordan <immoloism@gmail.com> AuthorDate: 2023-07-19 15:26:58 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2023-07-19 18:30:57 +0000 app-arch/libarchive: fix build on musl Cherrypicked patch from master repo to fix compiling 3.7.0 under musl. Tested with both GCC and LLVM. Also added BDEP for sys-libs/queue-standalone for this version. Closes: https://bugs.gentoo.org/910552 Signed-off-by: Ian Jordan <immoloism@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/31959 Signed-off-by: Michał Górny <mgorny@gentoo.org> .../files/libarchive-3.7.0-f_namemax-fix.patch | 19 +++++++++++++++++++ app-arch/libarchive/libarchive-3.7.0.ebuild | 6 ++++++ 2 files changed, 25 insertions(+)