[SOLVED]sgfxi cannot determine gcc version error
DeepDayze
Status: Contributor
Joined: 21 May 2009
Posts: 115
Reply Quote
When attempting to rebuild nvidia driver after kernel upgrade I get this error (as noted in sgfxi log):

:: Code ::
Function: check_package_status - Utility: End
  ERROR: (230) Could not detect gcc version: /usr/bin/gcc-, or it is not installed.
Please let the script maintainer know, this may be a bug in the script.


This machine:
:: Code ::
~$ inxi -v3
System:
  Host: myhost Kernel: 5.9.0-4-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.0
  Desktop: Xfce Distro: BunsenLabs GNU/Linux 10.5 (Lithium)
  base: Debian GNU/Linux bullseye/sid
Machine:
  Type: Desktop Mobo: ASUSTeK model: PRIME B450-PLUS v: Rev X.0x
  serial: <superuser required> UEFI: American Megatrends v: 2202
  date: 07/14/2020
Battery:
  Device-1: hidpp_battery_0 model: Logitech M570 charge: 90%
  status: Discharging
CPU:
  Info: Quad Core model: AMD Ryzen 3 3200G with Radeon Vega Graphics
  bits: 64 type: MCP arch: Zen/Zen+ note: check rev: 1 L2 cache: 2 MiB
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  bogomips: 28746
  Speed: 1259 MHz min/max: 1400/3600 MHz boost: enabled Core speeds (MHz):
  1: 1259 2: 1258 3: 1279 4: 1258
Graphics:
  Device-1: NVIDIA GP106 [GeForce GTX 1060 6GB] vendor: Gigabyte
  driver: nvidia v: 455.45.01 bus ID: 01:00.0
  Display: x11 server: X.Org 1.20.10 driver: nvidia
  resolution: 1920x1080~60Hz
  OpenGL: renderer: GeForce GTX 1060 6GB/PCIe/SSE2 v: 4.6.0 NVIDIA 455.45.01
  direct render: Yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
  vendor: ASUSTeK driver: r8169 v: kernel port: e000 bus ID: 04:00.0
  IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filtered>
Drives:
  Local Storage: total: 2.27 TiB used: 121.37 GiB (5.2%)
Info:
  Processes: 218 Uptime: 22m Memory: 62.81 GiB used: 2.39 GiB (3.8%)
  Init: systemd runlevel: 5 Compilers: gcc: 10.2.1 Packages: 2150
  Shell: Bash v: 5.1.0 inxi: 3.2.00


Seems gcc is now symlinked to gcc-10 and perhaps the dash in the directory name got incorrectly parsed. Let me know if you need more information or the complete sgfxi log

Thanks,

DD[/code]

< Edited by DeepDayze :: Dec 21, 20, 16:19 >

Back to top
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 4008
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
Thanks, I took a look at the code and actually can't figure out what's going on.

Post the output of: cat /proc/version

it's possible your distro is using yet another different syntax for /proc/version, we'll see, but that's what it looks like. However, since your distro is my distro, that shouldn't matter much, although I'm stuck on an older kernel due to driver support issues, so I am not running the latest kernels.

In theory inxi -Sx and sgfxi should be running roughly the same tests on this, with the same steps of detection to handle different syntaxes. If current inxi shows gcc version and sgfxi errors out, that's probably a tiny regex bug, but your /proc/version will show me that.
Back to top
DeepDayze
Status: Contributor
Joined: 21 May 2009
Posts: 115
Reply Quote
Here's the output of the command:

:: Code ::

~$ cat /proc/version
Linux version 5.9.0-4-amd64 (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.0-19) 10.2.0, GNU ld (GNU Binutils for Debian) 2.35.1) #1 SMP Debian 5.9.11-1 (2020-11-27)


Edit:

Adding the output of inxi -Sx:

