Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 44101

Summary: Build (emerge) of libpng-1.2.5-r4 fails
Product: Gentoo Linux Reporter: colin osterhout <colin_osterhout>
Component: New packagesAssignee: SpanKY <vapier>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description colin osterhout 2004-03-08 22:13:16 UTC
processor information:
K6-2 500MHz

make.conf:
CFLAGS="-O3 -mcpu=k6-2 -fomit-frame-pointer"
CHOST="i586-pc-linux-gnu"
USE="ldap cdr ethereal mmx mysql pda samba usb sasl yahoo"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"

The build process fails with error.  Changing the CFLAGS optimization level to -O2 solves the problem.

Reproducible: Always
Steps to Reproduce:
1.  Find a K6-2 processor
2.  Set up your CFLAGS to include -O3
3.  emerge libpng


Actual Results:  
gcc -c -I/usr/include -Wall -O3 -mcpu=k6-2 -fomit-frame-pointer -funroll-loops 
 -fPIC -o pngget.pic.o pngget.c
/var/tmp/portage/libpng-1.2.5-r4/temp/ccYwBHjK.s: Assembler messages:
/var/tmp/portage/libpng-1.2.5-r4/temp/ccYwBHjK.s:1231: Error: value of
ffffffffffffff7f too large for field of 1 bytes at 00000000000011f5
/var/tmp/portage/libpng-1.2.5-r4/temp/ccYwBHjK.s:11605: Error: value of
ffffffffffffff7b too large for field of 1 bytes at 0000000000008d7f
make: *** [pngrtran.o] Error 1
make: *** Waiting for unfinished jobs....

Expected Results:  
Built correctly

Sorry - started performing another _long_ emerge after I got this to work!
Comment 1 SpanKY gentoo-dev 2004-03-10 18:25:13 UTC
you neglected to provide `emerge info`

chances are if you change -march=k6-2 to -march=k2 or -march=i586 it'll work with -O3
Comment 2 SpanKY gentoo-dev 2004-03-17 18:47:17 UTC
re-open when you provide something to work with
Comment 3 SpanKY gentoo-dev 2004-04-05 17:44:39 UTC
welp no feedback ...
Comment 4 SpanKY gentoo-dev 2004-04-05 17:44:52 UTC
... so goodbye