** Also affects: linux (Ubuntu Bionic)
   Importance: Undecided
       Status: New

** Also affects: linux (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Changed in: linux (Ubuntu Bionic)
       Status: New => In Progress

** Changed in: linux (Ubuntu Xenial)
       Status: New => In Progress

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
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
Status in linux source package in Xenial:
  In Progress
Status in linux source package in Bionic:
  In Progress

Bug description:
  Impact:

  The Ubuntu kernel source code depends on the presence of the
  retpoline-extract-one file in the script directory during build (see
  scripts/Makefile.build::cmd_ubuntu_retpoline) - such a file lives in the 
debian directory and is copied to scripts during the 'debian/rules clean' phase.

  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/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:

  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.

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

_______________________________________________
Mailing list: https://launchpad.net/~group.of.nepali.translators
Post to     : group.of.nepali.translators@lists.launchpad.net
Unsubscribe : https://launchpad.net/~group.of.nepali.translators
More help   : https://help.launchpad.net/ListHelp

Reply via email to