Hi, I don't know if anyone has ever tried to update gcc in rolling, but as far as I know it is still stuck at version 4.6.3.
Compiling new packages with that version is now a problem for many sources. Why not upgrade to a newer version?
I tried to build gcc-4.8.1 first and install it. Then with that version I compiled gcc-10.2.0 and replaced the original.
Other than a patch for gmp during compilation, gcc-10.2.0 seems to work fully in the normal slitaz distribution.
tux@slitaz:~$ cat /etc/slitaz-version
SliTaz GNU/Linux - 5.0-RC4 20220403
tux@slitaz:~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i486-slitaz-linux/10.2.0/lto-wrapper
Target: i486-slitaz-linux
Configured with: ./configure --libexecdir=/usr/lib --enable-nls --enable-languages=c,c++,objc,fortran --enable-shared --with-system-zlib --enable-clocale=gnu --enable-objc-gc --enable-__cxa_atexit --enable-lto --enable-threads=posix --disable-bootstrap --with-pkgversion=SliTaz --build=i486-slitaz-linux --host=i486-slitaz-linux --with-tune=i486 --prefix=/usr
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 10.2.0 (SliTaz)
The gmp Patch
https://github.com/reactos/RosBE/commit/e87b00c8f8732ed3fa393b9b05a12093ae5942e8
gcc-10.2.0.tazpkg
https://disk.yandex.com/d/9vk5b2KAK8WLbw