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

-fintegrated-as required to compile kernel #705

Open
mk3890 opened this issue Dec 13, 2022 · 2 comments
Open

-fintegrated-as required to compile kernel #705

mk3890 opened this issue Dec 13, 2022 · 2 comments
Labels

Comments

@mk3890
Copy link

mk3890 commented Dec 13, 2022

Describe the bug
Without adding -fintegrated-as to CC. Get the following error message:

ERROR: linux-raspberrypi-1_5.15.56+gitAUTOINC+3b1dc2f1fc_a90998a3e5-r0 do_kernel_configcheck: config analysis failed when running 'symbol_why.py --dotconfig /home/vagrant/git/yocto/build-rpi/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/1_5.15.56+gitAUTOINC+3b1dc2f1fc_a90998a3e5-r0/linux-raspberrypi4_64-standard-build/.config --mismatches --classify'

Digging into the log file the actual error is:

kconfiglib.KconfigError: scripts/Kconfig.include:50: Sorry, this assembler is not supported.

Kconfig.include calls as_version.sh, if the compiler is not gcc, it only looks for -fintegrated-as since the version will be the same as the compiler (which was already checked).

This is my first attempt at compiling a system with clang and I'm relatively new to Yocto so it's not clear to me why others would not experience this same issue as well. Doesn't appear to be a difference in linux-raspberrypi but I'm not certain.

My issue is solved just dropping here in case this is a valid fix for others.

Environment

  • rpi-test-image with no modifications
  • linux-raspberrypi kernel recipe
@kraj
Copy link
Owner

kraj commented Mar 30, 2023

are you using clang to compile kernel ?

@kraj kraj added the question label Mar 30, 2023
@mk3890
Copy link
Author

mk3890 commented Sep 13, 2023

Yes that's correct.

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

No branches or pull requests

2 participants