Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 67441 - media-video/avifile-0.7.41.20041001 fails to build when -freduce-all-givs flag used
Summary: media-video/avifile-0.7.41.20041001 fails to build when -freduce-all-givs fla...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-13 12:02 UTC by Maciej Zieba
Modified: 2004-11-12 02:50 UTC (History)
1 user (show)

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 Maciej Zieba 2004-10-13 12:02:14 UTC
I've tried to build my system with flags I have received from Acovea but it failed on avifile, needed for k3b. My flags:
CFLAGS="-march=pentium4 -pipe -O1 -maccumulate-outgoing-args -fno-cprop-registers -fno-omit-frame-pointer -fno-crossjumping -fdelete-null-pointer-checks -fno-delayed-branch -finline-limit=600 -frerun-cse-after-loop -fsched-spec -falign-labels -freduce-all-givs -freorder-functions"
CXXFLAGS="$CFLAGS"

The flag -freduce-all-givs is somehow reduced to -freduce-allivs and the compiler complains about it.

When I remove -freduce-all-givs from CFLAGS everything builds fine.

Reproducible: Always
Steps to Reproduce:
1. Add -freduce-all-givs to CFLAGS
2. emerge avifile
3.

Actual Results:  
Making all in libavformat
make[2]: Entering directory
`/var/tmp/portage/avifile-0.7.41.20041001/work/avifile-0.7-0.7.41/ffmpeg/libavformat'
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../include
  -DHAVE_AV_CONFIG_H -I./../libavcodec -I./.. -Wall -Wno-unused -I../../include
 -march=pentium4 -pipe -O1 -maccumulate-outgoing-args -fno-cprop-registers
-fno-omit-frame-pointer -fno-crossjumping -fdelete-null-pointer-checks
-fno-delayed-branch -finline-limit=600 -frerun-cse-after-loop -fsched-spec
-falign-labels -freduce-allivs -freorder-functions -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -pipe -c 4xm.c
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../include
  -DHAVE_AV_CONFIG_H -I./../libavcodec -I./.. -Wall -Wno-unused -I../../include
 -march=pentium4 -pipe -O1 -maccumulate-outgoing-args -fno-cprop-registers
-fno-omit-frame-pointer -fno-crossjumping -fdelete-null-pointer-checks
-fno-delayed-branch -finline-limit=600 -frerun-cse-after-loop -fsched-spec
-falign-labels -freduce-allivs -freorder-functions -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -pipe -c allformats.c
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I../../include -DHAVE_AV_CONFIG_H
-I./../libavcodec -I./.. -Wall -Wno-unused -I../../include -march=pentium4 -pipe
-O1 -maccumulate-outgoing-args -fno-cprop-registers -fno-omit-frame-pointer
-fno-crossjumping -fdelete-null-pointer-checks -fno-delayed-branch
-finline-limit=600 -frerun-cse-after-loop -fsched-spec -falign-labels
-freduce-allivs -freorder-functions -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_GNU_SOURCE -pipe -c 4xm.c  -fPIC -DPIC -o .libs/4xm.o
 gcc -DHAVE_CONFIG_H -I. -I. -I../../include -DHAVE_AV_CONFIG_H
-I./../libavcodec -I./.. -Wall -Wno-unused -I../../include -march=pentium4 -pipe
-O1 -maccumulate-outgoing-args -fno-cprop-registers -fno-omit-frame-pointer
-fno-crossjumping -fdelete-null-pointer-checks -fno-delayed-branch
-finline-limit=600 -frerun-cse-after-loop -fsched-spec -falign-labels
-freduce-allivs -freorder-functions -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_GNU_SOURCE -pipe -c allformats.c  -fPIC -DPIC -o .libs/allformats.o
cc1: error: unrecognized command line option "-freduce-allivs"
make[2]: *** [4xm.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: error: unrecognized command line option "-freduce-allivs"
make[2]: *** [allformats.lo] Error 1
make[2]: Leaving directory
`/var/tmp/portage/avifile-0.7.41.20041001/work/avifile-0.7-0.7.41/ffmpeg/libavformat'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/avifile-0.7.41.20041001/work/avifile-0.7-0.7.41/ffmpeg'
make: *** [all-recursive] Error 1

!!! ERROR: media-video/avifile-0.7.41.20041001 failed.
!!! Function src_compile, Line 125, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


Expected Results:  
Build properly
Comment 1 Patrick Kursawe (RETIRED) gentoo-dev 2004-10-14 02:15:52 UTC
Looks like this is a problem of flag-o-matic, not of this ebuild. Re-Assigning.
Comment 2 John5788 2004-10-23 12:53:43 UTC
I'm also experiencing the same exact problem
Comment 3 SpanKY gentoo-dev 2004-11-11 22:06:46 UTC
i doubt this is a bug in flag-o-matic
Comment 4 Patrick Kursawe (RETIRED) gentoo-dev 2004-11-11 23:49:00 UTC
Sorry, it's a bug in the configure script. It just removes "-g"...
Comment 5 Patrick Kursawe (RETIRED) gentoo-dev 2004-11-12 02:50:56 UTC
-r1 should fix this, soon in portage.