Gentoo Archives: gentoo-user

From: Martin Vaeth <martin@×××××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Please help with `C compiler cannot create executables'
Date: Mon, 30 Jul 2018 18:16:08
Message-Id: slrnplulea.tej.martin@clover.invalid
In Reply to: [gentoo-user] Please help with `C compiler cannot create executables' by Akater
1 Akater <nuclearspace@×××××.com> wrote:
2 >
3 >> configure:3753: x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe
4 >> -Wl,-O1 -Wl,--as-needed conftest.c >&5
5
6 This should succeed. So the problem is probably this:
7
8 >> cc1: fatal error: /usr/local/include/stdc-predef.h: Permission denied
9
10 It seems that you have this file but that it is not readable
11 by user/group portage:portage.
12
13 The main question is: Why do you have something in /usr/local/ at all?
14 If you did not install anything outside of portage, this directory
15 should be empty (up to some perhaps empty directories).
16
17 So "normally" the correct solution would be to clean up /usr/local/.
18 Of course, if you intentionally installed something there, this
19 might be wrong. But your problem is very likely caused by this.

Replies