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.

** Changed in: linux (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1782116

Title:
  snapcraft.yaml: missing ubuntu-retpoline-extract-one script breaks the
  build

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Impact:

  On a generic amd64 environment, check out the Xenia/generic or
  Bionic/generic tree, cd into it and execute snapcraft - it should
  build the corresponding kernel snap.

  linux $ snapcraft
  ...
    HOSTCC  scripts/mod/mk_elfconfig
  /bin/bash: ./scripts/ubuntu-retpoline-extract-one: No such file or directory
  scripts/Makefile.build:332: recipe for target 'scripts/mod/empty.o' failed
  make[2]: *** [scripts/mod/empty.o] Error 127
  make[2]: *** Waiting for unfinished jobs....
    HOSTLD  arch/x86/tools/relocs
    HOSTCC  scripts/selinux/genheaders/genheaders
    HOSTCC  scripts/selinux/mdp/mdp
  scripts/Makefile.build:606: recipe for target 'scripts/mod' failed
  make[1]: *** [scripts/mod] Error 2
  make[1]: *** Waiting for unfinished jobs....
    CC      arch/x86/purgatory/purgatory.o
  Makefile:589: recipe for target 'scripts' failed
  make: *** [scripts] Error 2
  make: *** Waiting for unfinished jobs....
    AS      arch/x86/purgatory/stack.o
  /bin/bash: ./scripts/ubuntu-retpoline-extract-one: No such file or directory
  scripts/Makefile.build:332: recipe for target 
'arch/x86/purgatory/purgatory.o' failed
  make[1]: *** [arch/x86/purgatory/purgatory.o] Error 127
  make[1]: *** Waiting for unfinished jobs....
    AS      arch/x86/purgatory/setup-x86_64.o
  /bin/bash: ./scripts/ubuntu-retpoline-extract-one: No such file or directory
  scripts/Makefile.build:435: recipe for target 'arch/x86/purgatory/stack.o' 
failed
  make[1]: *** [arch/x86/purgatory/stack.o] Error 127
  /bin/bash: ./scripts/ubuntu-retpoline-extract-one: No such file or directory
  scripts/Makefile.build:435: recipe for target 
'arch/x86/purgatory/setup-x86_64.o' failed
  make[1]: *** [arch/x86/purgatory/setup-x86_64.o] Error 127
  arch/x86/Makefile:260: recipe for target 'archprepare' failed
  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:
  The retpoline-extract-one should be copied to the parts/build/script 
directory, apply the attached patch to let snapcraft do it before starting the 
kernel build

  Regression risk:
  None, since we are only patching the snapcraft.yaml file (and it didn't build 
in the first place).

  ---

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1782116/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to