Gentoo Archives: gentoo-user

From: Jack <ostroffjh@×××××××××××××××××.net>
To: Gentoo Users List <gentoo-user@l.g.o>
Subject: [gentoo-user] C compiler cannot create executables
Date: Sat, 10 Sep 2022 15:28:57
Message-Id: 32b85a08-85ab-a155-741a-725b3a9e3b69@users.sourceforge.net
1 I now get this error trying to emerge two different packages:
2 libofx-0.10.7 and gnupg (both 2.2.39 and 2.3.6).  It might also be the
3 same problem for a few bugs on b.g.o found by searching on "cannot
4 create exectuables."
5
6 The relevant lines from build.log are
7
8 checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
9 checking whether the C compiler works... no
10 configure: error: in
11 `/var/tmp/portage/dev-libs/libofx-0.10.7/work/libofx-0.10.7':
12 configure: error: C compiler cannot create executables
13 See `config.log' for more details
14
15 and from config.log:
16
17 Thread model: posix
18 Supported LTO compression algorithms: zlib
19 gcc version 11.3.0 (Gentoo 11.3.0 p4)
20 configure:2952: $? = 0
21 configure:2941: x86_64-pc-linux-gnu-gcc -V >&5
22 x86_64-pc-linux-gnu-gcc: error: unrecognized command-line option '-V'
23 x86_64-pc-linux-gnu-gcc: fatal error: no input files
24 compilation terminated.
25 configure:2952: $? = 1
26 configure:2941: x86_64-pc-linux-gnu-gcc -qversion >&5
27 x86_64-pc-linux-gnu-gcc: error: unrecognized command-line option
28 '-qversion'; did you mean '--version'?
29 x86_64-pc-linux-gnu-gcc: fatal error: no input files
30 compilation terminated.
31 configure:2952: $? = 1
32 configure:2972: checking whether the C compiler works
33 configure:2994: x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -og
34 -ggdb  -Wl,-O1 -Wl,--as-needed conftest.c  >&5
35 configure:2998: $? = 0
36 configure:3036: result: no
37 configure: failed program was:
38 | /* confdefs.h */
39 | #define PACKAGE_NAME "libofx"
40 | #define PACKAGE_TARNAME "libofx"
41 | #define PACKAGE_VERSION "0.10.7"
42 | #define PACKAGE_STRING "libofx 0.10.7"
43 | #define PACKAGE_BUGREPORT ""
44 | #define PACKAGE_URL ""
45 | /* end confdefs.h.  */
46 |
47 | int
48 | main ()
49 | {
50 |
51 |   ;
52 |   return 0;
53 | }
54 configure:3041: error: in
55 `/var/tmp/portage/dev-libs/libofx-0.10.7/work/libofx-0.10.7':
56 configure:3043: error: C compiler cannot create executables
57 See `config.log' for more details
58
59 The thing I find curious is that it appears to me that the output of the
60 test compile is a file called "g" which I don't recall ever seeing, and
61 so I wonder if the problem is that something has changed with gcc
62 defaults and configure does not yet recognize that change.  I also don't
63 know the  significance of the two "fatal error: no input files".
64
65 The fact that this happens with two unrelated packages suggests that
66 it's  not specific to either of them, but something in my system or
67 configuration.
68
69 Any thoughts or suggestions?
70
71 Jack

Replies

Subject Author
Re: [gentoo-user] C compiler cannot create executables Arve Barsnes <arve.barsnes@×××××.com>
Re: [gentoo-user] C compiler cannot create executables David Haller <gentoo@×××××××.de>
Re: [gentoo-user] C compiler cannot create executables Dale <rdalek1967@×××××.com>