Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103190 - media-libs/jpeg-mmx won't compile with -fforce-addr in CFLAGS
Summary: media-libs/jpeg-mmx won't compile with -fforce-addr in CFLAGS
Status: RESOLVED DUPLICATE of bug 100883
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-20 14:53 UTC by Krzysztof Raczkowski
Modified: 2005-08-20 15:37 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Raczkowski 2005-08-20 14:53:44 UTC
When I set -fforce-addr in my CFLAGS, I get this error:

gcc -O2 -g0 -ftracer -ffast-math -fforce-addr -s -pipe -march=prescott
-mfpmath=sse -maccumulate-outgoing-args -fomit-frame-pointer -DNDEBUG -DNO_DEBUG
-DG_DISABLE_ASSERT -DG_DISABLE_DEBUG -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS
-I. -c ./jcsample.c >/dev/null 2>&1
gcc -O2 -g0 -ftracer -ffast-math -fforce-addr -s -pipe -march=prescott
-mfpmath=sse -maccumulate-outgoing-args -fomit-frame-pointer -DNDEBUG -DNO_DEBUG
-DG_DISABLE_ASSERT -DG_DISABLE_DEBUG -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS
-I. -c -fPIC -DPIC ./jcphuff.c
./libtool --mode=compile gcc -O2 -g0 -ftracer -ffast-math -fforce-addr -s -pipe
-march=prescott -mfpmath=sse -maccumulate-outgoing-args -fomit-frame-pointer
-DNDEBUG -DNO_DEBUG -DG_DISABLE_ASSERT -DG_DISABLE_DEBUG -DG_DISABLE_CHECKS
-DG_DISABLE_CAST_CHECKS  -I. -c ./jcdctmgr.c
gcc -O2 -g0 -ftracer -ffast-math -fforce-addr -s -pipe -march=prescott
-mfpmath=sse -maccumulate-outgoing-args -fomit-frame-pointer -DNDEBUG -DNO_DEBUG
-DG_DISABLE_ASSERT -DG_DISABLE_DEBUG -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS
-I. -c -fPIC -DPIC ./jcdctmgr.c
mv -f jchuff.o jchuff.lo
gcc -O2 -g0 -ftracer -ffast-math -fforce-addr -s -pipe -march=prescott
-mfpmath=sse -maccumulate-outgoing-args -fomit-frame-pointer -DNDEBUG -DNO_DEBUG
-DG_DISABLE_ASSERT -DG_DISABLE_DEBUG -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS
-I. -c ./jchuff.c >/dev/null 2>&1
./jcdctmgr.c: In function `forward_DCT_x86float32':
./jcdctmgr.c:432: error: `asm' operand requires impossible reload
make: *** [jcdctmgr.lo] Błąd 1
make: *** Czekam na niezakończone zadania....
mv -f jcphuff.o jcphuff.lo
gcc -O2 -g0 -ftracer -ffast-math -fforce-addr -s -pipe -march=prescott
-mfpmath=sse -maccumulate-outgoing-args -fomit-frame-pointer -DNDEBUG -DNO_DEBUG
-DG_DISABLE_ASSERT -DG_DISABLE_DEBUG -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS
-I. -c ./jcphuff.c >/dev/null 2>&1

!!! ERROR: media-libs/jpeg-mmx-0.1.6 failed.

When I remove -fforce-addr flag, it compiles. 

Reproducible: Always
Steps to Reproduce:
1. add -fforce-addr to CFLAGS
2. run emerge media-libs/jpeg-mmx

Actual Results:  
jpeg-mmx won't compile

Expected Results:  
it should compile

You should filter -fforce-addr flag out in the ebuild
Comment 1 Krzysztof Raczkowski 2005-08-20 15:10:29 UTC
I forgot to include my emerge --info:

Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1,
2.6.12-nitro5-genetic i686)
=================================================================
System uname: 2.6.12-nitro5-genetic i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.0_pre6
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.12
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
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -g0 -ftracer -ffast-math -fforce-addr -s -pipe -march=prescott
-mfpmath=sse -maccumulate-outgoing-args -fomit-frame-pointer -DNDEBUG -DNO_DEBUG
-DG_DISABLE_ASSERT -DG_DISABLE_DEBUG -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -g0 -ftracer -ffast-math -fforce-addr -s -pipe -march=prescott
-mfpmath=sse -maccumulate-outgoing-args -momit-leaf-frame-pointer
-fvisibility-inlines-hidden -DNDEBUG -DNO_DEBUG -DG_DISABLE_ASSERT
-DG_DISABLE_DEBUG -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg candy distlocks moo sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.prz.edu.pl http://distfiles.gentoo.org 
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="pl_PL"
LC_ALL="pl_PL"
LDFLAGS="-Wl,-O1,--sort-common -s"
LINGUAS="pl"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync3.pl.gentoo.org/gentoo-portage"
USE="x86 X acl acpi alsa avi bash-completion berkdb bitmap-fonts cdr crypt cups
eds encode fam flac foomaticdb fortran gdbm gif gstreamer hal imagemagick imlib
java jpeg kde kdeenablefinal ldap libwww mad mmx mp3 mpeg ncurses nls nptl ogg
oggvorbis opengl pam pdflib perl pic png python qt quicktime readline sdl slang
spell sse ssl sysfs tcpd tiff truetype truetype-fonts type1-fonts unicode usb
vorbis xml2 xv zlib video_cards_radeon linguas_pl userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-08-20 15:37:57 UTC

*** This bug has been marked as a duplicate of 100883 ***