Cross compiler packages

Make a PKGBUILD? Submit it here for user review and possible placement into the repository.

Cross compiler packages

Postby solskogen » Thu Feb 11, 2021 7:45 pm

I've created and uploaded a hand full of PKGBUILDs to AUR to use on Arch Linux for cross compiling to Arch Linux ARM. My motivation was to use a fast x86_64 machine as a distcc worker for Pi4/Pi400. You will still need to create the symlinks in /usr/lib/distcc manually.

$this->bbcode_second_pass_code('', '
ln -s /usr/bin/distcc /usr/lib/distcc/aarch64-unknown-linux-gnu-g++
ln -s /usr/bin/distcc /usr/lib/distcc/aarch64-unknown-linux-gnu-gcc
ln -s /usr/bin/distcc /usr/lib/distcc/armv7l-unknown-linux-gnueabihf-g++
ln -s /usr/bin/distcc /usr/lib/distcc/armv7l-unknown-linux-gnueabihf-gcc
')

Comments are welcome :)

https://aur.archlinux.org/packages/armv7l-gcc/
https://aur.archlinux.org/packages/armv ... bootstrap/
https://aur.archlinux.org/packages/armv ... i-headers/
https://aur.archlinux.org/packages/armv7l-binutils/
https://aur.archlinux.org/packages/armv7l-glibc/

https://aur.archlinux.org/packages/aarch64-gcc/
https://aur.archlinux.org/packages/aarc ... bootstrap/
https://aur.archlinux.org/packages/aarc ... i-headers/
https://aur.archlinux.org/packages/aarch64-binutils/
https://aur.archlinux.org/packages/aarch64-glibc/
solskogen
 
Posts: 161
Joined: Mon Nov 18, 2013 10:41 am

Re: Cross compiler packages

Postby graysky » Thu Feb 11, 2021 9:11 pm

If you want to use an x86_64 machine as a distcc volunteer, the recommended method is to put Arch ARM's official toolchain on your x86_64 box. The distcc host is your Arch ARM box (all flavors supported). Recommend you install these with distccd-arch-arm available in the AUR.
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Cross compiler packages

Postby solskogen » Fri Feb 12, 2021 7:25 am

My thought behind this was to replace the existing aarch64/armv7 cross packages in Arch Linux, and use them instead of the official ones that uses the cross-tool. I have now tested with your PKGBUILD for the raspi4 kernel and it compiles and works with and without distcc :)
solskogen
 
Posts: 161
Joined: Mon Nov 18, 2013 10:41 am

Re: Cross compiler packages

Postby graysky » Fri Feb 12, 2021 9:52 am

Can you post the PKGBUILD after you modified it to use the toolchain?
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Cross compiler packages

Postby solskogen » Fri Feb 12, 2021 12:49 pm

Nothing was changed :)
solskogen
 
Posts: 161
Joined: Mon Nov 18, 2013 10:41 am


Return to User-Submitted Packages

Who is online

Users browsing this forum: No registered users and 8 guests