Created attachment 603344 [details] compressed build log how to reproduce: grab a uclibc amd64 stage, chroot into it and bootstrap a cross compiler with crossdev via: crossdev -S armv7a-unknown-linux-uclibceabihf --libc 1.0.32 it's not yet possible to bootstrap a uclibc based cross compiler cross libc wise, so to grab an extra stage3 is a must. result: the build is going to fail when crossdev tries to bootstrap into uclibc-ng with: make: Entering directory '/var/tmp/portage/cross-armv7a-unknown-linux-uclibceabihf/uclibc-ng-1.0.32/work/uClibc-ng-1.0.32/utils' HOSTCC utils/getconf.host HOSTCC utils/ldconfig.host HOSTCC utils/ldd.host ../utils/ldd.c: In function 'elf_find_dynamic': ../utils/ldd.c:238:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 238 | return (void *)byteswap_to_host(dynp->d_un.d_val); | ^ ../utils/getconf.c: In function 'usage': ../utils/getconf.c:1065:5: error: '__progname' undeclared (first use in this function) 1065 | __progname); | ^~~~~~~~~~ ../utils/getconf.c:1065:5: note: each undeclared identifier is reported only once for each function it appears in make: *** [Makefile.in:122: ../utils/getconf.host] Error 1 make: *** Waiting for unfinished jobs....
Created attachment 603346 [details] output from emerge --info
Created attachment 603348 [details, diff] this patch fixes the the breakage I gave doing what the error message demands a try, and to my surprise it makes cross-armv7a-unknown-linux-uclibceabihf/uclibc-ng compile and bootstrap the whole toolchain till the end.