Using both '-finline-functions' and '-ftracer' at the same time prevents sys-devel/gdb-7.2 from compiling; disabling either CFLAG will enable gdb to compile. Reproducible: Always Steps to Reproduce: 1. Enable both -finline-functions and -ftracer CFLAGS in either /etc/make.conf or /etc/portage/env/sys-devel/gdb 2. 'emerge =sys-devel/gdb-7.2' Actual Results: error messages: x86_64-pc-linux-gnu-gcc -c -Wall -O3 -march=native -ftracer -pipe -ggdb -I. -I. - I./../common -I./../regformats -I./../../include linux-low.c -DUSE_THREAD_DB x86_64-pc-linux-gnu-gcc -c -Wall -O3 -march=native -ftracer -pipe -ggdb -I. -I. -I ./../common -I./../regformats -I./../../include linux-x86-low.c linux-low.c: In function 'sigchld_handler': linux-low.c:4757:11: warning: ignoring return value of 'write', declared with attribu te warn_unused_result linux-x86-low.c: Assembler messages: linux-x86-low.c:2225: Error: symbol `start_i386_goto' is already defined linux-x86-low.c:2227: Error: symbol `end_i386_goto' is already defined linux-x86-low.c:2207: Error: symbol `start_i386_if_goto' is already defined linux-x86-low.c:2214: Error: symbol `end_i386_if_goto' is already defined linux-x86-low.c:1935: Error: symbol `start_amd64_void_call_2_a' is already defined linux-x86-low.c:1937: Error: symbol `end_amd64_void_call_2_a' is already defined linux-x86-low.c:1739: Error: symbol `start_amd64_goto' is already defined linux-x86-low.c:1740: Error: symbol `end_amd64_goto' is already defined linux-x86-low.c:1725: Error: symbol `start_amd64_if_goto' is already defined linux-x86-low.c:1729: Error: symbol `end_amd64_if_goto' is already defined x86_64-pc-linux-gnu-gcc -c -Wall -O3 -march=native -ftracer -pipe -ggdb -I. -I. -I ./../common -I./../regformats -I./../../include i386-low.c make[4]: *** [linux-x86-low.o] Error 1 make[4]: *** Waiting for unfinished jobs.... Expected Results: Compilation succeeds. build log: http://pastebin.com/GHiYjGEr emerge --info: http://pastebin.com/xXDp6kcv Note that in this case, -finline-functions is enabled by -O3. -ftracer is not enabled by any -O level. Compilation succeeds with '-O3 -fno-inline-functions -ftracer'.
Please attach that files directly to the bug report instead of using external resources that can disappear in the future.
Created attachment 281039 [details] Complete build log
Created attachment 281041 [details] emerge --info
OK, thanks, anyway, you shouldn't use so aggressive CFLAGS as it can cause problems with many other apps
*** Bug 445132 has been marked as a duplicate of this bug. ***
more in-depth analysis can be found in the duped bug 445132
*** This bug has been marked as a duplicate of bug 660836 ***