I am trying to compile linux-4.4.39 kernel in my 4.4.0-59-generic(Host computer) platform. In my first step make menuconfig it works fine and generated .config file. But in second step make it throwing an error like below...

vinod@SYS_DELL:~/linux-4.4.39$ make
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  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
Makefile:556: recipe for target 'scripts' failed
make: *** [scripts] Error 2

I am new to kernel compilation. Please provide solution to my problem.

  • 2
    Do you have the libssl-dev package installed? It is needed ever since kernel 4.3-rc1. Jan 21 '17 at 7:42
  • thanks mr. Smythies i missed it and now i installed and tried its working now
    – kumar
    Jan 21 '17 at 7:51

I want to post this as an actual answer; the comment on the question from Doug Smythies is correct, you will need to install the package libssl-dev to resolve this error. Command: sudo apt install libssl-dev

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.