Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

builder: docerk build error: header not found (fix: #649) #648

Merged
merged 3 commits into from
Oct 9, 2024

Conversation

cfc4n
Copy link
Member

@cfc4n cfc4n commented Oct 8, 2024

via github action (docker build)

clang \
#18 8.403 		-emit-llvm -O2 -S -D__TARGET_ARCH_x86 -xc -g -isystem -D__BPF_TRACING__ -D__KERNEL__ -DNOCORE -nostdinc -DKBUILD_MODNAME=\"eCapture\" -target x86_64  -Wall -Wno-unused-variable -Wnounused-but-set-variable -Wno-frame-address -Wno-unused-value -Wno-unknown-warning-option -Wno-pragma-once-outside-header -Wno-pointer-sign -Wno-gnu-variable-sized-type-not-at-end -Wno-deprecated-declarations -Wno-compare-distinct-pointer-types -Wno-address-of-packed-member -fno-stack-protector -fno-jump-tables -fno-unwind-tables -fno-asynchronous-unwind-tables \
#18 8.403 		-I ./kern -I ./kern/bpf/x86 \
#18 8.403 		-I /lib/modules/6.8.0-1014-azure/build/arch/x86/include \
#18 8.403 		-I /lib/modules/6.8.0-1014-azure/build/arch/x86/include/generated \
#18 8.403 		-I /lib/modules/6.8.0-1014-azure/build/include \
#18 8.403 		-I /lib/modules/6.8.0-1014-azure/build/arch/x86/include/uapi \
#18 8.403 		-I /lib/modules/6.8.0-1014-azure/build/arch/x86/include/generated/uapi \
#18 8.403 		-I /lib/modules/6.8.0-1014-azure/build/include/uapi \
#18 8.403 		-I /lib/modules/6.8.0-1014-azure/build/include/generated/uapi \
#18 8.403 		-DKERNEL_LESS_5_2 \
#18 8.403 		-c kern/boringssl_a_14_kern.c \
#18 8.403 		-o - |llc \
#18 8.403 		-march=bpf \
#18 8.403 		-filetype=obj \
#18 8.403 		-o user/bytecode/boringssl_a_14_kern_noncore_less52.o
#18 8.431 In file included from kern/boringssl_a_14_kern.c:71:
#18 8.433 In file included from ./kern/boringssl_masterkey.h:15:
#18 8.433 ./kern/ecapture.h:28:10: fatal error: 'linux/kconfig.h' file not found
#18 8.436 #include <linux/kconfig.h>
#18 8.437          ^~~~~~~~~~~~~~~~~
#18 8.450 1 error generated.
#18 8.502 yes
#18 8.502 In file included from kern/boringssl_a_14_kern.c:71:
#18 8.502 In file included from ./kern/boringssl_masterkey.h:15:
#18 8.502 ./kern/ecapture.h:28:10: fatal error: 'linux/kconfig.h' file not found
#18 8.502 #include <linux/kconfig.h>
#18 8.502          ^~~~~~~~~~~~~~~~~
#18 8.514 checking for capable lex... 1 error generated.

via github action (docker build)
./kern/ecapture.h:28:10: fatal error: 'linux/kconfig.h' file not found

Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
@cfc4n cfc4n added 🐞 bug Something isn't working fix bug fix PR labels Oct 8, 2024
… phase.

for linux source header, make prepare always while cross compilation.

Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
@cfc4n cfc4n force-pushed the docker-build-error branch from 563bdb4 to f46a391 Compare October 9, 2024 12:46
When the kernel version is inconsistent with the version of linux-source installed via apt.

eg: kernel version 6.8 , but linux source version is 5.15 on github action ubuntu 22.04 images.
Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
@cfc4n cfc4n changed the title builder: docerk build error: header not found builder: docerk build error: header not found (fix: #649) Oct 9, 2024
@cfc4n cfc4n merged commit e9f442d into master Oct 9, 2024
6 checks passed
@cfc4n cfc4n deleted the docker-build-error branch October 9, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working fix bug fix PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant