Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 500112

Summary: Every configure script crashes at "checking for C compiler default output file name"
Product: Gentoo Linux Reporter: sachse <sachse>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal CC: alex_y_xu
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge info
gcc build logs

Description sachse 2014-02-02 17:29:30 UTC
gcc looks like to work.
If i try: "gcc -march=athlon64 -mtune=athlon64 -O2 -pipe -fexpensive-optimizations -msse -msse2 -mmmx -m3dnow -o hello_world hello_world.c"
it works.

But any package crashes in configure stage.
My tries to fix the issue:
 - Build packages with emerge -B on an similar working system
 - Install these packages which emerge -k
 - This procedure i have repeated with al lot of packages i think they are used
   from build system

In this bug i use the gcc-4.8.2

The error message of the last step is: 
"cc1: fatal error: /usr/local/include/stdc-predef.h: Permission denied"

The file exists but not in this directory
locate stdc-predef.h -> /usr/include/stdc-predef.h

Reproducible: Always

Steps to Reproduce:
1. emerge gcc

Actual Results:  
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... 
configure: error: in `/var/tmp/portage/sys-devel/gcc-4.8.2/work/build':
configure: error: C compiler cannot create executables


Expected Results:  
package can be build without any error

System is in unuseable state an con not be fixed because no package can be build
Comment 1 sachse 2014-02-02 17:36:24 UTC
Created attachment 369364 [details]
emerge info
Comment 2 sachse 2014-02-02 17:38:22 UTC
Created attachment 369366 [details]
gcc build logs
Comment 3 Alex Xu (Hello71) 2014-02-02 17:38:41 UTC
chmod -R o+rx /usr/local/include
Comment 4 sachse 2014-02-05 01:20:16 UTC
This fix works
Comment 5 Alex Xu (Hello71) 2014-02-05 15:18:05 UTC
we do not support manual installation of packages, last I checked.

even if we did, it's your responsibility to ensure that those paths are readable.