OpenSuse did just switch to gcc 10 and now I have issues with GNUstep
make. The gcc version gets detected as 1.0 which is obviously wrong. But
this is only partly our fault gcc actually behaves strange:

gcc --version
gcc (SUSE Linux) 10.1.1 20200507 [revision
dd38686d9c810cecbaa80bb82ed91caaa58ad635]
Copyright (C) 2020 Free Software Foundation, Inc.

gcc -dumpversion
10

This is clearly wrong and results in our extraction using the wrong
parts for major and minor version.


gcc  -dumpversion | sed
"s/\([^0-9]*\)\([0-9][0-9]*\)\([^0-9]*\)\([0-9][0-9]*\)\([^0-9]*.*\)/\2/"
1
gcc  -dumpversion | sed
"s/\([^0-9]*\)\([0-9][0-9]*\)\([^0-9]*\)\([0-9][0-9]*\)\([^0-9]*.*\)/\4/"
0


Any idea how to fix this?

Fred

Reply via email to