Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953142 - darwin arm64 bootstrap failed on libffi
Summary: darwin arm64 bootstrap failed on libffi
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-05 08:52 UTC by mio-19
Modified: 2025-04-05 11:29 UTC (History)
1 user (show)

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


Attachments
grep libffi /opt/gentoo/stage1.log (file_953142.txt,21.81 KB, text/plain)
2025-04-05 08:52 UTC, mio-19
Details
grep -A5 -B5 'make.*libffi' /opt/gentoo/stage1.log (file_953142.txt,27.04 KB, text/plain)
2025-04-05 08:53 UTC, mio-19
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mio-19 2025-04-05 08:52:12 UTC
Created attachment 923586 [details]
grep libffi /opt/gentoo/stage1.log

ldmfd sp, {sp, pc}
              ^
src/arm/sysv.S:272:15: error: invalid operand
 ldmfd sp, {sp, pc}
              ^
src/arm/sysv.S:274:6: error: invalid operand for instruction
 ldr r0, [sp]
     ^
src/arm/sysv.S:277:6: error: invalid operand for instruction
 ldr r0, [sp]
     ^
src/arm/sysv.S:278:6: error: invalid operand for instruction
 ldr r1, [sp, #4]
     ^
src/arm/sysv.S:283:2: error: unrecognized instruction mnemonic
 ldfs f0, [sp]
 ^
src/arm/sysv.S:286:2: error: unrecognized instruction mnemonic
 ldfd f0, [sp]
 ^
src/arm/sysv.S:289:2: error: unrecognized instruction mnemonic
 ldfd f0, [sp]
 ^
src/arm/sysv.S:294:2: error: unexpected token at start of statement
 @ .fnend
 ^
src/arm/sysv.S:295:9: error: unknown directive
        .size _ffi_closure_SYSV,.ffi_closure_SYSV_end-_ffi_closure_SYSV
        ^
make[2]: *** [Makefile:904: src/arm/sysv.lo] Error 1
make[2]: Leaving directory '/opt/gentoo/var/tmp/libffi-3.0.8/libffi-3.0.8'
make[1]: *** [Makefile:1141: all-recursive] Error 1
make[1]: Leaving directory '/opt/gentoo/var/tmp/libffi-3.0.8/libffi-3.0.8'
make: *** [Makefile:430: all] Error 2

I tried running
  bootstrap_stage1_log
but that failed :(  I have no clue, really.  Please find friendly folks
in #gentoo-prefix on irc.gentoo.org, gentoo-alt@lists.gentoo.org mailing list,
or file a bug at bugs.gentoo.org under Gentoo/Alt, Prefix Support.
Sorry that I have failed you master.  I shall now return to my humble cave.
You can find a log of what happened in /opt/gentoo/stage1.log

  CHOST:     arm64-apple-darwin24
  IDENT:     arm64-apple-darwin24

I am on macOS 15.4 (24E248)
Comment 1 mio-19 2025-04-05 08:53:41 UTC
Created attachment 923587 [details]
grep -A5 -B5 'make.*libffi' /opt/gentoo/stage1.log
Comment 2 Larry the Git Cow gentoo-dev 2025-04-05 11:28:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=3333ff591e898ac200c6de442d8ddea913ac9ebb

commit 3333ff591e898ac200c6de442d8ddea913ac9ebb
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2025-04-05 11:23:56 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2025-04-05 11:23:56 +0000

    scripts/bootstrap-prefix: use libffi-3.4.7 for macOS 15.4
    
    Closes: https://bugs.gentoo.org/953142
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 scripts/bootstrap-prefix.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 3 Fabian Groffen gentoo-dev 2025-04-05 11:29:51 UTC
you can make the above change in your local copy, it gets me into stage2