Bug 6277 - nettle failed to build in nightly-multilib
Summary: nettle failed to build in nightly-multilib
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.7
Hardware: All Multiple
: Medium+ normal
Target Milestone: 1.7 M1
Assignee: valentin
QA Contact: Andra Necula
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-05-07 15:57 UTC by Paul Eggleton
Modified: 2014-08-29 08:32 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Eggleton 2014-05-07 15:57:24 UTC
I'm not sure if this is a nettle component we should just disable (since a dependency chain of gnutls -> nettle -> openssl would obviously be undesirable) but in any case something is going wrong on the autobuilder:

| gcc  -I.. -I/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-multilib/build/build/tmp/work/x86_64-linux/nettle-native/2.7.1-r0/nettle-2.7.1 -isystem/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-multilib/build/build/tmp/sysroots/x86_64-linux/usr/include -DHAVE_CONFIG_H -isystem/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-multilib/build/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -ggdb3 -Wno-pointer-sign -Wall -W   -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes   -Wpointer-arith -Wbad-function-cast -Wnested-externs -fpic  -c /home/pokybuild/yocto-autobuilder/yocto-slave/nightly-multilib/build/build/tmp/work/x86_64-linux/nettle-native/2.7.1-r0/nettle-2.7.1/examples/next-prime.c && true
| /home/pokybuild/yocto-autobuilder/yocto-slave/nightly-multilib/build/build/tmp/work/x86_64-linux/nettle-native/2.7.1-r0/nettle-2.7.1/examples/nettle-openssl.c:40:25: fatal error: openssl/aes.h: No such file or directory
|  #include <openssl/aes.h>
|                          ^
| compilation terminated.
| Makefile:44: recipe for target 'nettle-openssl.o' failed
| make[1]: *** [nettle-openssl.o] Error 1

Full log:

https://autobuilder.yoctoproject.org/main/builders/nightly-multilib/builds/81/steps/BuildImages_4/logs/stdio
Comment 1 valentin 2014-05-08 09:32:59 UTC
I've tried to reproduce this on my localhost: with or without openssl(-native) built before nettle-native I cannot reproduce it. I had a look in configure: it checks for openssl/aes.h and if header is missing, it does not include openssl glue in benchmark program. I'll update this bug as soon as I find how to reproduce it.
Comment 2 Paul Eggleton 2014-05-08 10:43:10 UTC
You may not be able to reproduce it easily, but there is a clue there - if openssl/aes.h is there during configure and then not there during compile (which is possible since there's no dependency to ensure it's not in the middle of rebuilding OpenSSL at the same time) then this situation could happen. If this is indeed the issue I would suggest just forcing this particular functionality off, because adding a dependency on OpenSSL would be wrong in this case. Hopefully this is as simple as adding the appropriate configure argument.
Comment 3 valentin 2014-05-08 11:42:47 UTC
Also a bug in the configure script might exists so maybe adding --disable-openssl will have any effect.
Comment 5 Andra Necula 2014-08-29 08:32:48 UTC
Verified 
Cheers! Andra