#x86_64-gentoo-linux-musl-gcc -pipe -march=native -fno-diagnostics-color -O2 -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DGEN_DEP -msse4.2 -maes -mavx2 -mvaes -mavx2 -mrdrnd -MM ./*.c >.dep x86_64-gentoo-linux-musl-gcc -pipe -march=native -fno-diagnostics-color -O2 -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DGEN_DEP -D__AES__ -D__SSE4_1__ -D__SSSE3__ -D__SSE3__ -D__SSE2__ -D__SSE__ -D__MMX__ -DNO_WARN_X86_INTRINSICS -I . -MM ./*.c >.dep In file included from ./find_nonzero.h:13, from ./dd_rescue.c:118: ./ffs.h:61:3: error: #error Need to define __WORDSIZE 61 | # error Need to define __WORDSIZE | ^~~~~ ./dd_rescue.c:205:3: error: #error __WORDSIZE undefined 205 | # error __WORDSIZE undefined ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0_musl_hardened-j4-20211215-000030 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-gentoo-linux-musl-11.2.0 * 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 Rust versions: [1] rust-1.57.0 * The following VMs are available for generation-2: Available Java Virtual Machines: (none found) php cli: HEAD of ::gentoo commit 11b96f444b597bfed612bfdfcca730a609061c26 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Wed Dec 15 17:06:53 2021 +0000 2021-12-15 17:06:50 UTC emerge -qpvO sys-fs/dd-rescue [ebuild N ] sys-fs/dd-rescue-1.99.11 USE="xattr -lzo -static" CPU_FLAGS_X86="avx2 sse4_2"
Created attachment 759188 [details] emerge-info.txt
Created attachment 759189 [details] emerge-history.txt
Created attachment 759190 [details] environment
Created attachment 759191 [details] etc.portage.tar.bz2
Created attachment 759192 [details] logs.tar.bz2
Created attachment 759193 [details] sys-fs:dd-rescue-1.99.11:20211215-172057.log
Created attachment 759194 [details] temp.tar.bz2
I have a problem too, but not exactly the same one, mine is that it doesn't find git repository : ``` * Package: sys-fs/dd-rescue-1.99.11 * Repository: gentoo * Maintainer: base-system@gentoo.org * USE: abi_x86_64 amd64 cpu_flags_x86_avx2 cpu_flags_x86_sse4_2 elibc_glibc kernel_linux userland_GNU xattr * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox * Applying dd-rescue-1.99.11-musl-r2.patch ... [ ok ] * Running eautoreconf in '/var/tmp/portage/sys-fs/dd-rescue-1.99.11/work/dd_rescue-1.99.11' ... * Running 'aclocal --system-acdir=/var/tmp/portage/sys-fs/dd-rescue-1.99.11/temp/aclocal' ... [ ok ] * Running 'autoconf --force' ... [ ok ] * Running 'autoheader' ... [ ok ] * Running elibtoolize in: dd_rescue-1.99.11/ configure: loading site script /usr/share/config.site checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes checking for x86_64-pc-linux-gnu-gcc option to enable C11 features... none needed checking for an ANSI C-conforming const... yes checking for inline... inline checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for fallocate.h... no checking for dlfcn.h... yes checking for unistd.h... (cached) yes checking for sys/xattr.h... yes checking for attr/xattr.h... (cached) yes checking for sys/acl.h... yes checking for sys/ioctl.h... yes checking for sys/reg.h... yes checking for endian.h... yes checking for linux/fs.h... yes checking for linux/fiemap.h... yes checking for stdint.h... (cached) yes checking for lzo/lzo1x.h... (cached) no checking for openssl/evp.h... (cached) no checking for linux/random.h... yes checking for sys/random.h... yes checking for malloc.h... yes checking for sched.h... yes checking for sys/statvfs.h... yes checking for sys/resource.h... yes checking for ffs... yes checking for ffsl... yes checking for basename... yes checking for fallocate64... yes checking for splice... yes checking for getopt_long... yes checking for open64... yes checking for pread... yes checking for pread64... yes checking for lseek64... yes checking for stat64... yes checking for posix_fadvise... yes checking for posix_fadvise64... yes checking for __builtin_prefetch... no checking for htobe64... no checking for feof_unlocked... yes checking for getline... yes checking for getentropy... yes checking for getrandom... yes checking for posix_memalign... yes checking for valloc... yes checking for sched_yield... yes checking for fstatvfs... yes checking for __builtin_cpu_supports... no checking for getrlimit... yes checking for aligned_alloc... yes checking for dlsym in -ldl... yes checking for linux_fallocate64 in -lfallocate... no checking for lzo1x_1_compress in -llzo2... (cached) no checking for EVP_aes_192_ctr in -lcrypto... (cached) no checking if x86_64-pc-linux-gnu-gcc supports -msse4.2... yes checking if x86_64-pc-linux-gnu-gcc supports -mavx... yes checking if x86_64-pc-linux-gnu-gcc supports -mavx2... yes checking if x86_64-pc-linux-gnu-gcc supports -mrdrnd... yes checking if x86_64-pc-linux-gnu-gcc supports -maes... yes checking whether asm rep nop is supported... yes checking whether asm lfence is supported... yes configure: creating ./config.status config.status: creating config.h #x86_64-pc-linux-gnu-gcc -march=haswell -O2 -pipe -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DGEN_DEP -msse4.2 -maes -mavx2 -mvaes -mavx2 -mrdrnd -MM ./*.c >.dep x86_64-pc-linux-gnu-gcc -march=haswell -O2 -pipe -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DGEN_DEP -D__AES__ -D__SSE4_1__ -D__SSSE3__ -D__SSE3__ -D__SSE2__ -D__SSE__ -D__MMX__ -DNO_WARN_X86_INTRINSICS -I . -MM ./*.c >.dep sed 's/\.o:/\.po:/' <.dep >.dep2 cat .dep2 >> .dep rm .dep2 fatal: not a git repository (or any of the parent directories): .git x86_64-pc-linux-gnu-gcc -march=haswell -O2 -pipe -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DVERSION=\"1.99.11\" -D__COMPILER__="\"x86_64-pc-linux-gnu-gcc (Gentoo 11.3.0 p4) 11.3.0\"" -DID=\"DD_RESCUE_1_99_11-7-gc263a59\" -fPIE -c random.c x86_64-pc-linux-gnu-gcc -march=haswell -O2 -pipe -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIE -c frandom.c x86_64-pc-linux-gnu-gcc -march=haswell -O2 -pipe -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIE -c fmt_no.c x86_64-pc-linux-gnu-gcc -march=haswell -O2 -pipe -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIE -c find_nonzero.c fatal: not a git repository (or any of the parent directories): .git x86_64-pc-linux-gnu-gcc -march=haswell -O2 -pipe -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DVERSION=\"1.99.11\" -D__COMPILER__="\"x86_64-pc-linux-gnu-gcc (Gentoo 11.3.0 p4) 11.3.0\"" -DID=\"DD_RESCUE_1_99_11-7-gc263a59\" -fPIE -c fstrim.c x86_64-pc-linux-gnu-gcc -march=haswell -O2 -pipe -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIE -msse2 -c find_nonzero_sse2.c x86_64-pc-linux-gnu-gcc -march=haswell -O2 -pipe -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIE -msse4.2 -c ffs_sse42.c x86_64-pc-linux-gnu-gcc -march=haswell -O2 -pipe -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIE -mrdrnd -maes -mavx2 -mvaes -c rdrand.c x86_64-pc-linux-gnu-gcc -march=haswell -O2 -pipe -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIE -mavx2 -c find_nonzero_avx.c fatal: not a git repository (or any of the parent directories): .git x86_64-pc-linux-gnu-gcc -march=haswell -O2 -pipe -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DVERSION=\"1.99.11\" -D__COMPILER__="\"x86_64-pc-linux-gnu-gcc (Gentoo 11.3.0 p4) 11.3.0\"" -DID=\"DD_RESCUE_1_99_11-7-gc263a59\" -fPIC -o libddr_hash.po -c libddr_hash.c x86_64-pc-linux-gnu-gcc -march=haswell -O2 -pipe -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIC -o md5.po -c md5.c x86_64-pc-linux-gnu-gcc -march=haswell -O2 -pipe -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIC -o sha256.po -c sha256.c x86_64-pc-linux-gnu-gcc -march=haswell -O2 -pipe -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIC -o sha512.po -c sha512.c x86_64-pc-linux-gnu-gcc -march=haswell -O2 -pipe -DHAVE_CONFIG_H -I . -DHAVE_AESNI -fPIC -o sha1.po -c sha1.c fatal: not a git repository (or any of the parent directories): .git x86_64-pc-linux-gnu-gcc -march=haswell -O2 -pipe -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DVERSION=\"1.99.11\" -D__COMPILER__="\"x86_64-pc-linux-gnu-gcc (Gentoo 11.3.0 p4) 11.3.0\"" -DID=\"DD_RESCUE_1_99_11-7-gc263a59\" -fPIC -o pbkdf2.po -c pbkdf2.c fatal: not a git repository (or any of the parent directories): .git [...] ```
(In reply to Anard from comment #8) > I have a problem too, but not exactly the same one, mine is that it doesn't > find git repository : > Please include the full build.log in a new bug. Often, errors like that aren't fatal to the actual emerge process.
tinderbox_musl has reproduced this issue with version 1.99.12 - Updating summary.
tinderbox_musl has reproduced this issue with version 1.99.13 - Updating summary.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3669e5495eeda680246ea087408dcf85e74b9f11 commit 3669e5495eeda680246ea087408dcf85e74b9f11 Author: brahmajit das <listout@protonmail.com> AuthorDate: 2022-09-15 07:01:43 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-07-23 01:51:49 +0000 sys-fs/dd-rescue: Fix building for musl. The original patch was written by gentoo developer Thomas Deutschmann <whissi@gentoo.org>, but the patch needed to be rebased. I've added in my secmem patch inside it (another musl fix for dd-rescue). Closes: https://bugs.gentoo.org/829285 Signed-off-by: brahmajit das <listout@protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/26455 Signed-off-by: Sam James <sam@gentoo.org> sys-fs/dd-rescue/dd-rescue-1.99.13-r1.ebuild | 107 +++++++++++++++ sys-fs/dd-rescue/dd-rescue-1.99.13.ebuild | 6 +- .../dd-rescue/files/dd-rescue-1.99.13-musl.patch | 145 +++++++++++++++++++++ 3 files changed, 257 insertions(+), 1 deletion(-)