Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade raspberrypi's cross compile tool to gcc 8.3.0? #102

Open
jiapei100 opened this issue Sep 6, 2019 · 13 comments
Open

Upgrade raspberrypi's cross compile tool to gcc 8.3.0? #102

jiapei100 opened this issue Sep 6, 2019 · 13 comments

Comments

@jiapei100
Copy link

Any plan to upgrade raspberrypi's cross compile tool to gcc 8.3.0? Some times, it's seriously slow to compile the source code on raspberry pi directly...

@carlonluca
Copy link

If you want I uploaded mine here. It should be 100% compatible with Buster. I have not experienced problems with it yet.

@ali1234
Copy link
Contributor

ali1234 commented Oct 2, 2019

@carlonluca unfortunately your toolchain is not compatible with buster: your binutils is not patched for multiarch. Your gcc is, so you get linker errors like this:

/opt/rpi/rpi-gcc-8.3.0/lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: warning: libpcre.so.3, needed by /home/al/Source/rpi-ramdisk/sysroot/sysroot/usr/lib/arm-linux-gnueabihf/libglib-2.0.so, not found (try using -rpath or -rpath-link)

In order to fix this you need to apply http://bazaar.launchpad.net/~doko/binutils/pkg-2.24-debian/view/head:/patches/129_multiarch_libpath.patch to binutils source tree before building it.

@mtekeli
Copy link

mtekeli commented Oct 2, 2019 via email

@ali1234
Copy link
Contributor

ali1234 commented Oct 2, 2019

@mtekeli all the download links for that are broken, but I expect it has the same problem.

@carlonluca
Copy link

@ali1234 thanks for the info. I didn't encounter that error with any of my builds. How did you trigger that error?

@ali1234
Copy link
Contributor

ali1234 commented Oct 2, 2019

I tried to cross compile libgssdp from git master against a raspbian sysroot.

@Pro
Copy link

Pro commented Oct 28, 2019

I created a new repository which contains an updated toolchain with ARMv6 support.

Tested it on a Raspberry PI Zero with Raspbian Buster, and it works perfectly.

See:
https://stackoverflow.com/a/58559140/869402

And the repo:
https://github.com/Pro/raspi-toolchain

I'm happy for any feedback.

@JamesH65
Copy link

Does it cross compile the kernel correctly and the result run OK? That's usually a good test for a new toolchain.

@Pro
Copy link

Pro commented Oct 28, 2019

Does it cross compile the kernel correctly and the result run OK? That's usually a good test for a new toolchain.

I did not test that yet. Honestly, I did not yet try to compile a kernel myself. @JamesH65 do you know any good tutorial or example which shows how to do that?
I could try to include this test into Continuous Integration, then we will see 👍

@pelwell
Copy link
Contributor

pelwell commented Oct 28, 2019

The official RPi kernel building guide is here: https://www.raspberrypi.org/documentation/linux/kernel/building.md

@martburg
Copy link

martburg commented Nov 6, 2019

the toolchain according to ali1234 succeded to cross-compile qt 5.11.3

@mahaju
Copy link

mahaju commented Oct 7, 2021

@martburg Could you please share how to make a cross-compiler for qt 5.11.3, in ubuntu please?

@carlonluca
Copy link

@mahaju this toolchain here https://thebugfreeblog.blogspot.com/2019/09/raspbian-buster-gcc.html works for every Qt version I tested, up to 5.15.1. I tested for both Linux and Mac OS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants