Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172209 - net-firewall/iptables cross compile build failure
Summary: net-firewall/iptables cross compile build failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: ARM Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-25 18:23 UTC by Karl H
Modified: 2007-04-08 17:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,3.58 KB, text/plain)
2007-03-25 18:24 UTC, Karl H
Details
cc8Gb5tg.out (cc8Gb5tg.out,90.00 KB, text/plain)
2007-03-25 18:28 UTC, Karl H
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karl H 2007-03-25 18:23:53 UTC
extensions/libipt_connlimit.c:71: internal compiler error: in arm_print_operand, at config/arm/arm.c:9875
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
{standard input}: Assembler messages:
{standard input}:147: Warning: partial line at end of file ignored
{standard input}:90: Error: undefined local label `.L20'
{standard input}:109: Error: undefined local label `.L20'
{standard input}:111: Error: undefined local label `.L20'
{standard input}:129: Error: undefined local label `.L20'
{standard input}:136: Error: undefined local label `.L20'
Preprocessed source stored into /var/tmp/portage/net-firewall/iptables-1.3.7/temp/cc8Gb5tg.out file, please attach this to your bugreport.
make: *** [extensions/libipt_connlimit_sh.o] Error 1


Reproducible: Always

Steps to Reproduce:
1.install crossdev armeb-softfloat-linux-uclibc
2. xmerge -av iptables 
3.

Actual Results:  
cat /var/tmp/portage/net-firewall/iptables-1.3.7/temp/build.log
>>> Unpacking source...
>>> Unpacking iptables-1.3.7.tar.bz2 to /var/tmp/portage/net-firewall/iptables-1.3.7/work
 * Applying iptables-1.3.7-more-exact-check-grep.patch ...                                                   [ ok ]
 * Applying iptables-1.3.7-sparc64.patch ...                                                                 [ ok ]
 * Applying install_ipv6_apps.patch ...                                                                      [ ok ]
 * Applying install_all_dev_files.patch-1.3.1 ...                                                            [ ok ]
 * Applying grsecurity-1.2.8-iptables.patch-1.3.1 ...                                                        [ ok ]
 * Applying iptables-1.3.1-compilefix.patch ...                                                              [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-firewall/iptables-1.3.7/work/iptables-1.3.7 ...
-Os
Making dependencies: please wait...
Extensions found: IPv4:connbytes IPv4:dccp IPv4:recent IPv4:string IPv6:REJECT IPv6:esp IPv6:sctp
armeb-softfloat-linux-uclibc-gcc -Os -pipe -Wall -Wunused -I/usr/include -Iinclude/ -DIPTABLES_VERSION=\"1.3.7\"  -fPIC -o extensions/libipt_stealth_sh.o -c extensions/libipt_stealth.c
armeb-softfloat-linux-uclibc-gcc -shared  -o extensions/libipt_stealth.so extensions/libipt_stealth_sh.o
armeb-softfloat-linux-uclibc-gcc -Os -pipe -Wall -Wunused -I/usr/include -Iinclude/ -DIPTABLES_VERSION=\"1.3.7\"  -fPIC -o extensions/libipt_ah_sh.o -c extensions/libipt_ah.c
armeb-softfloat-linux-uclibc-gcc -shared  -o extensions/libipt_ah.so extensions/libipt_ah_sh.o
armeb-softfloat-linux-uclibc-gcc -Os -pipe -Wall -Wunused -I/usr/include -Iinclude/ -DIPTABLES_VERSION=\"1.3.7\"  -fPIC -o extensions/libipt_addrtype_sh.o -c extensions/libipt_addrtype.c
armeb-softfloat-linux-uclibc-gcc -shared  -o extensions/libipt_addrtype.so extensions/libipt_addrtype_sh.o
armeb-softfloat-linux-uclibc-gcc -Os -pipe -Wall -Wunused -I/usr/include -Iinclude/ -DIPTABLES_VERSION=\"1.3.7\"  -fPIC -o extensions/libipt_comment_sh.o -c extensions/libipt_comment.c
armeb-softfloat-linux-uclibc-gcc -shared  -o extensions/libipt_comment.so extensions/libipt_comment_sh.o
armeb-softfloat-linux-uclibc-gcc -Os -pipe -Wall -Wunused -I/usr/include -Iinclude/ -DIPTABLES_VERSION=\"1.3.7\"  -fPIC -o extensions/libipt_connlimit_sh.o -c extensions/libipt_connlimit.c
extensions/libipt_connlimit.c: In function `parse':
extensions/libipt_connlimit.c:71: internal compiler error: in arm_print_operand, at config/arm/arm.c:9875
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
{standard input}: Assembler messages:
{standard input}:147: Warning: partial line at end of file ignored
{standard input}:90: Error: undefined local label `.L20'
{standard input}:109: Error: undefined local label `.L20'
{standard input}:111: Error: undefined local label `.L20'
{standard input}:129: Error: undefined local label `.L20'
{standard input}:136: Error: undefined local label `.L20'
Preprocessed source stored into /var/tmp/portage/net-firewall/iptables-1.3.7/temp/cc8Gb5tg.out file, please attach this to your bugreport.
make: *** [extensions/libipt_connlimit_sh.o] Error 1

!!! ERROR: net-firewall/iptables-1.3.7 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3976:   Called src_compile
  iptables-1.3.7.ebuild, line 132:   Called die

!!! failure
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/net-firewall/iptables-1.3.7/temp/build.log'.



Expected Results:  
compile normally
Comment 1 Karl H 2007-03-25 18:24:56 UTC
Created attachment 114396 [details]
build.log
Comment 2 Karl H 2007-03-25 18:28:33 UTC
Created attachment 114398 [details]
cc8Gb5tg.out
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-03-25 20:04:00 UTC
Reopen with emerge --info output if you can reproduce this again, i.e. it fails repeatedly at *exactly* the same place.
Comment 4 Karl H 2007-03-25 20:42:36 UTC
always fails at the same point.

compiled crossdev with:

UCLIBC_CPU="ARM_XSCALE" USE="-*" crossdev -v \
--binutils 2.17 \
--gcc 3.4.6-r2 \
--kernel 2.6.20 \
--libc 0.9.28.3 \
--ex-gdb \
--target armeb-softfloat-linux-uclibc


xmerge --info
xmerge script  CBUILD=i686-pc-linux-gnu SYSROOT=/usr/armeb-softfloat-linux-uclibc ROOT=/usr/armeb-softfloat-linux-uclibc
Portage 2.1.2.2 (uclibc/arm/armeb, gcc-3.4.6, unavailable, 2.6.20-gentoo-r2 i686)
=================================================================
System uname: 2.6.20-gentoo-r2 i686 Intel(R) Core(TM)2 CPU         T5500  @ 1.66GHz
Unknown Host Operating System
Timestamp of tree: Sun, 25 Mar 2007 14:30:01 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="arm"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -pipe"
CHOST="armeb-softfloat-linux-uclibc"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer nodoc noinfo noman sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="arm bitmap-fonts cli cracklib dri make-symlinks midi ncurses pcre readline reflection session spl truetype-fonts type1-fonts uclibc xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="uclibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-03-25 20:52:17 UTC
Please upgrade your gcc before reporting compiler issues...

http://www.gentoo.org/doc/en/gcc-upgrading.xml
Comment 6 Karl H 2007-04-01 13:46:10 UTC
This is a bug with the ebuild, 

Removing one line from the ebuild:

export KERNEL_DIR="/usr"

fixes the compile. and iptables now works on my target.  

The reason is for example when cross compiling KERNEL_DIR is not correct. for example for arch armeb-softfloat-linux-uclibc   

KERNEL_DIR=/usr/armeb-softfloat-linux-uclibc/usr/src/linux 
Comment 7 SpanKY gentoo-dev 2007-04-08 17:51:14 UTC
fixed in 1.3.7