snapcraft.yaml: missing ubuntu-retpoline-extract-one script breaks the build
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Impact:
The Ubuntu kernel source code depends on the presence of the
retpoline-
scripts/
Snapcraft is oblivious to the debian details, and the clean target is never invoked, breaking the normal kernel build (make defconfig; make ...).
Check out the Xenia/generic or Bionic/generic tree, cd into it and execute: make defconfig && make or snapcraft.
...
HOSTCC scripts/
/bin/bash: ./scripts/
scripts/
make[2]: *** [scripts/
make[2]: *** Waiting for unfinished jobs....
HOSTLD arch/x86/
HOSTCC scripts/
HOSTCC scripts/
scripts/
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
CC arch/x86/
Makefile:589: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
AS arch/x86/
/bin/bash: ./scripts/
scripts/
make[1]: *** [arch/x86/
make[1]: *** Waiting for unfinished jobs....
AS arch/x86/
/bin/bash: ./scripts/
scripts/
make[1]: *** [arch/x86/
/bin/bash: ./scripts/
scripts/
make[1]: *** [arch/x86/
arch/x86/
make: *** [archprepare] Error 2
Failed to run 'make -j4 bzImage modules' for 'kernel': Exited with code 2.
Verify that the part is using the correct parameters and try again.
Fix:
To workaround that, before starting the build, make snapcraft do the copy and fix the build.
Regression risk:
The patch only modifies snapcraft.yaml, so none.
description: | updated |
description: | updated |
tags: | added: patch |
Changed in linux (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in linux (Ubuntu Xenial): | |
status: | New → In Progress |
Changed in linux (Ubuntu Xenial): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Bionic): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu): | |
status: | Incomplete → Fix Committed |
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1782116
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.