Skip to content

Failure to build dkms modules #435

@LethalManBoob

Description

@LethalManBoob

DKMS make.log for corefreq-1.95.5.r0.g34efe5d for kernel 6.3.0-4-cachyos-lto (x86_64)

Thu Apr 27 06:45:45 BST 2023
make: Entering directory '/usr/src/corefreq-1.95.5.r0.g34efe5d'
clang   corefreqd.c corefreqm.c \
  -D CORE_COUNT=256 -D TASK_ORDER=5 -D MAX_FREQ_HZ=7125000000 -D UBENCH=0 -D DELAY_TSC=1 \
  -o corefreqd -lpthread -lm -lrt
clang   \
  corefreq-cli.c corefreq-ui.c corefreq-cli-rsc.c \
  corefreq-cli-json.c corefreq-cli-extra.c \
  -D CORE_COUNT=256 -D TASK_ORDER=5 -D MAX_FREQ_HZ=7125000000 -D UBENCH=0 -D DELAY_TSC=1  \
  -o corefreq-cli -lm -lrt
make -j1 -C /usr/lib/modules/6.3.0-4-cachyos-lto/build M=/var/lib/dkms/corefreq/1.95.5.r0.g34efe5d/build modules
make[1]: Entering directory '/usr/lib/modules/6.3.0-4-cachyos-lto/build'
make[1]: warning: -j1 forced in submake: resetting jobserver mode.
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: CachyOS - LLVM 15 BOLT clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
  You are using:           clang version 15.0.7
  CC [M]  /var/lib/dkms/corefreq/1.95.5.r0.g34efe5d/build/corefreqk.o
/var/lib/dkms/corefreq/1.95.5.r0.g34efe5d/build/corefreqk.c:22084:16: fatal error: cannot assign to non-static data member 'vm_flags' with const-qualified type 'const vm_flags_t' (aka 'const unsigned long')
        vma->vm_flags = VM_READ;
        ~~~~~~~~~~~~~ ^
./include/linux/mm_types.h:500:20: note: non-static data member 'vm_flags' declared const here
                const vm_flags_t vm_flags;
                ~~~~~~~~~~~~~~~~~^~~~~~~~
1 error generated.
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/corefreq/1.95.5.r0.g34efe5d/build/corefreqk.o] Error 1
make[1]: *** [Makefile:2023: /var/lib/dkms/corefreq/1.95.5.r0.g34efe5d/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/6.3.0-4-cachyos-lto/build'
make: *** [Makefile:86: all] Error 2
make: Leaving directory '/usr/src/corefreq-1.95.5.r0.g34efe5d'

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