I have installed ubuntu arm64 on Raspberry Pi, and now I want to cross compile x86_64 programs but there is no cross compiler.
I tried to compile it myself with the steps:
$ sudo apt install crossbuild-essential-amd64
$ cd /usr/bin
$ sudo ln -s x86_64-linux-gnu-as x86_64-linux-as
$ cd ~/Downloads/fpc-3.2.2
$ make clean crossall OVERRIDEVERSIONCHECK=1 TARGET_OS=linux CPU_TARGET=x86_64
and the error is:
system.pp(490,1) Fatal: Internal error 2015030501
Fatal: Compilation aborted
I attached the full compile log for help.
How can I finish the compile?