Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108764 - sys-arch/unzip failes to emerge on stage1 to stage2 rebuild on amd64
Summary: sys-arch/unzip failes to emerge on stage1 to stage2 rebuild on amd64
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2005-10-10 12:26 UTC by Anthony Mutiso
Modified: 2005-10-11 05:15 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Mutiso 2005-10-10 12:26:56 UTC
As per the installation handbook for AMD64 when attempting to perform an emerge
-ve system for a stage1 -> stage2 rebuild, the build failes on sys-arch/unzip
when tring to compile a i386 asm file. 

My host is a MSI K8N Neo4 Platinum/SLI with an AMD Antlon64 X2 4400+.
My profile is the default amd64/2005.1 one.
My gcc is set to "x86_64-pc-linux-gnu-3.4.4" but it is not able to compile the
i386 asm file in the package

Since app-arch/unzip is core package, may other system packages are not compiled
and as such I am not able to progress sucessfully from stage1 to stage2 on the

Reproducible: Always
Steps to Reproduce:
1. emerge -v sys-arch/unzip

Actual Results:  
>>> Unpacking source...
>>> Unpacking unzip552.tar.gz to /var/tmp/portage/unzip-5.52-r1/work
 * Applying unzip-5.52-no-exec-stack.patch ...                                 
                         [ ok ]
>>> Source unpacked.
QA Notice: USE Flag 'userland_Darwin' not in IUSE for app-arch/unzip-5.52-r1
make: Entering directory `/var/tmp/portage/unzip-5.52-r1/work/unzip-5.52'
NOTE:  use linux_noasm target for non-Intel Linux compiles.
make unzips CC=x86_64-pc-linux-gnu-gcc LD=x86_64-pc-linux-gnu-gcc AS=gcc\
 CF="-O3 -march=athlon64 -pipe -ffast-math -funroll-all-loops -funit-at-a-time
-fpeel-loops -ftracer -funswitch-loops -fomit-frame-pointer -msse3
 AF="-Di386 " CRC32=crc_gcc
make[1]: Entering directory `/var/tmp/portage/unzip-5.52-r1/work/unzip-5.52'
x86_64-pc-linux-gnu-gcc -c -O3 -march=athlon64 -pipe -ffast-math
-funroll-all-loops -funit-at-a-time -fpeel-loops -ftracer -funswitch-loops
-fomit-frame-pointer -msse3 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -Wall -I. -DASM_CRC  unzip.c
gcc -Di386  -x assembler-with-cpp -c -o crc_gcc.o crc_i386.S
crc_i386.S: Assembler messages:
crc_i386.S:146: Error: suffix or operands invalid for `push'
crc_i386.S:147: Error: suffix or operands invalid for `push'
crc_i386.S:148: Error: suffix or operands invalid for `push'
crc_i386.S:149: Error: suffix or operands invalid for `push'
crc_i386.S:150: Error: suffix or operands invalid for `push'
crc_i386.S:151: Error: suffix or operands invalid for `push'
crc_i386.S:228: Error: suffix or operands invalid for `pop'
crc_i386.S:229: Error: suffix or operands invalid for `pop'
crc_i386.S:230: Error: suffix or operands invalid for `pop'
crc_i386.S:231: Error: suffix or operands invalid for `pop'
crc_i386.S:232: Error: suffix or operands invalid for `pop'
crc_i386.S:233: Error: suffix or operands invalid for `pop'
make[1]: *** [crc_gcc.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/unzip-5.52-r1/work/unzip-5.52'
make: *** [linux] Error 2
make: Leaving directory `/var/tmp/portage/unzip-5.52-r1/work/unzip-5.52'

!!! ERROR: app-arch/unzip-5.52-r1 failed.
!!! Function src_compile, Line 39, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.

Expected Results:  
The build should have completed sucessfully.

livecd ~ # emerge info
Portage 2.0.53_rc4 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2,
2.6.12-gentoo-r6 x86_64)
System uname: 2.6.12-gentoo-r6 x86_64 AMD Hammer Family processor - Model Unknown
Gentoo Base System version 1.12.0_pre8
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O3 -march=athlon64 -pipe"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /usr/share/texmf/dvips
CXXFLAGS="-O3 -march=athlon64 -pipe"
FEATURES="autoconfig distlocks fixpackages sandbox sfperms strict userpriv
MAKEOPTS="-j2 -w"
USE="amd64 X aac acl acpi alsa apache2 avi bash-completion berkdb bitmap-fonts
bonobo breakme calendar caps cdr crypt cups curl dba dbm dbus dga directfb doc
dvd dvdr eds emacs emboss encode esd evo exif fam fbcon flac flash foomaticdb
fortran freetds gcj gd gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml guile hal
hardenedphp imagemagick imap imlib ipv6 java jikes jpeg junit kde kerberos lcms
ldap leim libg++ libgda libwww lzw lzw-tiff maildir mbox mcal mime mozilla mp3
mpeg ncurses nls objc odbc oggvorbis opengl oss pam pdflib perl png postgres
ppds python qt quicktime readline ruby samba sdl session shared sharedmem
sockets spell ssl svg tcltk tcpd theora tiff truetype truetype-fonts type1-fonts
unicode usb userlocales vhosts x86 xml2 xmms xpm xv zlib linguas_en userland_GNU
kernel_linux elibc_glibc"
Comment 1 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-10-10 12:33:25 UTC
take x86 out of your use flags.  It's not valid on amd64.
Comment 2 Anthony Mutiso 2005-10-11 05:15:53 UTC
Okay... I see it now. Being mt first amd64 host, I thought I caught all the

Thanks for catching that. The build completed succesfully once I removed x86
from my use flags.

Thanks again!