All, Installed 15.4 beta and was surprised to find gcc at --version 7.5 (gcc 12.0 is current), 8.3 came on my RaspberryPi 3B+ a couple of years ago. The problem is this, 15.0 has 7.2, barely has full C++17 support, C++20 is current and 23 is just around the corner. There is virtually no C++20 support in the gcc 7 release: https://gcc.gnu.org/projects/cxx-status.html Before I installed 15.4, I browsed the repo and there was gcc-7, 8, 9, 10 and 11 available, but Yast during 15.4 install only shows 7.5 and does not show any alternative versions. I really do not want to have two differing versions of gcc installed (no good comes from that), but don't see getting much mileage out of gcc 7.5 when C++20 is needed. Any chance gcc will get an update before the 15.4 release (gcc 11 is fine, no need to jump on the bleeding edge of 12). If not, is there a safe way to have a non-conflicting gcc install generally available in a 15.4 install? -- David C. Rankin, J.D.,P.E.
Hi, On Wed, May 11, 2022 at 08:48:22AM -0500, David C. Rankin wrote:
All,
Installed 15.4 beta and was surprised to find gcc at --version 7.5 (gcc 12.0 is current), 8.3 came on my RaspberryPi 3B+ a couple of years ago.
The problem is this, 15.0 has 7.2, barely has full C++17 support, C++20 is current and 23 is just around the corner. There is virtually no C++20 support in the gcc 7 release:
https://gcc.gnu.org/projects/cxx-status.html
Before I installed 15.4, I browsed the repo and there was gcc-7, 8, 9, 10 and 11 available, but Yast during 15.4 install only shows 7.5 and does not show any alternative versions.
I really do not want to have two differing versions of gcc installed (no good comes from that), but don't see getting much mileage out of gcc 7.5 when C++20 is needed.
Any chance gcc will get an update before the 15.4 release (gcc 11 is fine, no need to jump on the bleeding edge of 12). If not, is there a safe way to have a non-conflicting gcc install generally available in a 15.4 install?
gcc7 is still the system compiler in the SLE15 product line. gcc11 is included though additionally. zypper in gcc11 gcc11-c++ CC=gcc-11 CXX=g++-11 ./configure ... Ciao, Marcus
On 5/11/22 9:01 AM, Marcus Meissner wrote:
gcc7 is still the system compiler in the SLE15 product line.
gcc11 is included though additionally.
zypper in gcc11 gcc11-c++
CC=gcc-11 CXX=g++-11 ./configure ...
Thanks Marcus (all) As long as the install of other gcc variants won't break the system (such as Nvidia drm rebuilds against the kernel expecting gcc7), we can just add CC and CXX to the command line or makefiles and be good. Since /usr/bin/gcc is just a softlink, that will work fine. Now on to fighting lack of libpython2_7-1_0 and libqt4-devel-4 -- that we can figure out as needed. Always a challenge to take a fresh install and turn it into a well-oiled machine that boots in 12 seconds and runs for years without more than 1 or 2 bug reports needed -- now that's progress. It will be hard for 15.4 to beat 15.0 there, but I bet it will be just as good. -- David C. Rankin, J.D.,P.E.
On Wed, 11 May 2022 08:48:22 -0500 "David C. Rankin" <drankinatty@gmail.com> wrote:
I really do not want to have two differing versions of gcc installed (no good comes from that), but don't see getting much mileage out of gcc 7.5 when C++20 is needed.
It's a long-standing problem. When a compiler is used in building a system - e.g. to compile a kernel module - then you must have the same version that was used originally to build the system (e.g. kernel). So that is always installed and often becomes quite old (but still supported). Various other independent software may require a newer version of the compiler (e.g. a work project). So distros and languages provide mechanisms to allow multiple versions of compilers to exist on a system.
Any chance gcc will get an update before the 15.4 release (gcc 11 is fine, no need to jump on the bleeding edge of 12). If not, is there a safe way to have a non-conflicting gcc install generally available in a 15.4 install?
As others have said, yes.
participants (4)
-
Andrei Borzenkov
-
Dave Howorth
-
David C. Rankin
-
Marcus Meissner