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
Looks like this is a problem of flag-o-matic, not of this ebuild. Re-Assigning.
I'm also experiencing the same exact problem
i doubt this is a bug in flag-o-matic
Sorry, it's a bug in the configure script. It just removes "-g"...
-r1 should fix this, soon in portage.