Bug 8123

Summary: the aarch64 toolchain can not build iptables on i686 host
Product: [Yocto Project Subprojects] ADT Reporter: Yi Zhao <yi.zhao>
Component: adtAssignee: Unassigned <unassigned>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: Low CC: akuster, alexandru.c.georgescu, ke.zou, poky.adt.watcher, poky.watcher, yi.zhao, zhangle.yang
Version: 1.9   
Target Milestone: Future   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
build.log none

Description Yi Zhao 2015-08-07 08:29:38 UTC
Created attachment 2636 [details]
build.log

Toolchain location: http://autobuilder.yoctoproject.org/pub/releases/yocto-1.9_M2.rc1/toolchain/i686/

Git rev: master/22078d5e533e59a9aa6999abefbf6ece4e01de8d

Steps:
1. Download the aarch64 toolchain sdk for i686 from above link and install it.
2. Setup environment:
   $ . /opt/poky/1.8+snapshot/environment-setup-aarch64-poky-linux
3. Build iptables 1.4.21:
   $ cd iptables-1.4.21/
   $ ./autogen.sh
   $ ./configure ${CONFIGURE_FLAGS}
   $ make

Error message:
########################
aarch64-poky-linux-gcc  --sysroot=/opt/poky/1.8+snapshot/sysroots/aarch64-poky-linux -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  -DENABLE_IPV4 -DENABLE_IPV6 -O2 -pipe -g -feliminate-unused-debug-types -MT xtables_multi-iptables-xml.o -MD -MP -MF .deps/xtables_multi-iptables-xml.Tpo -c -o xtables_multi-iptables-xml.o `test -f 'iptables-xml.c' || echo './'`iptables-xml.c
iptables-xml.c: In function 'do_rule_part.constprop':
iptables-xml.c:525:1: internal compiler error: Segmentation fault
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Makefile:556: recipe for target 'xtables_multi-iptables-xml.o' failed
#########################

This issue happens on Fedora 22 i686 and debian 8 i686, but doesn't happen on x86_64 hosts.
Comment 1 Yi Zhao 2015-09-18 06:57:14 UTC
This issue can not reproduced in 1.9 M3 rc1 build.
We can close it.
Comment 2 Armin Kuster 2017-09-30 00:25:33 UTC
closing
Comment 3 Armin Kuster 2017-09-30 00:25:47 UTC
.