-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Hello, I am trying to set up and run KernelGPT. But when following the README, I encountered two issues.
# My envs:
ubuntu 22.04 in docker
clang-14.0.0 with libclang-dev
syzkaller-related packages are installed
- Failed to compile kernel 6.6.12 with allyesconfig. I also tried upgrading clang to 17.0.6 and compiling allysconfig again, but it also failed with the same output. (Then I compiled it with a syzbot .config)
...
CC drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp2_execution.o
CC drivers/gpu/drm/amd/amdgpu/../display/modules/hdcp/hdcp2_transition.o
AR drivers/gpu/drm/nouveau/built-in.a
AR drivers/gpu/drm/amd/amdgpu/built-in.a
AR drivers/gpu/drm/built-in.a
AR drivers/gpu/built-in.a
AR drivers/built-in.a
make[1]: *** [/root/local_kernels/linux-6.6.12-allyes/Makefile:1913: .] Error 2
make: *** [Makefile:234: __sub-make] Error 2
- Failed to execute
./analyze -p /my/path/compile_commands.json
. (Note:compile_commands.json
is generated with the syzbot .config rather than allyesconfig)
... After running several hours ...
...
fatal error: too many errors emitted, stopping now [-ferror-limit=]
/root/local_kernels/linux-6.6.12/arch/x86/boot/compressed/mkpiggy.c
/root/local_kernels/linux-6.6.12/arch/x86/boot/compressed/early_serial_console.c
/root/local_kernels/linux-6.6.12/arch/x86/boot/compressed/ident_map_64.c
/root/local_kernels/linux-6.6.12/arch/x86/boot/compressed/idt_64.c
error: unsupported option '--mrelax-relocations'
error: unknown argument: '-cc1'
error: unknown argument: '-triple'
error: unknown argument: '-clear-ast-before-backend'
error: unknown argument: '-main-file-name'
error: unknown argument: '-mrelocation-model'
error: unknown argument: '-pic-level'
error: unknown argument: '-pic-is-pie'
error: unknown argument: '-mframe-pointer=none'
error: unknown argument: '-mconstructor-aliases'
error: unknown argument: '-funwind-tables=2'
error: unknown argument: '-target-cpu'
error: unknown argument: '-tune-cpu'
error: unknown argument: '-internal-isystem'
error: unknown argument: '-internal-isystem'
error: unknown argument: '-internal-isystem'
error: unknown argument: '-internal-externc-isystem'
error: unknown argument: '-internal-externc-isystem'
error: unknown argument: '-internal-externc-isystem'
fatal error: too many errors emitted, stopping now [-ferror-limit=]
/root/local_kernels/linux-6.6.12/arch/x86/boot/compressed/cpuflags.c
/root/local_kernels/linux-6.6.12/arch/x86/boot/compressed/acpi.c
/root/local_kernels/linux-6.6.12/arch/x86/boot/compressed/pgtable_64.c
/root/local_kernels/linux-6.6.12/arch/x86/boot/compressed/mkpiggy.c
/root/local_kernels/linux-6.6.12/arch/x86/boot/compressed/misc.c
In file included from arch/x86/boot/compressed/idt_64.c:5:
In file included from arch/x86/boot/compressed/misc.h:42:
./include/linux/acpi.h:37:10: fatal error: 'acpi/acpi_io.h' file not found
#include <acpi/acpi_io.h>
^~~~~~~~~~~~~~~~
In file included from arch/x86/boot/compressed/acpi.c:3:
In file included from arch/x86/boot/compressed/misc.h:42:
In file included from ./include/linux/acpi.h:13:
In file included from ./include/linux/resource_ext.h:11:
In file included from ./include/linux/slab.h:16:
In file included from ./include/linux/gfp.h:7:
./include/linux/mmzone.h:24:10: fatal error: 'linux/local_lock.h' file not found
#include <linux/local_lock.h>
^~~~~~~~~~~~~~~~~~~~
error: error opening 'arch/x86/boot/.cpu.o.d': No such file or directory
1 error generated.
Error while processing /root/local_kernels/linux-6.6.12/arch/x86/boot/cpu.c.
error: unsupported option '--mrelax-relocations'
error: unknown argument: '-cc1'
error: unknown argument: '-triple'
error: unknown argument: '-clear-ast-before-backend'
error: unknown argument: '-main-file-name'
error: unknown argument: '-mrelocation-model'
error: unknown argument: '-pic-level'
error: unknown argument: '-pic-is-pie'
error: unknown argument: '-mframe-pointer=none'
error: unknown argument: '-mconstructor-aliases'
error: unknown argument: '-funwind-tables=2'
error: unknown argument: '-target-cpu'
error: unknown argument: '-tune-cpu'
error: unknown argument: '-internal-isystem'
error: unknown argument: '-internal-isystem'
error: unknown argument: '-internal-isystem'
error: unknown argument: '-internal-externc-isystem'
error: unknown argument: '-internal-externc-isystem'
fatal error: too many errors emitted, stopping now [-ferror-limit=]
error: unsupported option '--mrelax-relocations'
error: unknown argument: '-cc1'
error: unknown argument: '-triple'
error: unknown argument: '-clear-ast-before-backend'
error: unknown argument: '-main-file-name'
error: unknown argument: '-mrelocation-model'
error: unknown argument: '-pic-level'
error: unknown argument: '-pic-is-pie'
error: unknown argument: '-mframe-pointer=none'
error: unknown argument: '-mconstructor-aliases'
error: unknown argument: '-funwind-tables=2'
error: unknown argument: '-target-cpu'
error: unknown argument: '-tune-cpu'
error: unknown argument: '-internal-isystem'
error: unknown argument: '-internal-isystem'
error: unknown argument: '-internal-isystem'
error: unknown argument: '-internal-externc-isystem'
error: unknown argument: '-internal-externc-isystem'
error: unknown argument: '-internal-externc-isystem'
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 error generated.
Error while processing /root/local_kernels/linux-6.6.12/drivers/hid/hid-icade.c.
error: error opening 'drivers/hid/.hid-holtek-kbd.o.d': No such file or directory
1 error generated.
Error while processing /root/local_kernels/linux-6.6.12/drivers/hid/hid-holtek-kbd.c.
error: error opening 'drivers/hid/.hid-lenovo.o.d': No such file or directory
1 error generated.
Error while processing /root/local_kernels/linux-6.6.12/drivers/hid/hid-lenovo.c.
error: error opening 'init/.version-timestamp.o.d': No such file or directory
1 error generated.
Error while processing /root/local_kernels/linux-6.6.12/init/version-timestamp.c.
error: error opening 'drivers/hid/.hid-lg4ff.o.d': No such file or directory
1 error generated.
Error while processing /root/local_kernels/linux-6.6.12/drivers/hid/hid-lg4ff.c.
1 error generated.
Error while processing /root/local_kernels/linux-6.6.12/drivers/hid/hid-saitek.c.
1 error generated.
Error while processing /root/local_kernels/linux-6.6.12/drivers/hid/hid-retrode.c.
error: error opening 'drivers/hid/.hid-roccat-common.o.d': No such file or directory
1 error generated.
Error while processing /root/local_kernels/linux-6.6.12/drivers/hid/hid-roccat-common.c.
1 error generated.
Error while processing /root/local_kernels/linux-6.6.12/drivers/hid/hid-roccat-savu.c.
error: error opening 'drivers/hid/.hid-roccat-koneplus.o.d': No such file or directory
1 error generated.
Error while processing /root/local_kernels/linux-6.6.12/drivers/hid/hid-roccat-koneplus.c.
1 error generated.
Error while processing /root/local_kernels/linux-6.6.12/drivers/hid/hid-roccat-ryos.c.
1 error generated.
Error while processing /root/local_kernels/linux-6.6.12/arch/x86/boot/compressed/cmdline.c.
1 error generated.
Error while processing /root/local_kernels/linux-6.6.12/arch/x86/boot/compressed/acpi.c.
1 error generated.
Error while processing /root/local_kernels/linux-6.6.12/arch/x86/boot/compressed/idt_64.c.
1 error generated.
Error while processing /root/local_kernels/linux-6.6.12/drivers/hid/hid-rmi.c.
error: error opening 'drivers/hid/.hid-tivo.o.d': No such file or directory
1 error generated.
Error while processing /root/local_kernels/linux-6.6.12/drivers/hid/hid-tivo.c.
1 error generated.
Error while processing /root/local_kernels/linux-6.6.12/drivers/hid/hid-uclogic-core.c.
1 error generated.
Error while processing /root/local_kernels/linux-6.6.12/drivers/hid/hid-wiimote-core.c.
Is there any difference between my envs and yours?
Metadata
Metadata
Assignees
Labels
No labels