mirror of
https://github.com/falcosecurity/falco.git
synced 2025-10-22 03:49:36 +00:00
Related to https://github.com/falcosecurity/falco/pull/526, it turns out attempting to build a kernel module on the default debian-based ami used by kops tries to invoke gcc-6: ----- * Setting up /usr/src links from host * Unloading falco-probe, if present * Running dkms install for falco Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area... make -j8 KERNELRELEASE=4.9.0-7-amd64 -C /lib/modules/4.9.0-7-amd64/build M=/var/lib/dkms/falco/0.14.0/build...(bad exit status: 2) Error! Bad return status for module build on kernel: 4.9.0-7-amd64 (x86_64) Consult /var/lib/dkms/falco/0.14.0/build/make.log for more information. * Running dkms build failed, dumping /var/lib/dkms/falco/0.14.0/build/make.log DKMS make.log for falco-0.14.0 for kernel 4.9.0-7-amd64 (x86_64) Wed Feb 13 01:02:01 UTC 2019 make: Entering directory '/host/usr/src/linux-headers-4.9.0-7-amd64' arch/x86/Makefile:140: CONFIG_X86_X32 enabled but no binutils support /host/usr/src/linux-headers-4.9.0-7-common/scripts/gcc-version.sh: line 25: gcc-6: command not found ----- So manually add back gcc-6 and its dependencies.