:: Code ::
~$ inxi -Sx
System:
  Host: myhost Kernel: 5.9.0-4-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.0
  Desktop: Xfce Distro: BunsenLabs GNU/Linux 10.5 (Lithium)
  base: Debian GNU/Linux bullseye/sid


< Edited by DeepDayze :: Dec 19, 20, 9:23 >

Back to top
Mono
Status: Contributor
Joined: 21 Jun 2012
Posts: 99
Reply Quote
I am on Debian Sid. I did an update today and got the same error (it worked fine until I updated, lest update was this month). I did

apt install gcc-

and it installed the packages, but I still get the error. I tried to use

sgfxi --debugger

but it hangs at the line "using perl".

:: Code ::
$ cat /proc/version
Linux version 5.9.0-5-amd64 (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.1-1) 10.2.1 20201207, GNU ld (GNU Binutils for Debian) 2.35.1) #1 SMP Debian 5.9.15-1 (2020-12-17)



:: Code ::
~$ inxi -v3
System:    Host: ronin Kernel: 5.9.0-5-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1 Desktop: Xfce 4.14.3
           Distro: Debian GNU/Linux bullseye/sid
Machine:   Type: Desktop Mobo: ASUSTeK model: ROG STRIX B350-F GAMING v: Rev X.0x serial: <superuser required>
           UEFI [Legacy]: American Megatrends v: 5220 date: 09/12/2019
CPU:       Info: Quad Core model: AMD Ryzen 5 1500X bits: 64 type: MT MCP arch: Zen rev: 1 L2 cache: 2 MiB
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 61476
           Speed: 1375 MHz min/max: 1550/3850 MHz boost: disabled Core speeds (MHz): 1: 1375 2: 1375 3: 1375 4: 1375 5: 1375
           6: 1375 7: 1375 8: 1375
Graphics:  Device-1: NVIDIA GM206 [GeForce GTX 950] vendor: eVga.com. driver: nouveau v: kernel bus ID: 08:00.0
           Display: x11 server: X.Org 1.20.10 driver: nouveau resolution: 1280x960~60Hz
           OpenGL: renderer: NV126 v: 4.3 Mesa 20.2.6 direct render: Yes
Network:   Device-1: Intel I211 Gigabit Network vendor: ASUSTeK driver: igb v: kernel port: e000 bus ID: 03:00.0
           IF: enp3s0 state: up speed: 100 Mbps duplex: full mac: 2c:fd:a1:c1:07:44
Drives:    Local Storage: total: 344.68 GiB used: 176.3 GiB (51.2%)
Info:      Processes: 312 Uptime: 39m Memory: 23.49 GiB used: 6.5 GiB (27.7%) Init: systemd runlevel: 5 Compilers: gcc: 10.2.1
           Packages: 4023 Shell: Bash v: 5.1.0 inxi: 3.2.01

Back to top
DeepDayze
Status: Contributor
Joined: 21 May 2009
Posts: 115
Reply Quote
Update:

I reinstalled the latest 5.9.0-5 debian kernel package and here's the proc info for it:

:: Code ::
~$ cat /proc/version
Linux version 5.9.0-5-amd64 (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.1-1) 10.2.1 20201207, GNU ld (GNU Binutils for Debian) 2.35.1) #1 SMP Debian 5.9.15-1 (2020-12-17)


Hope this will help in determining the issue.
Back to top
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 4008
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
This is corrected, basically inxi and sgfxi use the same regex, but I forgot to update sgfxi with the last modification I did to catch the data string data when I updated inxi. Or rather, it should be corrected.
Back to top
DeepDayze
Status: Contributor
Joined: 21 May 2009
Posts: 115
Reply Quote
Thanks for spotting the regex and now I am able to build the nvidia driver via sgfxi. Everything now works perfectly so this can be marked SOLVED :-)
Back to top
Mono
Status: Contributor
Joined: 21 Jun 2012
Posts: 99
Reply Quote
Yes, it works now, thanks. Sorry for responding late.
Back to top
Display posts from previous:   

All times are GMT - 8 Hours