Forum > Unix

How to cross compile x86_64 program under ubuntu Arm64?

(1/1)

rarnu:
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:


--- Code: Text  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---$ 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:


--- Code: Text  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---system.pp(490,1) Fatal: Internal error 2015030501Fatal: Compilation aborted 
I attached the full compile log for help.

How can I finish the compile?

PascalDragon:

--- Quote from: rarnu on December 21, 2021, 04:45:51 am ---I have installed ubuntu arm64 on Raspberry Pi, and now I want to cross compile x86_64 programs but there is no cross compiler.
--- End quote ---

It is currently not possible to compile from a non-x86 CPU to a x86 CPU, because the later requires support for the 80-bit floating point type (aka Extended) which is not available for most others.

Navigation

[0] Message Index

Go to full version