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 ?
已解决! 转到解答。
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.
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.