abhiTronix / raspberry-pi-cross-compilers

Latest GCC Cross Compiler & Native (ARM & ARM64) CI generated precompiled standalone toolchains for all Raspberry Pis. 🍇
https://sourceforge.net/projects/raspberry-pi-cross-compilers
GNU General Public License v3.0
594 stars 104 forks source link

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

Closed distlibs closed 2 months ago

distlibs commented 1 year ago

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

cnbaker commented 11 months ago

Yes please!

Givy commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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 commented 5 months ago

Has anyone able to cross compile for raspberry pi 5

abhiTronix commented 2 months ago

@henrihallik @cnbaker @Givy @distlibs Support for both Bookworm OS and Raspberry Pi 5 is now available with v3.1.0