PCAN-Linux: GCC-12 isn't used when building.

This forum covers PCAN-Linux and Linux development issues concerning our products
Locked
laney
Posts: 2
Joined: Mon 6. May 2024, 10:34

PCAN-Linux: GCC-12 isn't used when building.

Post by laney » Mon 6. May 2024, 11:16

I am stuck at the same spot EntwB was with his post "Tue 6. Feb 2024, 15:19". Make is using gcc version 11 instead gcc version 12.

I've tried 8.16 driver with patch and also 8.17 driver.
The gcc-12 is installed, i've tried also to restart the system. I'm getting this output no mater what.

Code: Select all

*** Host OS Release=Ubuntu v22.04
*** Host machine kernel version=6.5.0-28-generic
*** Driver kernel version=6.5.0-28-generic (6.5.0)
*** Path to kernel sources=/usr/src/linux-headers-6.5.0-28-generic
*** use KBUILD=yes
*** use DKMS=
*** gcc version=11
***
I am pretty new to linux, do anyone have an idea ?

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: Patch for peak-linux-driver_8.16 and kernel 6.5.x

Post by M.Heidemann » Mon 6. May 2024, 11:28

Hey Laney,

Please don't hijack someone elses topic,
this makes it next to impossible for anyone to find anything on here.

I split this into a new new topic, don't be alarmed.

As to your question:

Can you confirm gcc12 is installed?

If yes, you can also change the default syslink for gcc so gcc12 is used:

you'll find the syslink gcc in /bin/

you can:

1) remove the current gcc syslink

Code: Select all

sudo rm gcc
2) create a new syslink for gcc pointing to gcc12:

Code: Select all

sudo ln gcc-12 gcc
3) Try building again.


Please let me know if you were able to build the driver.
---
Marvin Heidemann
PEAK-Support Team

laney
Posts: 2
Joined: Mon 6. May 2024, 10:34

Re: Patch for peak-linux-driver_8.16 and kernel 6.5.x

Post by laney » Mon 6. May 2024, 11:40

I have used this attribute to force gcc-12:

make CC=gcc-12

It compiles and works...

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: PCAN-Linux, GCC-12 isn't used when building.

Post by M.Heidemann » Mon 6. May 2024, 11:51

Thanks for letting us know.

- closed -
---
Marvin Heidemann
PEAK-Support Team

Locked