Skip to content

gcc: error: unrecognized command-line option #10

Description

@LoveableMartian

I'm new to Linux, trying to install this to Linux CachyOS.
When I select 1 to install DAM Fan Controls, there first comes up a warning that the compiler differs from the one used to build the kernel.
I'm using gcc while the kernel was built by clang version 21.1.6

After that, are 3 nearly identical errors listed;
gcc: error: unrecognized command-line option '-mstack-alignment=8'
gcc: error: unrecognized command-line option '-mretpoline-external-thunk'
gcc: error: unrecognized command-line option '-fsplit-lto-unit'

After that, there are some makefile lines, the first of which ends in Error 1, and 6 lines under that, that all end in Error

It's unclear to me how I get around this error. Do I have to install clang before I run through the installation?

Hard-copy of the lines;

Select an option (1-4): 1
Would you like to create a desktop icon? (y/n): n
Creating installation directories...
Installing custom icon...
Copying files...
Compiling drivers...
make -C /lib/modules/6.18.2-2-cachyos/build M=/opt/dam-fan-controls/NitroDrivers modules
make[1]: Entering directory '/usr/lib/modules/6.18.2-2-cachyos/build'
make[2]: Entering directory '/opt/dam-fan-controls/NitroDrivers'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: clang version 21.1.6
You are using: gcc (GCC) 15.2.1 20251112
CC [M] acer_nitro_gaming_driver2.o
gcc: error: unrecognized command-line option ‘-mstack-alignment=8’
gcc: error: unrecognized command-line option ‘-mretpoline-external-thunk’
gcc: error: unrecognized command-line option ‘-fsplit-lto-unit’
make[4]: *** [/usr/lib/modules/6.18.2-2-cachyos/build/scripts/Makefile.build:287: acer_nitro_gaming_driver2.o] Error 1
make[3]: *** [/usr/lib/modules/6.18.2-2-cachyos/build/Makefile:2016: .] Error 2
make[2]: *** [/usr/lib/modules/6.18.2-2-cachyos/build/Makefile:248: __sub-make] Error 2
make[2]: Leaving directory '/opt/dam-fan-controls/NitroDrivers'
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Leaving directory '/usr/lib/modules/6.18.2-2-cachyos/build'
make: *** [Makefile:3: all] Error 2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions