I'm trying to build ppcrossx64 on my macOS darwin Tahoe apple silicon machine with a ppca64 built from fpc trunk and Xcode 26.6 and no Rosetta running.

Should I expect that to succeed?

I can get ppcx64 if I let Rosetta build it. And using ppcx64 inside Rosetta I can build x86_64 binaries on my macOS machine. However, I would like to be able to actually cross compile x86_64 on apple silicon without Rosetta involvement.

I am getting the following errors when pp.pas is being compiled:

/Users/djenkins/Source/BCTrunk/Lazarus/fpc/compiler/ppc -Ur -Xs -O2 -n -Fux86_64 -Fusystems -Fu/Users/djenkins/Source/BCTrunk/Lazarus/fpc/rtl/units/aarch64-darwin -Fix86_64 -FEx86_64/bin/aarch64-darwin -FUx86_64/units/aarch64-darwin -XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -dRELEASE -dBC_FPC_BUILD -n @/Users/djenkins/Source/BCTrunk/Lazarus/fpc/../fpc.cfg -dlegacysocket -dLIBC_OLDERRNO -dx86_64 -Fux86 -Fix86 -Sew -o/Users/djenkins/Source/BCTrunk/Lazarus/fpc/compiler/ppcrossx64 pp.pas
<stdin>:5227:9: error: expected compatible register or logical immediate
        mov     x1,w23
                   ^
<stdin>:5241:9: error: expected compatible register or logical immediate
        mov     x1,w23


I did some searching in the gitlab issues and didn't see anything related.

Happy to create a bug report in gitlab if needed.

Thanks
David Jenkins
[email protected]

_______________________________________________
fpc-devel maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to