This came unexpectedly. An excerpt from compile.log is posted below. (I'll post more if necessary of course.) I'm not very experienced with C compilers in general and gcc in particular so I hope for some directions on what the cause of the issue might be. I tried removing CFLAGS settings from make.conf, to no effect. (CFLAGS is `-march=native -O2 -pipe')
I upgraded GCC recently; world, kernel rebuilt successfully and gcc had been working just fine for some time since then. I did not do anything particularly weird with the system that could cause this. However, (1) I do use a somewhat old profile: hardened/linux/amd64 (stable). (2) I recently had a build conflict with util-linux and rfkill: the latter had been included in the former but I was not aware of that at the time and updated some packages (don't remember which ones) while masking the corresponding util-linux version and newer versions. Still, it was a normal portage update and no warnings were issued. (3) The kernel sources used are non-standard. A relevant bit from compile.log (the package is sys-apps/file): > gcc version 7.3.0 (Gentoo Hardened 7.3.0-r3 p1.4) > configure:3711: $? = 0 > configure:3700: x86_64-pc-linux-gnu-gcc -V >&5 > x86_64-pc-linux-gnu-gcc: error: unrecognized command line option '-V' > x86_64-pc-linux-gnu-gcc: fatal error: no input files > compilation terminated. > configure:3711: $? = 1 > configure:3700: x86_64-pc-linux-gnu-gcc -qversion >&5 > x86_64-pc-linux-gnu-gcc: error: unrecognized command line option '-qversion'; > did you mean '--version'? > x86_64-pc-linux-gnu-gcc: fatal error: no input files > compilation terminated. > configure:3711: $? = 1 > configure:3731: checking whether the C compiler works > configure:3753: x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wl,-O1 > -Wl,--as-needed conftest.c >&5 > cc1: fatal error: /usr/local/include/stdc-predef.h: Permission denied > compilation terminated. > configure:3757: $? = 1 > configure:3795: result: no > configure: failed program was: > | /* confdefs.h */ > | #define PACKAGE_NAME "file" > | #define PACKAGE_TARNAME "file" > | #define PACKAGE_VERSION "5.33" > | #define PACKAGE_STRING "file 5.33" > | #define PACKAGE_BUGREPORT "chris...@astron.com" > | #define PACKAGE_URL "" > | #define PACKAGE "file" > | #define VERSION "5.33" > | #define BUILTIN_ELF 1 > | #define ELFCORE 1 > | /* end confdefs.h. */ > | > | int > | main () > | { > | > | ; > | return 0; > | } > configure:3800: error: in > `/var/tmp/portage/sys-apps/file-5.33-r4/work/file-5.33-abi_x86_64.amd64': > configure:3802: error: C compiler cannot create executables Note: > ~ $ sudo ls -la /usr/local/include > total 12 > drwxr-x--- 3 root root 4096 Jul 24 02:12 . > drwxr-xr-x 8 root root 4096 Jul 24 02:12 .. > drwxr-x--- 2 root root 4096 Jul 24 02:12 ykpers-1 Thank you.
signature.asc
Description: PGP signature