-
Notifications
You must be signed in to change notification settings - Fork 24
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
Attempting to cross-compile linux kernel, getting stuck on inline assembly .incbin
file not found error
#69
Comments
Oof. The basic situation here is:
The obvious avenues to fix are:
|
First things first, llama is awesome, thanks @nelhage! I'm running into the same issue while trying to rebuild a Ubuntu x86 kernel from their Ubuntu-6.5.0-25.25 tag, no cross-compilation involved. It fails with the following:
And it's the same problem, really:
Tempted to grep for |
Workaround for nelhage#69 Signed-off-by: Quentin Casasnovas <[email protected]>
I've added the workaround you were suggesting, but taking a big hammer approach of always doing the local build if it fails, keyed off by default under a new environment variable LLAMACC_LOCAL_FALLBACK=1. Tested both with/without and it did for my build. |
I'm working on a Raspberry Pi project, and I often need to recompile the kernel for it. I've been cross-compiling from my (fairly old; i7-6500U) intel box, so llama seems like it should save me a bunch of time.
I've got this sorta working. I've got a directory
_toolchain
with two scripts in it:_toolchain/activate
(which yousource
like you would to activate a python virtualenv):_toolchain/aarch64-linux-gnu-gcc
:As well as this Dockerfile at
images/gcc-aarch64-linux-gnu-jammy/Dockerfile
:(and, of course,
gcc-aarch64-linux-gnu
installed locally on my local box, which is also running jammy.)Much of the build seems to work, but I'm getting stuck building the
configs
module:LLAMACC_REMOTE_ASSEMBLE
is unset, so I'm not sure why it's trying to assemble remotely. I guess becausekernel/configs.c
has an inline assembly block:With
LLAMACC_VERBOSE=1
: gist because github doesn't like comments over 65kNotably, I don't see anything about kernel/config_data.gz in the
LLAMACC_VERBOSE
output. The file does exist locally.Calling
LLAMACC_LOCAL=1 make kernel/configs.o
succeeds, and seems to allow the rest of the build to continue. 🎉The text was updated successfully, but these errors were encountered: