Page 1 of 1
Updating toolchain compilers
Posted: 2024-09-09 7:50
by 14Og
Hi there! I've recently found some issues in template deduction and dependent names in modern c++ code that i was trying to compile with given cross-tool. The problem is that g++ with given version (8.3) are not that smart as it's newer versions and i have to explicitly declare some "hints" for it to properly parse template deduction in my code. Is there any chance to use more present versions of compiler with my board? Or i have to completely recompile kernel and stuff in order to do that? Thanks in advance!
Re: Updating toolchain compilers
Posted: 2024-09-09 8:13
by Crocodile
If you need to use Buildroot as your target root filesystem, currently there is no way to replace the compiler (as Rockchip has not provided the corresponding source code or a more advanced version).
If you do not need to use the official Rockchip libraries in Buildroot, you can directly use a glibc-based system (such as Ubuntu). A glibc system supports building your project with a higher version of the cross-compilation toolchain. Testing with GCC 11.3's glibc cross-compilation toolchain on an Ubuntu system has not encountered any issues.
Re: Updating toolchain compilers
Posted: 2024-09-09 11:18
by 14Og
Ok, got that, thanks.