I am trying to update GCC to get better C++11 support, however a build error prevents me from updating. Reproducible: Always Steps to Reproduce: 1. emerge -u1 gcc:5.4.0::gentoo 2. 3. Actual Results: ERROR: sys-devel/gcc-5.4.0-r3::gentoo failed (compile phase): Expected Results: GCC 5.4.0 installed on system
Created attachment 500336 [details] emerge --info
Created attachment 500338 [details] emerge -pqv
Created attachment 500340 [details] build.log
Created attachment 500342 [details] gcc-build-logs.tar.bz2
x86_64-gentoo-linux-uclibc/libgcc/config.log: configure:3655: checking for suffix of object files configure:3677: /var/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/./gcc/ -B/usr/x86_64-gentoo-linux-uclibc/bin/ -B/usr/x86_64-gentoo-linux-uclibc/lib/ -isystem /usr/x86_64-gentoo-linux-uclibc/include -isystem /usr/x86_64-gentoo-linux-uclibc/sys-include -c -g -march=athlon64-sse3 -O2 -pipe -fno-strict-overflow -fstack-check conftest.c >&5 Can't modify application's text section; use the GCC option -fPIE for position-independent executables. configure:3681: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU C Runtime Library" | #define PACKAGE_TARNAME "libgcc" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "GNU C Runtime Library 1.0" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "http://www.gnu.org/software/libgcc/" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3695: error: in `/var/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/x86_64-gentoo-linux-uclibc/libgcc': configure:3698: error: cannot compute suffix of object files: cannot compile See `config.log' for more details.
-fstack-check I presume.
(In reply to Jeroen Roovers from comment #6) > -fstack-check I presume. I removed -fstack-check from my CFLAGS and I get the same bug. Because of the error message, should this be reassigned to hardened team?
(In reply to Jeroen Roovers from comment #5) > x86_64-gentoo-linux-uclibc/libgcc/config.log: > > configure:3655: checking for suffix of object files > configure:3677: > /var/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/./gcc/xgcc > -B/var/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/./gcc/ > -B/usr/x86_64-gentoo-linux-uclibc/bin/ > -B/usr/x86_64-gentoo-linux-uclibc/lib/ -isystem > /usr/x86_64-gentoo-linux-uclibc/include -isystem > /usr/x86_64-gentoo-linux-uclibc/sys-include > -c -g -march=athlon64-sse3 -O2 -pipe -fno-strict-overflow -fstack-check > conftest.c >&5 > Can't modify application's text section; use the GCC option -fPIE for > position-independent executables. > configure:3681: $? = 1 > configure: failed program was: > | /* confdefs.h */ > | #define PACKAGE_NAME "GNU C Runtime Library" > | #define PACKAGE_TARNAME "libgcc" > | #define PACKAGE_VERSION "1.0" > | #define PACKAGE_STRING "GNU C Runtime Library 1.0" > | #define PACKAGE_BUGREPORT "" > | #define PACKAGE_URL "http://www.gnu.org/software/libgcc/" > | /* end confdefs.h. */ > | > | int > | main () > | { > | > | ; > | return 0; > | } > configure:3695: error: in > `/var/tmp/portage/sys-devel/gcc-5.4.0-r3/work/build/x86_64-gentoo-linux- > uclibc/libgcc': > configure:3698: error: cannot compute suffix of object files: cannot compile > See `config.log' for more details. I tried to build the test program manually and even with the -fPIE option added tom the command line, the program does not compile.
Portage 2.3.8 (python 3.4.5-final-0, hardened/linux/uclibc/amd64, gcc-4.9.4, uclibc-ng-1.0.17, 4.8.17-hardened-r2 x86_64) ^ probably worth mentioning
If this is still problem with a newer gcc and uclibc-ng make a new bugreport.