Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 635554 - sys-devel/gcc-5.4.0-r3 / hardened / uclibc : configure: Can't modify application's text section; use the GCC option -fPIE for position-independent executables. // configure:3698: error: cannot compute suffix of object files: cannot compile
Summary: sys-devel/gcc-5.4.0-r3 / hardened / uclibc : configure: Can't modify applicat...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-27 06:00 UTC by René Rhéaume
Modified: 2019-08-08 00:00 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge-info.txt,6.11 KB, text/plain)
2017-10-27 06:02 UTC, René Rhéaume
Details
emerge -pqv (emerge-pqv.txt,286 bytes, text/plain)
2017-10-27 06:03 UTC, René Rhéaume
Details
build.log (build.log,119.29 KB, text/plain)
2017-10-27 06:03 UTC, René Rhéaume
Details
gcc-build-logs.tar.bz2 (gcc-build-logs.tar.bz2,70.56 KB, application/x-bzip)
2017-10-27 06:04 UTC, René Rhéaume
Details

Note You need to log in before you can comment on or make changes to this bug.
Description René Rhéaume 2017-10-27 06:00:38 UTC
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
Comment 1 René Rhéaume 2017-10-27 06:02:35 UTC
Created attachment 500336 [details]
emerge --info
Comment 2 René Rhéaume 2017-10-27 06:03:00 UTC
Created attachment 500338 [details]
emerge -pqv
Comment 3 René Rhéaume 2017-10-27 06:03:40 UTC
Created attachment 500340 [details]
build.log
Comment 4 René Rhéaume 2017-10-27 06:04:11 UTC
Created attachment 500342 [details]
gcc-build-logs.tar.bz2
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2017-10-27 06:48:08 UTC
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.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2017-10-27 06:48:35 UTC
-fstack-check I presume.
Comment 7 René Rhéaume 2017-10-28 11:43:09 UTC
(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?
Comment 8 René Rhéaume 2017-10-28 12:04:54 UTC
(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.
Comment 9 Andreas K. Hüttel archtester gentoo-dev 2017-12-09 22:42:25 UTC
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
Comment 10 Magnus Granberg gentoo-dev 2019-08-08 00:00:54 UTC
If this is still problem with a newer gcc and uclibc-ng
make a new bugreport.