You are not logged in.
Pages: 1
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
Offline
@ gibor
+1
I agree with gibor.
In december 2021 I started to build "my new SliTaz" and I built a new toolchain (keeping binutils but upgrading gcc > 6.2.0 and glibc > 2.28) to be as close as possible of LFS 11. It wasn't easy to me but finally it hasn't been too hard. I know that packages will have to be recooked then...
Don't you think it's time to upgrade SliTaz? I'm sure if you launch a call on the forum you will find enough volunteers to set up a team to get involved in it.
BTW, in december I found several [c]gccXY[/c] and [c]gccXY-*[/c] packages in the repo. Are they all really usefull? I ckecked quickly for [c]rdepends[/c]; it seems only release 4.6.3 and 8.3 are used. So why not having only in a first time only 8.3?
Offline
BTW, in december I found several gccXY and gccXY-* packages in the repo. Are they all really usefull? I ckecked quickly for rdepends; it seems only release 4.6.3 and 8.3 are used.
As far as I know, build dependencies are relegated to the sources. The various package managers rewrite their own hierarchies, and they are not always real to the true need of the sources. See e.g. pactree, apt-cache depends, zypper etc... so the only real yardstick is the outcome of a compilation.
So why not having only in a first time only 8.3?
Why you can't make a single jump from the old version to the new one, I think it's simple: each version of gcc changes the compilation features, and sometimes it removes old functions...
to make the jump from 4.6.3 to 10.2.0 it's necessary to pass from an intermediate version. Once compiled the last one, the intermediate one will be no more necessary.
Offline
Hi Shann, great news :-)
For what it's worth if you need a hand I can try , but my experience is limited to onsite compilation. Doing it on the server I think I would be in trouble....
Offline
Hi gibor,
No problems
.
For me i run it in vms on proxmox and i ssh on it.
I just finish to rebuild toolchain (for x86_64 of course)
[c]
(chroot) root@bbot:/home/slitaz/wok# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-slitaz-linux/11.2.0/lto-wrapper
Target: x86_64-slitaz-linux
Configured with: ../configure --prefix=/usr --libexecdir=/usr/lib --enable-nls --enable-languages=c,c++ --enable-shared --with-system-zlib --enable-clocale=gnu --enable-__cxa_atexit --enable-lto --enable-threads=posix --disable-bootstrap --disable-multilib --libdir=/usr/libgcc --with-tune=generic --with-pkgversion=SliTaz64 --host=x86_64-slitaz-linux --build=x86_64-slitaz-linux
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.2.0 (SliTaz64)
(chroot) root@bbot:/home/slitaz/wok# ld --version
GNU ld (GNU Binutils) 2.37
Copyright (C) 2021 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
(chroot) root@bbot:/home/slitaz/wok# /lib/libc.so.6
GNU C Library (GNU libc) stable release version 2.34.
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 11.2.0.
libc ABIs: UNIQUE IFUNC ABSOLUTE
For bug reporting instructions, please see:
<https://www.gnu.org/software/libc/bugs.html>.
[/c]
Step i do :
- Build tmp toolchain, i follow LFS guide (and tazwok part cook-toolchain) and tweak steps (skip coreutils, ...) and before chroot build busybox 
- Install slitaz-base-files, slitaz-configs-base, slitaz-tools, cookutils, tazpkg inside chroot
- Enter chroot build end of tmp tools for toolchain
- Build SliTaz toolchain with tmp-toolchain (x86_64-tmp-linux)
- build few packages need to tazpkg work, (lzlib, lzma)
- Begin build packages from list order.
This week, i see to same for main slitaz arch
.
I think not easy same, we bump from gcc 4.x, glibc 2.14 to gcc 11.x, glibc 2.34.
if i remember when i do that for x86_64, need bump 6.x to 8.x and for my case i use LFS 10 (gcc 9.2.0 / glibc 2.31 / binutils 2.34)
Regards
Offline
Hi,
I begin stuff with SliTaz 4.0 to try upgrade toolchain.
Yes is old stable but it's fixed release.
In // i go to same with cooking/rolling.
To go on gcc 11.x, step by step.
First step is ok :
binutils 2.21 > 2.23.1
glibc 2.13 keep it in place
gcc 4.5.2 > 4.7.2
mpfr 3.0.1 > 3.1.1
mpc-library 0.8.2 > 1.0.1
gmp 5.0.1 > 5.1.1
elfutils 0.150 > 0.161
[c]
root@bbot4:/home/slitaz/wok# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i486-slitaz-linux/4.7.2/lto-wrapper
Target: i486-slitaz-linux
Configured with: /home/slitaz/wok/gcc/source/gcc-4.7.2/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 --with-tune=i486 --build=i486-slitaz-linux --host=i486-slitaz-linux
Thread model: posix
gcc version 4.7.2 (SliTaz)
root@bbot4:/home/slitaz/wok# ld --version
GNU ld (GNU Binutils) 2.23.1
Copyright 2012 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
[/c]
Offline
Hi,
Cooking :
for toolchain few packages already bump to fresh version
.
binutils 2.37
gmp 6.2.1
mpc 1.2.1
mpfr 4.1.0
glibc 2.14.1
gcc 4.6.3
first pass bump gcc 4.6.3 to 4.9.2
second pass bump gcc 4.9.2 to 6.3.0
last pass bump gcc 6.3.0 to 10.2.0 (! in progress) 
Of course, i don't use your package i would like bump gcc step by step for my own culture 
After that i have 10.2.0 , try build bump to 11.2.0.
In this step we will have :
binutils 2.37
gcc 11.2.0 (gmp 6.2.1 / mpc 1.2.1 / mpfr 4.1.0)
glibc 2.14.1
Remain bump glibc to more recent version and going to mass rebuild packages.
Offline
bump gcc to 10.2.0 done.
Need tweak glibc to allow build with gcc 6.3.0 otherwise it's considered at old
.
add this in glibc receipt after Make 4.* workaround
[c]# GCC 6.x support...
sed -i 's/3\.4/6.* | &/' configure*[/c]
[c]root@slitaz:/home/slitaz/wok# 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: /home/slitaz/wok/gcc/source/gcc-10.2.0/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
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 10.2.0 (SliTaz)
root@slitaz:/home/slitaz/wok# /lib/libc.so.6
GNU C Library stable release version 2.14.1, by Roland McGrath et al.
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 10.2.0.
Compiled on a Linux 3.16.55 system on 2022-04-25.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.[/c]
Offline
Hi,
Cooking with gcc 11.2.0
.
[c](cooking) root@slitaz:/home/slitaz/wok# ld --version
GNU ld (GNU Binutils) 2.37
Copyright (C) 2021 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
(cooking) root@slitaz:/home/slitaz/wok# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i486-slitaz-linux/11.2.0/lto-wrapper
Target: i486-slitaz-linux
Configured with: /home/slitaz/wok/gcc/source/gcc-11.2.0/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
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.2.0 (SliTaz)
(cooking) root@slitaz:/home/slitaz/wok# /lib/libc.so.6
GNU C Library stable release version 2.14.1, by Roland McGrath et al.
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 11.2.0.
Compiled on a Linux 3.16.55 system on 2022-04-26.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.[/c]
I put packages on my people space :
https://people.slitaz.org/~shann/slitaz-cooking-stuff/
NB: i put also gc-dev / gc (needed by gcc >= 6.x)
Offline
Pages: 1
[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.57 MiB (Peak: 1.77 MiB) ]