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

Support compiler version bump #7

Open
l0kod opened this issue Jun 13, 2024 · 0 comments
Open

Support compiler version bump #7

l0kod opened this issue Jun 13, 2024 · 0 comments

Comments

@l0kod
Copy link
Member

l0kod commented Jun 13, 2024

I noticed that when we run a kernel build with a new compiler version (e.g. GCC 14) it fails if we previously built the same kernel in the same build directory but with a different compiler version (e.g. GCC 13):

  GEN     Makefile
mkdir -p .../.out-landlock_local-x86_64-gcc/tools/objtool && make O=.../.out-landlock_local-x86_64-gcc subdir=tools/objtool --no-print-directory -C objtool
  CC      scripts/mod/empty.o
  CC      scripts/mod/devicetable-offsets.s
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTCC  scripts/mod/symsearch.o
  INSTALL libsubcmd_headers
make[6]: *** No rule to make target '/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/include/stdbool.h', needed by '.../.out-landlock_local-x86_64-gcc/tools/objtool/libsubcmd/exec-cmd.o'.  Stop.
make[5]: *** [Makefile:80: .../.out-landlock_local-x86_64-gcc/tools/objtool/libsubcmd/libsubcmd-in.o] Error 2
make[4]: *** [Makefile:82: .../.out-landlock_local-x86_64-gcc/tools/objtool/libsubcmd/libsubcmd.a] Error 2
make[3]: *** [Makefile:72: objtool] Error 2

The simple fix is to remove the build directory and start again...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant