Kernel Snap build error

MikeB mabnhdev at gmail.com
Thu Dec 8 14:59:17 UTC 2016


I've been building custom kernel snaps for a while.

I just tried to build a kernel snap for the first time in about a
month and the build is now failing.

I'm running an up-to-date Xenial desktop.

I get the following....

Any idea what's wrong?

Thanks, Mike

mabnhdev at my-ubuntu:~/snappy-ecos$ snapcraft clean && snapcraft
Searching for local plugin for x-kernel
Skipping cleaning priming area for kernel (already clean)
Skipping cleaning staging area for kernel (already clean)
Skipping cleaning build for kernel (already clean)
Skipping cleaning pulled source for kernel (already clean)
Searching for local plugin for x-kernel
Preparing to pull kernel
Pulling kernel
Cloning into '/home/mabnhdev/snappy-ecos/parts/kernel/src'...
remote: Counting objects: 5201146, done.
remote: Compressing objects: 100% (767433/767433), done.
remote: Total 5201146 (delta 4402743), reused 5197657 (delta 4399295)
Receiving objects: 100% (5201146/5201146), 1.17 GiB | 5.28 MiB/s, done.
Resolving deltas: 100% (4402743/4402743), done.
Checking connectivity... done.
Checking out files: 100% (53742/53742), done.
Getting details for ubuntu-core
Downloading ubuntu-core
Downloading 'os.snap'[========================================================================================================]
100%
Successfully downloaded ubuntu-core at
/home/mabnhdev/snappy-ecos/parts/kernel/src/os.snap
Preparing to build kernel
Building kernel
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --oldconfig Kconfig
.config:2613:warning: override: reassigning to symbol E1000
.config:2614:warning: override: reassigning to symbol E1000E
.config:2616:warning: override: reassigning to symbol IGB
.config:2619:warning: override: reassigning to symbol IGBVF
.config:3713:warning: override: reassigning to symbol I2C_SMBUS
.config:3730:warning: override: reassigning to symbol I2C_I801
.config:3732:warning: override: reassigning to symbol I2C_ISMT
.config:7711:warning: override: reassigning to symbol SQUASHFS
.config:7721:warning: override: reassigning to symbol SQUASHFS_XZ
.config:7911:warning: override: reassigning to symbol DEBUG_INFO
.config:8525:warning: override: reassigning to symbol DEBUG_INFO
.config:8526:warning: override: reassigning to symbol SQUASHFS
.config:8527:warning: override: reassigning to symbol SQUASHFS_XZ
.config:8528:warning: override: reassigning to symbol E1000
.config:8529:warning: override: reassigning to symbol E1000E
.config:8530:warning: override: reassigning to symbol I2C_SMBUS
.config:8531:warning: override: reassigning to symbol I2C_I801
.config:8532:warning: override: reassigning to symbol I2C_ISMT
.config:8533:warning: override: reassigning to symbol IGB
.config:8534:warning: override: reassigning to symbol IGBVF
#
# configuration written to .config
#
make -j4 bzImage modules
scripts/kconfig/conf  --silentoldconfig Kconfig
  SYSTBL  arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h
  SYSHDR  arch/x86/entry/syscalls/../../include/generated/asm/unistd_32_ia32.h
  HOSTCC  scripts/basic/bin2c
  CHK     include/config/kernel.release
  WRAP    arch/x86/include/generated/asm/clkdev.h
  WRAP    arch/x86/include/generated/asm/cputime.h
  WRAP    arch/x86/include/generated/asm/dma-contiguous.h
  WRAP    arch/x86/include/generated/asm/early_ioremap.h
  WRAP    arch/x86/include/generated/asm/mcs_spinlock.h
  WRAP    arch/x86/include/generated/asm/mm-arch-hooks.h
  CHK     include/generated/uapi/linux/version.h
  UPD     include/generated/uapi/linux/version.h
  SYSHDR  arch/x86/entry/syscalls/../../include/generated/asm/unistd_64_x32.h
  SYSTBL  arch/x86/entry/syscalls/../../include/generated/asm/syscalls_64.h
  HOSTCC  scripts/genksyms/genksyms.o
  SHIPPED scripts/genksyms/parse.tab.c
  SHIPPED scripts/genksyms/lex.lex.c
  SHIPPED scripts/genksyms/keywords.hash.c
  SHIPPED scripts/genksyms/parse.tab.h
  HOSTCC  scripts/genksyms/parse.tab.o
  HOSTCC  scripts/genksyms/lex.lex.o
  HYPERCALLS arch/x86/entry/syscalls/../../include/generated/asm/xen-hypercalls.h
  SYSHDR  arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_32.h
  SYSHDR  arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_64.h
  SYSHDR  arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_x32.h
  HOSTLD  scripts/genksyms/genksyms
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  CC      scripts/mod/devicetable-offsets.s
  MKELF   scripts/mod/elfconfig.h
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/sumversion.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/selinux/genheaders/genheaders
  UPD     include/config/kernel.release
  HOSTCC  scripts/selinux/mdp/mdp
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/conmakehash
  HOSTLD  scripts/mod/modpost
  HOSTCC  scripts/recordmcount
  HOSTCC  scripts/sortextable
  HOSTCC  scripts/asn1_compiler
  HOSTCC  scripts/sign-file
scripts/sign-file.c:23:30: fatal error: openssl/opensslv.h: No such
file or directory
compilation terminated.
scripts/Makefile.host:91: recipe for target 'scripts/sign-file' failed
make[1]: *** [scripts/sign-file] Error 1
make[1]: *** Waiting for unfinished jobs....
Makefile:565: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
Command '['/bin/sh', '/tmp/tmpvvu630d8', 'make', '-j4', 'bzImage',
'modules']' returned non-zero exit status 2
mabnhdev at my-ubuntu:~/snappy-ecos$



More information about the Devices mailing list