1 |
This came unexpectedly. An excerpt from compile.log is posted |
2 |
below. (I'll post more if necessary of course.) I'm not very experienced |
3 |
with C compilers in general and gcc in particular so I hope for some |
4 |
directions on what the cause of the issue might be. I tried removing |
5 |
CFLAGS settings from make.conf, to no effect. |
6 |
(CFLAGS is `-march=native -O2 -pipe') |
7 |
|
8 |
I upgraded GCC recently; world, kernel rebuilt successfully and gcc had |
9 |
been working just fine for some time since then. |
10 |
|
11 |
I did not do anything particularly weird with the system that could |
12 |
cause this. However, |
13 |
(1) I do use a somewhat old profile: |
14 |
hardened/linux/amd64 (stable). |
15 |
(2) I recently had a build conflict with |
16 |
util-linux and rfkill: the latter had been included in the former but I |
17 |
was not aware of that at the time and updated some packages (don't |
18 |
remember which ones) while masking the corresponding util-linux version |
19 |
and newer versions. Still, it was a normal portage update and no |
20 |
warnings were issued. |
21 |
(3) The kernel sources used are non-standard. |
22 |
|
23 |
A relevant bit from compile.log (the package is sys-apps/file): |
24 |
|
25 |
> gcc version 7.3.0 (Gentoo Hardened 7.3.0-r3 p1.4) |
26 |
> configure:3711: $? = 0 |
27 |
> configure:3700: x86_64-pc-linux-gnu-gcc -V >&5 |
28 |
> x86_64-pc-linux-gnu-gcc: error: unrecognized command line option '-V' |
29 |
> x86_64-pc-linux-gnu-gcc: fatal error: no input files |
30 |
> compilation terminated. |
31 |
> configure:3711: $? = 1 |
32 |
> configure:3700: x86_64-pc-linux-gnu-gcc -qversion >&5 |
33 |
> x86_64-pc-linux-gnu-gcc: error: unrecognized command line option '-qversion'; did you mean '--version'? |
34 |
> x86_64-pc-linux-gnu-gcc: fatal error: no input files |
35 |
> compilation terminated. |
36 |
> configure:3711: $? = 1 |
37 |
> configure:3731: checking whether the C compiler works |
38 |
> configure:3753: x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed conftest.c >&5 |
39 |
> cc1: fatal error: /usr/local/include/stdc-predef.h: Permission denied |
40 |
> compilation terminated. |
41 |
> configure:3757: $? = 1 |
42 |
> configure:3795: result: no |
43 |
> configure: failed program was: |
44 |
> | /* confdefs.h */ |
45 |
> | #define PACKAGE_NAME "file" |
46 |
> | #define PACKAGE_TARNAME "file" |
47 |
> | #define PACKAGE_VERSION "5.33" |
48 |
> | #define PACKAGE_STRING "file 5.33" |
49 |
> | #define PACKAGE_BUGREPORT "christos@××××××.com" |
50 |
> | #define PACKAGE_URL "" |
51 |
> | #define PACKAGE "file" |
52 |
> | #define VERSION "5.33" |
53 |
> | #define BUILTIN_ELF 1 |
54 |
> | #define ELFCORE 1 |
55 |
> | /* end confdefs.h. */ |
56 |
> | |
57 |
> | int |
58 |
> | main () |
59 |
> | { |
60 |
> | |
61 |
> | ; |
62 |
> | return 0; |
63 |
> | } |
64 |
> configure:3800: error: in `/var/tmp/portage/sys-apps/file-5.33-r4/work/file-5.33-abi_x86_64.amd64': |
65 |
> configure:3802: error: C compiler cannot create executables |
66 |
|
67 |
Note: |
68 |
|
69 |
> ~ $ sudo ls -la /usr/local/include |
70 |
> total 12 |
71 |
> drwxr-x--- 3 root root 4096 Jul 24 02:12 . |
72 |
> drwxr-xr-x 8 root root 4096 Jul 24 02:12 .. |
73 |
> drwxr-x--- 2 root root 4096 Jul 24 02:12 ykpers-1 |
74 |
|
75 |
Thank you. |