| Summary: | iptables-1.4.12.2-r0: task do_compile: Failed: unknown type name __aligned_u64 | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Dexuan Cui <dexuan.cui> |
| Component: | core | Assignee: | Dongxiao Xu <dongxiao.xu> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | Medium | CC: | corneliux.stoicescu, liezhi.yang, meta.mr.watcher, meta.watcher, sgw |
| Version: | 1.2 | ||
| Target Milestone: | 1.2 M4 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
Dexuan Cui
2012-03-03 03:04:07 UTC
some clues:
1) in iptables_1.4.12.2.bb,
--with-kernel=${STAGING_INCDIR} should be
--with-kernel=${STAGING_INCDIR}/..
because iptable's configure would add a /include after ${STAGING_INCDIR}.
2) iptables has a linux/types, but hasn't linux/if_packet.h.
so looks our sysroot's linux/if_packet.h. is found, but iptable's own linux/types.h is found!
3) iptables-1.4.12.2/extensions/GNUmakefile.in:
AM_CPPFLAGS = ${regular_CPPFLAGS} -I${top_builddir}/include -I${top_builddir} -I${top_srcdir}/include ${kinclude_CPPFLAGS}
the -I order seems not ok: kinclude_CPPFLAGS (that means the dir in our sysroot) should come first and ${top_builddir}/include should come secondly?
At present I haven't time to dig into the bug...
After some discussion in yocto@yoctoproject.org, we think the best fix can be not overriding PREFERRED_PROVIDER_linux-libc-headers in the meta-intel layer. Tom sent out a patch, so this bug should disappear once the patch is accepted: http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel/commit/?h=tzanussi/libc- distro-change&id=d9132cc66316be45f44beeea6eba734bb3ab337d (In reply to comment #2) > After some discussion in yocto@yoctoproject.org, we think the best fix can be > not overriding PREFERRED_PROVIDER_linux-libc-headers in the meta-intel layer. > Tom sent out a patch, so this bug should disappear once the patch is accepted: > > http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel/commit/?h=tzanussi/libc- > distro-change&id=d9132cc66316be45f44beeea6eba734bb3ab337d Tom's patch has been in meta-intel now and i can verify the bug doesn't appear with the patch: http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel/commit/?id=d9132cc66316be45f44beeea6eba734bb3ab337d I reproduced this on Denzil 1.2.1 with cross i686 toolchain on a x86_64 machine. Steps to reproduce: 1) Install toolchain in /opt (ex: /opt/poky/... ) 2) Download iptables project and extract it (http://netfilter.org/projects/iptables/files/iptables-1.4.11.tar.bz2) 3)inside the ipdatles directory, run: libtoolize; ./autogen.sh; ./configure ${CONFIGURE_FLAGS}; make 4) notice same error as described Branch: Denzil Commit: 846b7c388738f382e83576e77b705aa547c1dd9b As per recent decision regarding bug reopening, I am setting this back to verified and opening a new one. This issue does not happen with a newer version of the iptables http://netfilter.org/projects/iptables/files/iptables-1.4.17.tar.bz2 branch: denzil commit: 3456295898bf157e40ea1f8c335f0b7285d3d8a7 Closing this back to verified without opening a new bug. |