bootstrap stage3 fails with perl5.38.0 compilation with the following error: ld: library not found for -lgdbm collect2: error: ld returned 1 exit status make[1]: *** [Makefile:479: ../../lib/auto/GDBM_File/GDBM_File.bundle] Error 1 make[1]: Leaving directory '/Users/cono/gentoo/var/tmp/portage/dev-lang/perl-5.38.0-r1/work/perl-5.38.0/ext/GDBM_File' Unsuccessful make(ext/GDBM_File): code=512 at make_ext.pl line 584. make: *** [GNUmakefile:607: lib/auto/GDBM_File/GDBM_File.bundle] Error 25 make: *** Waiting for unfinished jobs.... Reproducible: Always
Please include the full bootstrap log.
Created attachment 869236 [details] perl5.38 build.log
Running this command allows dev-lang/perl to be built: ${EPREFIX}/tmp/usr/bin/emerge --ask --oneshot sys-libs/gdbm Though after that, other packages' build failure would still prevent the bootstrap process from completing as of now.
Tried to re-emeger gdbm, but when I try to re-emerge perl afterwards I still get same issue.
I found what was the issue, as stage3 haven't completed final @world rebuild my gcc was pointing to wrong directories: $ gcc -print-search-dirs install: /Users/cono/gentoo/tmp/usr/lib/gcc/arm64-apple-darwin22/12.2.0/ programs: =/Users/cono/gentoo/tmp/usr/libexec/gcc/arm64-apple-darwin22/12.2.0/:/Users/cono/gentoo/tmp/usr/libexec/gcc/arm64-apple-darwin22/12.2.0/:/Users/cono/gentoo/tmp/usr/libexec/gcc/arm64-apple-darwin22/:/Users/cono/gentoo/tmp/usr/lib/gcc/arm64-apple-darwin22/12.2.0/:/Users/cono/gentoo/tmp/usr/lib/gcc/arm64-apple-darwin22/:/Users/cono/gentoo/tmp/usr/lib/gcc/arm64-apple-darwin22/12.2.0/../../../../arm64-apple-darwin22/bin/arm64-apple-darwin22/12.2.0/:/Users/cono/gentoo/tmp/usr/lib/gcc/arm64-apple-darwin22/12.2.0/../../../../arm64-apple-darwin22/bin/ libraries: =/Users/cono/gentoo/tmp/usr/lib/gcc/arm64-apple-darwin22/12.2.0/:/Users/cono/gentoo/tmp/usr/lib/gcc/arm64-apple-darwin22/12.2.0/../../../../arm64-apple-darwin22/lib/arm64-apple-darwin22/12.2.0/:/Users/cono/gentoo/tmp/usr/lib/gcc/arm64-apple-darwin22/12.2.0/../../../../arm64-apple-darwin22/lib/:/Users/cono/gentoo/tmp/usr/lib/gcc/arm64-apple-darwin22/12.2.0/../../../arm64-apple-darwin22/12.2.0/:/Users/cono/gentoo/tmp/usr/lib/gcc/arm64-apple-darwin22/12.2.0/../../../ Re-emerged gcc, now everything is fine, this issue can be closed. Thanks.