ssrg-vt / ebpf-fuzzer

A fuzzer for Linux eBPF module; build on top of LKL
Other
2 stars 2 forks source link

`make ARCH=lkl` failed #1

Closed xjtuwxg closed 1 year ago

xjtuwxg commented 1 year ago

Kernel compilation:

cp lkl_ebpf_config arch/lkl/configs/defconfig
make ARCH=lkl defconfig
make ARCH=lkl -j8

make ARCH=lkl failed with the following errors:

In file included from ./arch/lkl/include/asm/bitsperlong.h:4,
                 from ./include/uapi/asm-generic/int-ll64.h:12,
                 from ./include/asm-generic/int-ll64.h:11,
                 from ./include/uapi/asm-generic/types.h:7,
                 from ./arch/lkl/include/generated/uapi/asm/types.h:1,
                 from ./include/uapi/linux/types.h:5,
                 from ./include/linux/types.h:6,
                 from ./include/linux/mod_devicetable.h:12,
                 from scripts/mod/devicetable-offsets.c:3:
./arch/lkl/include/uapi/asm/bitsperlong.h:4:10: fatal error: asm/config.h: No such file or directory
    4 | #include <asm/config.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.build:117: scripts/mod/devicetable-offsets.s] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1207: prepare0] Error 2
husainnk commented 1 year ago

The make step needs to be executed in tools/lkl folder

cd tools/lkl
make ARCH=lkl -j8

Updated the build instructions in README.