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