Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913514 - M2 Mac prefix bootstrap stage3 fails compilation of perl
Summary: M2 Mac prefix bootstrap stage3 fails compilation of perl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: ARM64 OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-02 15:09 UTC by cono
Modified: 2023-09-03 13:32 UTC (History)
1 user (show)

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


Attachments
perl5.38 build.log (build.log,178.19 KB, application/octet-stream)
2023-09-02 15:12 UTC, cono
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cono 2023-09-02 15:09:07 UTC
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
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-02 15:09:33 UTC
Please include the full bootstrap log.
Comment 2 cono 2023-09-02 15:12:00 UTC
Created attachment 869236 [details]
perl5.38 build.log
Comment 3 Yuan Liao (Leo3418) 2023-09-02 18:09:52 UTC
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.
Comment 4 cono 2023-09-02 19:12:44 UTC
Tried to re-emeger gdbm, but when I try to re-emerge perl afterwards I still get same issue.
Comment 5 cono 2023-09-03 13:30:04 UTC
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.
Comment 6 cono 2023-09-03 13:31:59 UTC
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.