RE: 1 of 1,851 Trouble compiling aarch64 cross builds of gcc5.4 and7.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



So, I guess I’m confused on exactly what gcc is doing when it builds for cross compilation.  So, my goal is simply to build a compiler I can run on my x86_64 box to build binaries for am armv8 processor in 64bit mode.  It seems I have wrongly assumed that GCC hosted all of the code it needed to boot strap and build itself. A tall task I realize. Now, I’m going to admit that I’m super confused by the package names for the debian and what started me on the crusade of building the two cross compilers Is that apt-get is telling me that the available package for gcc5.4-armhf conflicts with gcc-multilib and so instead of investigating that I just preferred to build my own compilers and install them in my home dir. 

I was using this guide http://preshing.com/20141119/how-to-build-a-gcc-cross-compiler/ and I know realize I skipped directly to step 3. Because, I was only looking for the correct configure flags for GCC.  So based on your feedback I might need to take a step back and just follow through steps 1 and 2. If that doesn’t work I’ll pull the packages you suggest and add standup a sysroot for the target.  I agree with your hammer analogy and I’ll gladly grab the foundational parts instead of building them myself. 

Sent from Mail for Windows 10

From: Kai Ruottu
Sent: Saturday, April 21, 2018 4:48 AM
To: Ignitus Boyone; gcc-help@xxxxxxxxxxx
Subject: Re: 1 of 1,851 Trouble compiling aarch64 cross builds of gcc5.4 and7.2



Kai Ruottu kirjoitti 21.4.2018 klo 10.43:
> Ignitus Boyone wrote 20.4.2018 :
>> I'm currently trying to build aarch64 cross compilers on a Dell Ubuntu
>> machine. I'm building from the official release tar balls for the
>> respective branches.
>>
>
> Generally I don't know what on earth the 'aarch64-linux' means but my 
> first guess : "Linux
> for 64-bit ARM" can be that. When made for the "Arch Linux" distro :
>
> https://archlinuxarm.org/platforms/armv8/generic
>
> I would assume this distro providing the needed "standard C library 
> for 'arm64-linux-gnu'.

The URL for a prebuilt 'aarch64-linux-gnu' glibc-2.27 is :
https://www.archlinux.org/packages/community/any/aarch64-linux-gnu-glibc/download/






[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux