From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-184531-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0A82F138334 for <garchives@archives.gentoo.org>; Mon, 30 Jul 2018 17:57:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 631D5E099C; Mon, 30 Jul 2018 17:56:53 +0000 (UTC) Received: from mail-io0-x235.google.com (mail-io0-x235.google.com [IPv6:2607:f8b0:4001:c06::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C815EE0976 for <gentoo-user@lists.gentoo.org>; Mon, 30 Jul 2018 17:56:52 +0000 (UTC) Received: by mail-io0-x235.google.com with SMTP id k16-v6so10605074iom.12 for <gentoo-user@lists.gentoo.org>; Mon, 30 Jul 2018 10:56:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to; bh=DiCM/vZsZXNOqtux37jCYvKdMg6BiFmUbn9zgJb03No=; b=rr5fWX/pHQXyEUpfYO3fEuMHoR63sGlHlynHQSpT6TKBw9+3UZbyXTwtIoLKQOQ/Dq zZyebuO6DgmVB3V0I6kLp+HGAMC+nmBc6xK+C64PmSemHLANsFXT65wezvJH0TBNNZsF W4L3t2ArKYus2ReaWZ29Hc9gEcjW07aJ2RufnwNscT1HF3cie+F6o0gUD8Ik0ZdgQrfm 1DBvrCAdOiNmNs+std+Lwd9c5zFUv3IPSpQ7gBPpjXJ9VfdMflyZolf/Jz6zAPgYps/A o3uWuUL073E75bPivdLw2X6wYWaKRUN5gPJQViPHOvHbUwajjPFLkMqzCVKpWhhDPjtT uzuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to; bh=DiCM/vZsZXNOqtux37jCYvKdMg6BiFmUbn9zgJb03No=; b=ZeLy5t+v4OsbWXFTBvhdR61aSpQT5Mu8HFaLXiUyXP1Km8HwpOdQckgfq+fQbQFz/h oJtEOgKNkWsxq9tV0ggC5R8/b3xJ0R8BrS7T6e0tn+9GOMYhC1zxqNqiVFhIV+bRoN2a mMm+hQkCOSZudXu62X33Bwk+Vbm0a56oxLA6JhEe5G+mxZzGis2K2J+Q2P8+8++Y7h6u EV55ZJz9SKzU4EPd8PjZkq/wfmhKMQ/rI8bFXRRg/g6PdTSkb+AAZlOUGoEVjd2+uTXj WXWgrBr+P8HRX7r0vbtYamifX07DZAtZzIEk1RMxvSXwtxKaIho1IcPxHGEWxSSccSNu 9xSg== X-Gm-Message-State: AOUpUlF6POluxBWWfReEv1iObRQ54VXs4kt3OXyz6AYlLHVdocwIhW5x 5vwsrqHVUgcLHsNqdI/oKVFkaXO1jh+fptF+sqPWXg== X-Google-Smtp-Source: AAOMgpdoVxtxcSoybRe2GEbsI+yQc/53pf1t/XjNdLwU41ahpruxMvqo9hkLyjXFFWF5b0BX9EMBw3g37LaQ6SzoNqE= X-Received: by 2002:a6b:cac3:: with SMTP id a186-v6mr14567666iog.116.1532973411693; Mon, 30 Jul 2018 10:56:51 -0700 (PDT) Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 References: <87r2jkwrqy.fsf@gmail.com> In-Reply-To: <87r2jkwrqy.fsf@gmail.com> From: Hung Dang <hungptit@gmail.com> Date: Mon, 30 Jul 2018 13:56:39 -0400 Message-ID: <CAJkfh3qtfwLpr=L8N-FqDrou1VqeC+Qj7VA2ONc=VMjmS6d7fA@mail.gmail.com> Subject: Re: [gentoo-user] Please help with `C compiler cannot create executables' To: Gentoo-user <gentoo-user@lists.gentoo.org> Content-Type: multipart/alternative; boundary="000000000000a779f505723b2fd4" X-Archives-Salt: e7c4203f-199d-44b7-9c78-aa088b30957e X-Archives-Hash: 80efa02db0fad0f8ef607b05cc9a5284 --000000000000a779f505723b2fd4 Content-Type: text/plain; charset="UTF-8" There are typos/errors in the configure script. From your error log I can see that -V and -qversion are passed into gcc instead of -v and --version. Hung On Mon, Jul 30, 2018 at 1:40 PM Akater <nuclearspace@gmail.com> wrote: > 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 "christos@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. > --000000000000a779f505723b2fd4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>There are typos/errors in the configure script. From = your error log I can see that -V and -qversion are passed into gcc instead = of -v and=C2=A0 --version.<br></div><div class=3D"gmail_quote"><div dir=3D"= ltr"><br></div><div>Hung</div><div dir=3D"ltr"><br></div><div dir=3D"ltr">O= n Mon, Jul 30, 2018 at 1:40 PM Akater <<a href=3D"mailto:nuclearspace@gm= ail.com">nuclearspace@gmail.com</a>> wrote:<br></div><blockquote class= =3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd= ing-left:1ex">This came unexpectedly. An excerpt from compile.log is posted= <br> below. (I'll post more if necessary of course.) I'm not very experi= enced<br> with C compilers in general and gcc in particular so I hope for some<br> directions on what the cause of the issue might be. I tried removing<br> CFLAGS settings from make.conf, to no effect.<br> (CFLAGS is `-march=3Dnative -O2 -pipe')<br> <br> I upgraded GCC recently; world, kernel rebuilt successfully and gcc had<br> been working just fine for some time since then.<br> <br> I did not do anything particularly weird with the system that could<br> cause this. However,<br> (1) I do use a somewhat old profile:<br> hardened/linux/amd64 (stable).<br> (2) I recently had a build conflict with<br> util-linux and rfkill: the latter had been included in the former but I<br> was not aware of that at the time and updated some packages (don't<br> remember which ones) while masking the corresponding util-linux version<br> and newer versions. Still, it was a normal portage update and no<br> warnings were issued.<br> (3) The kernel sources used are non-standard.<br> <br> A relevant bit from compile.log (the package is sys-apps/file):<br> <br> > gcc version 7.3.0 (Gentoo Hardened 7.3.0-r3 p1.4) <br> > configure:3711: $? =3D 0<br> > configure:3700: x86_64-pc-linux-gnu-gcc -V >&5<br> > x86_64-pc-linux-gnu-gcc: error: unrecognized command line option '= -V'<br> > x86_64-pc-linux-gnu-gcc: fatal error: no input files<br> > compilation terminated.<br> > configure:3711: $? =3D 1<br> > configure:3700: x86_64-pc-linux-gnu-gcc -qversion >&5<br> > x86_64-pc-linux-gnu-gcc: error: unrecognized command line option '= -qversion'; did you mean '--version'?<br> > x86_64-pc-linux-gnu-gcc: fatal error: no input files<br> > compilation terminated.<br> > configure:3711: $? =3D 1<br> > configure:3731: checking whether the C compiler works<br> > configure:3753: x86_64-pc-linux-gnu-gcc -march=3Dnative -O2 -pipe=C2= =A0 -Wl,-O1 -Wl,--as-needed conftest.c=C2=A0 >&5<br> > cc1: fatal error: /usr/local/include/stdc-predef.h: Permission denied<= br> > compilation terminated.<br> > configure:3757: $? =3D 1<br> > configure:3795: result: no<br> > configure: failed program was:<br> > | /* confdefs.h */<br> > | #define PACKAGE_NAME "file"<br> > | #define PACKAGE_TARNAME "file"<br> > | #define PACKAGE_VERSION "5.33"<br> > | #define PACKAGE_STRING "file 5.33"<br> > | #define PACKAGE_BUGREPORT "<a href=3D"mailto:christos@astron.co= m" target=3D"_blank">christos@astron.com</a>"<br> > | #define PACKAGE_URL ""<br> > | #define PACKAGE "file"<br> > | #define VERSION "5.33"<br> > | #define BUILTIN_ELF 1<br> > | #define ELFCORE 1<br> > | /* end confdefs.h.=C2=A0 */<br> > | <br> > | int<br> > | main ()<br> > | {<br> > | <br> > |=C2=A0 =C2=A0;<br> > |=C2=A0 =C2=A0return 0;<br> > | }<br> > configure:3800: error: in `/var/tmp/portage/sys-apps/file-5.33-r4/work= /file-5.33-abi_x86_64.amd64':<br> > configure:3802: error: C compiler cannot create executables<br> <br> Note:<br> <br> > ~ $ sudo ls -la /usr/local/include<br> > total 12<br> > drwxr-x--- 3 root root 4096 Jul 24 02:12 .<br> > drwxr-xr-x 8 root root 4096 Jul 24 02:12 ..<br> > drwxr-x--- 2 root root 4096 Jul 24 02:12 ykpers-1<br> <br> Thank you.<br> </blockquote></div></div> --000000000000a779f505723b2fd4--