KitsuneIDK
Posts: 1
Joined: Sat Dec 14, 2019 2:19 pm

Cross compiling from arm to amd64

Sat Dec 14, 2019 2:25 pm

I need compile using Raspberry Pi to a amd64 using gcc, how I make this?

Obs: my system is Ubuntu Eoan Aarch64 with LXQt


Heater
Posts: 14766
Joined: Tue Jul 17, 2012 3:02 pm

Re: Cross compiling from arm to amd64

Sat Dec 14, 2019 10:39 pm

That is possibly the most bonkers, nuts idea I have ever heard.

Why would one ever want to build x86-64 Linux kernels on a ARM?
Memory in C++ is a leaky abstraction .

dustnbone
Posts: 201
Joined: Tue Nov 05, 2019 2:49 am

Re: Cross compiling from arm to amd64

Sat Dec 14, 2019 10:42 pm

This is totally something I would do because I can.

Heater
Posts: 14766
Joined: Tue Jul 17, 2012 3:02 pm

Re: Cross compiling from arm to amd64

Sun Dec 15, 2019 6:52 am

Fair enough.
Memory in C++ is a leaky abstraction .

User avatar
Gavinmc42
Posts: 4341
Joined: Wed Aug 28, 2013 3:31 am

Re: Cross compiling from arm to amd64

Sun Dec 15, 2019 7:36 am

That is possibly the most bonkers, nuts idea I have ever heard.

Why would one ever want to build x86-64 Linux kernels on a ARM?
Why cross compile to aarch64 on x86_64?
Or cc to RISC-V from aarch64?
Or aarch64 to armv6hf.

Because we can?

I have used Buildroot to do this for arm6hf, arm7, arm8 and risc-v why not x86?
Any cute x86 SBC's worth trying it on?
Intel SBCs? :lol:
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Heater
Posts: 14766
Joined: Tue Jul 17, 2012 3:02 pm

Re: Cross compiling from arm to amd64

Sun Dec 15, 2019 9:20 am

Gavinmc42,
Intel SBCs? :lol:
Where is the joke?

x86 SBC have been widely used in industry since 1987. https://en.wikipedia.org/wiki/PC/104

There still loads of them being shipped : https://www.advantech.com/products/pc-1 ... b_1-2jkltu
http://connecttech.com/product-category ... m-factors/

Yes, I have used Buildroot to build Linux images for a PC 104 based project. A long time ago...
Memory in C++ is a leaky abstraction .

User avatar
Gavinmc42
Posts: 4341
Joined: Wed Aug 28, 2013 3:31 am

Re: Cross compiling from arm to amd64

Mon Dec 16, 2019 1:03 am

Intel SBCs? :lol:
Where is the joke?
Depends if you have been watching Intel attempts at SBC's/SoC's.
I'm not sure if they are serious or just messing about having fun.

I've used PC104 and Advantech boards too.
Had thought of making a PC104 adapter/motherboard board for the Pi's.
But my list is Pi projects is very long now.

Compile a PC bios on Pi's?
Coreboot, OpenBIOS, OpenBOOT.
Got a collection of PC motherboards from 486 upwards.
But so old, no parts and schematics.
Cam we design/make a Retro PC and code it with Pi's?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Heater
Posts: 14766
Joined: Tue Jul 17, 2012 3:02 pm

Re: Cross compiling from arm to amd64

Mon Dec 16, 2019 2:13 am

Gavinmc42,
Depends if you have been watching Intel attempts at SBC's/SoC's.
Not really. I would not go Intel when there are so many ARM and other SBCs about.
Had thought of making a PC104 adapter/motherboard board for the Pi's.
Apart from that fact that a PC104 sized board with a Pi on it might fit in the space I don't think there is much point. PC104 is all about the Intel peripheral buses which would not be there.
Can we design/make a Retro PC and code it with Pi's?
How retro do you have in mind?

The original IBM PC was hardly more than the reference design for the 8088 that Intel published in it's manuals. We can get the BIOS source from the original IBM PC manuals.

Horrible machine anyway, I would not want to be building one of those.
Memory in C++ is a leaky abstraction .

User avatar
Gavinmc42
Posts: 4341
Joined: Wed Aug 28, 2013 3:31 am

Re: Cross compiling from arm to amd64

Mon Dec 16, 2019 2:29 am

Horrible machine anyway, I would not want to be building one of those.
I preferred the 12MHz AMD 286 in my first PC ;)
Any x86 chips still around and usable for DIY PCBs?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

LdB
Posts: 1480
Joined: Wed Dec 07, 2016 2:29 pm

Re: Cross compiling from arm to amd64

Mon Dec 16, 2019 2:36 pm

The couple of Intel Atom x5-Z8300 competitors to the Pi4 are not bad. I had to use one because I needed windows 10 on a system and was surprised how much they had caught up. I still prefer the Pi because of the user base .. yeah you scum :-)

Return to “C/C++”