Yocto Kirkstone gnutls error: Libhogweed not found

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Yocto Kirkstone gnutls error: Libhogweed not found

跳至解决方案
332 次查看
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 项奖励
回复
1 解答
247 次查看
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 项奖励
回复
3 回复数
248 次查看
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 项奖励
回复
295 次查看
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 项奖励
回复
306 次查看
joanxie
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复