Bug 3125 - iptable 1.4.15 compile failed on qemux86,qemuarm i686 gmae-toolchain
Summary: iptable 1.4.15 compile failed on qemux86,qemuarm i686 gmae-toolchain
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.3 M5
Assignee: Kai Kang
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-09-18 10:52 UTC by liang li
Modified: 2012-10-29 07:50 UTC (History)
10 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description liang li 2012-09-18 10:52:38 UTC
1.3 M4 toolchain from below :
http://autobuilder.yoctoproject.org/pub/nightly/20120916-2/toolchain/i686/poky-eglibc-i686-i586-toolchain-gmae-1.2+snapshot-20120916.sh
http://autobuilder.yoctoproject.org/pub/nightly/20120916-2/toolchain/i686/poky-eglibc-i686-arm-toolchain-gmae-1.2+snapshot-20120916.sh

steps below (qemuarm for example):
1. source /opt/poky/1.2+snapshot/environment-setup-armv5te-poky-linux-gnueabi
2. ./configure ${CONFIGURE_FLAGS}
3. make

errors found below:
...
make[2]: Leaving directory `/buildarea/tester/test_compile_toolchain_fedora/iptables-1.4.15/include'
Making all in utils
make[2]: Entering directory `/buildarea/tester/test_compile_toolchain_fedora/iptables-1.4.15/utils'
arm-poky-linux-gnueabi-gcc  -march=armv5te  -marm -mthumb-interwork  -mtune=arm926ej-s --sysroot=/opt/poky/1.2+snapshot/sysroots/armv5te-poky-linux-gnueabi -DHAVE_CONFIG_H -I. -I..  -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT 	-DXTABLES_LIBDIR=\"/usr/local/lib/xtables\" -DXTABLES_INTERNAL -I../include -I../include   -Wall -Waggregate-return -Wmissing-declarations 	-Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes 	-Winline -pipe -O2 -pipe -g -feliminate-unused-debug-types -MT nfnl_osf.o -MD -MP -MF .deps/nfnl_osf.Tpo -c -o nfnl_osf.o nfnl_osf.c
nfnl_osf.c:45:39: fatal error: libnfnetlink/libnfnetlink.h: No such file or directory
compilation terminated.
make[2]: *** [nfnl_osf.o] Error 1
make[2]: Leaving directory `/buildarea/tester/test_compile_toolchain_fedora/iptables-1.4.15/utils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/buildarea/tester/test_compile_toolchain_fedora/iptables-1.4.15'
make: *** [all] Error 2

git info:e5c3513ca8abb21eb5e9b8c19d1b9199b14ae07c
git branch:poky/1.3_M4

test env:
host : Fedora 17 i686
Comment 1 Saul Wold 2012-09-19 23:25:46 UTC
Both of these are related

*** This bug has been marked as a duplicate of bug 2768 ***
Comment 2 Constantin Musca 2012-09-24 06:32:43 UTC
(In reply to comment #0)
> 1.3 M4 toolchain from below :
> http://autobuilder.yoctoproject.org/pub/nightly/20120916-2/toolchain/i686/
> poky-eglibc-i686-i586-toolchain-gmae-1.2+snapshot-20120916.sh
> http://autobuilder.yoctoproject.org/pub/nightly/20120916-2/toolchain/i686/
> poky-eglibc-i686-arm-toolchain-gmae-1.2+snapshot-20120916.sh
> 
> steps below (qemuarm for example):
> 1. source /opt/poky/1.2+snapshot/environment-setup-armv5te-poky-linux-gnueabi
> 2. ./configure ${CONFIGURE_FLAGS}
> 3. make
> 
> errors found below:
> ...
> make[2]: Leaving directory
> `/buildarea/tester/test_compile_toolchain_fedora/iptables-1.4.15/include'
> Making all in utils
> make[2]: Entering directory
> `/buildarea/tester/test_compile_toolchain_fedora/iptables-1.4.15/utils'
> arm-poky-linux-gnueabi-gcc  -march=armv5te  -marm -mthumb-interwork 
> -mtune=arm926ej-s
> --sysroot=/opt/poky/1.2+snapshot/sysroots/armv5te-poky-linux-gnueabi
> -DHAVE_CONFIG_H -I. -I..  -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES
> -D_FILE_OFFSET_BITS=64 -D_REENTRANT 
> -DXTABLES_LIBDIR=\"/usr/local/lib/xtables\" -DXTABLES_INTERNAL -I../include
> -I../include   -Wall -Waggregate-return -Wmissing-declarations 
> -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes 
> -Winline -pipe -O2 -pipe -g -feliminate-unused-debug-types -MT nfnl_osf.o
> -MD -MP -MF .deps/nfnl_osf.Tpo -c -o nfnl_osf.o nfnl_osf.c
> nfnl_osf.c:45:39: fatal error: libnfnetlink/libnfnetlink.h: No such file or
> directory
> compilation terminated.
> make[2]: *** [nfnl_osf.o] Error 1
> make[2]: Leaving directory
> `/buildarea/tester/test_compile_toolchain_fedora/iptables-1.4.15/utils'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/buildarea/tester/test_compile_toolchain_fedora/iptables-1.4.15'
> make: *** [all] Error 2
> 
> git info:e5c3513ca8abb21eb5e9b8c19d1b9199b14ae07c
> git branch:poky/1.3_M4
> 
> test env:
> host : Fedora 17 i686

There seems to be a problem with the rpath. On 32bit toolchains the RPATH is not relative to $ORIGIN.
On the other hand, the 64bit toolchains work.

Working example:poky-eglibc-x86_64-arm-toolchain-gmae-1.2+snapshot-20120918.sh
Not working example:poky-eglibc-i686-arm-toolchain-gmae-1.2+snapshot-20120918.sh
Comment 3 Kai Kang 2012-10-10 09:24:06 UTC
Bug 2768 has been fixed, but make still fail. So separate them.
Comment 4 Alexandru Georgescu 2012-10-11 13:39:19 UTC
(In reply to comment #3)
> Bug 2768 has been fixed, but make still fail. So separate them.

Hello Kai,
Are you still having this problem with RC4? (c9de24d3f4845251b01e2eab0aeeb7472badc5bb).

I have tested with it and I couldn't reproduce on my machine (FC17, 32bit)
Comment 5 liang li 2012-10-12 10:03:15 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > Bug 2768 has been fixed, but make still fail. So separate them.
> 
> Hello Kai,
> Are you still having this problem with RC4?
> (c9de24d3f4845251b01e2eab0aeeb7472badc5bb).
> 
> I have tested with it and I couldn't reproduce on my machine (FC17, 32bit)

thanks for your testing yesterday.In my test environment (FC17, 32bit),the error also not met. 
so please set the status to RESOLVED as before (you change it to NEEDINFO).
Comment 6 Kai Kang 2012-10-25 09:48:36 UTC
Because configure checks that libnfnetlink doesn't exist, so make doesn't link to libnfnetlink.so any more. Then make succeeds.
Comment 7 liang li 2012-10-29 07:50:54 UTC
no such error on:
git info:33440ee70623394d06a4b214c2be10788cba6d08
git branch: poky/master

test env:
host: Fedora 17 i686