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

Raspberry Pi GCC Cross-Compiler Toolchains (Bookworm) #116

Open
distlibs opened this issue Oct 15, 2023 · 5 comments
Open

Raspberry Pi GCC Cross-Compiler Toolchains (Bookworm) #116

distlibs opened this issue Oct 15, 2023 · 5 comments

Comments

@distlibs
Copy link

When GCC cross-compiler toolchains will be available for Raspberry Pi OS Bookworm?

@cnbaker
Copy link

cnbaker commented Nov 17, 2023

Yes please!

Repository owner deleted a comment from henrihallik Dec 7, 2023
@Givy
Copy link

Givy commented Dec 30, 2023

Hi,
I tried to install the toolchain on RPi-3 64b;;
Linux RaXXXX 5.10.103-v8+ #1529 SMP PREEMPT Tue Mar 8 12:26:46 GMT 2022 aarch64 GNU/Linux

It took a long time, but it finished with the following Error/s. Any logs I need to look into? Anything I am missing etc.
Also, can I install this on a RPi- 64b, bookworm?;;
Linux MiXXX 6.1.0-rpi7-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/Linux


/opt/raspberry-pi-cross-compilers/build-scripts# ./RTBuilder_64b -g 11.2.0 -o bullseye -V
.
.
/tmp/gcc-10.2.0/gcc-10.2.0/gcc/gengtype-lex.l: In function ‘int yylex(const char**)’:
gengtype-lex.c:356:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
/tmp/gcc-10.2.0/gcc-10.2.0/gcc/gengtype-lex.l:119:1: note: in expansion of macro ‘YY_DO_BEFORE_ACTION’
/tmp/gcc-10.2.0/gcc-10.2.0/gcc/gengtype-lex.l:114:1: note: here
gengtype-lex.c:356:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
/tmp/gcc-10.2.0/gcc-10.2.0/gcc/gengtype-lex.l:136:1: note: in expansion of macro ‘YY_DO_BEFORE_ACTION’
/tmp/gcc-10.2.0/gcc-10.2.0/gcc/gengtype-lex.l:132:1: note: here
collect2: fatal error: ld terminated with signal 9 [Killed]
compilation terminated.

**make[1]: *** [../../gcc/c/Make-lang.in:85: cc1] Error 1

make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:4733: all-gcc] Error 2**
root@RaXXX:/opt/raspberry-pi-cross-compilers/build-scripts#

Thank you.

@henrihallik
Copy link

u can try these scripts for 64-bit https://github.com/henrihallik/qt-cross-compile-pi5_aarch64
which are based on
https://www.interelectronix.com/qt-cross-compile-setup-scripts-raspberry-pi-4.html
same scripts but for 32-bit OS

However i have tested these on Pi4&Pi5 so i dont know if they work on Pi3
These scripts in turn are based on abitronix toolchains but automate the setup process. They will cross-compile and install QT5 so u can just comment that part out or just wait for it to finish. If u leave it in U would need to modify the -device parameter in the .configure call and name it to how its called in qt-everywhere-src-5.15.8/qtbase/mkspecs/devices/...pi3...something

@Givy
Copy link

Givy commented Dec 30, 2023

If I stop here, is there anything to remove or delete or worry about? If, then I'll go with the qt-cross-compile.

Thanks so much.

@GK-Retech
Copy link

Has anyone able to cross compile for raspberry pi 5

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

5 participants