Skip to content

ch341ser_linux compile error #22

@ivangotoy

Description

@ivangotoy

Kernel: 6.13.0-x64v3-xanmod2

Driver source at latest (as of now) commit 0c0e8a2

Error:

make -C /lib/modules/6.13.0-x64v3-xanmod2/build  M=/home/ivan/Downloads/ch341ser_linux/driver  
make[1]: Entering directory '/usr/lib/modules/6.13.0-x64v3-xanmod2/build'
make[2]: Entering directory '/home/ivan/Downloads/ch341ser_linux/driver'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc (Debian 14.2.0-8) 14.2.0
  You are using:           gcc (GCC) 14.2.1 20240910
  CC [M]  ch341.o
ch341.c:58:10: fatal error: asm/unaligned.h: No such file or directory
   58 | #include <asm/unaligned.h>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [/usr/lib/modules/6.13.0-x64v3-xanmod2/build/scripts/Makefile.build:194: ch341.o] Error 1
make[3]: *** [/usr/lib/modules/6.13.0-x64v3-xanmod2/build/Makefile:1987: .] Error 2
make[2]: *** [/usr/lib/modules/6.13.0-x64v3-xanmod2/build/Makefile:251: __sub-make] Error 2
make[2]: Leaving directory '/home/ivan/Downloads/ch341ser_linux/driver'
make[1]: *** [Makefile:251: __sub-make] Error 2
make[1]: Leaving directory '/usr/lib/modules/6.13.0-x64v3-xanmod2/build'
make: *** [Makefile:7: default] Error 2

Edit: On kernel 6.6.74-1-MANJARO this builds and works just fine

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