Yocto Kirkstone gnutls error: Libhogweed not found

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Yocto Kirkstone gnutls error: Libhogweed not found

Jump to solution
286 Views
ahmedmd
Contributor II

Hello Guys,

I'm trying to build an image using Yocto Kirkstone provided by NXP. I keep getting a missing library file missing error. The package is gnutls-3.7.4. It gives me error like libhogweed not found.

| checking for bison... no
| checking for byacc... no
| checking for a sed that does not truncate output... (cached) sed
| checking whether to build with code coverage support... no
| checking whether to enable maintainer-specific portions of Makefiles... yes
| checking for inline... inline
| checking for egrep... (cached) /home/ahmb1kor/kirkstone-yocto/gen2a_linux_ebu/src/imx-yocto-bsp/build_imx8dxccu/tmp/hosttools/grep -E
| checking for __get_cpuid_count... no
| checking for struct iovec.iov_base... yes
| checking for netinet/tcp.h... yes
| checking for stdatomic.h... yes
| checking for library containing __atomic_load_4... -latomic
| checking for threads.h... (cached) yes
| checking for sanitizer/asan_interface.h... no
| checking for valgrind/memcheck.h... no
| checking for getrandom... yes
| checking for KERN_ARND... no
| checking for getentropy... no
| checking for nettle >= 3.6... yes
| checking for hogweed >= 3.6 ... no
| configure: error:
|   ***
|   *** Libhogweed (nettle's companion library) 3.6 was not found. Note that you must compile nettle with gmp support.

I have tried including the below lines in the nettle bb file:- 

PACKAGES += "libnettle libhogweed"
FILES:libnettle = "${libdir}/libnettle.so.*"
FILES:libhogweed = "${libdir}/libhogweed.so.*"
EXTRA_OECONF += "--enable-shared"

This has not helped me. Any ideas on how to solve this error of mine ?

0 Kudos
1 Solution
201 Views
ahmedmd
Contributor II

I was able to solve this error. Posting the answer here in case someone else also gets this error and is looking for a solution.

This was caused due to incompatible versions. nettle_3.7.3 requires minimum gmp 6.1 version. But i was using gmp_4.2.1. 
After downloading a newer version layer of gmp and including it, the error went away. I used gmp_6.2.1 version to solve this error.

If you are encountering this error, my suggestion would be to first check the compatibility of the layers and software versions. 

View solution in original post

0 Kudos
3 Replies
202 Views
ahmedmd
Contributor II

I was able to solve this error. Posting the answer here in case someone else also gets this error and is looking for a solution.

This was caused due to incompatible versions. nettle_3.7.3 requires minimum gmp 6.1 version. But i was using gmp_4.2.1. 
After downloading a newer version layer of gmp and including it, the error went away. I used gmp_6.2.1 version to solve this error.

If you are encountering this error, my suggestion would be to first check the compatibility of the layers and software versions. 

0 Kudos
249 Views
ahmedmd
Contributor II

I'm trying to build the gnutls layer directly. I have given "bitbake gnutls"

I am doubting it might be a version mismatch. Does gmp_4.2.1 work with gnutls_4.7.3 ?

0 Kudos
260 Views
joanxie
NXP TechSupport
NXP TechSupport

what's your build steps? let me double check it

0 Kudos