public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] C compiler cannot create executables
@ 2022-09-10 15:24 Jack
  2022-09-10 15:42 ` Arve Barsnes
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Jack @ 2022-09-10 15:24 UTC (permalink / raw
  To: Gentoo Users List

I now get this error trying to emerge two different packages: 
libofx-0.10.7 and gnupg (both 2.2.39 and 2.3.6).  It might also be the 
same problem for a few bugs on b.g.o found by searching on "cannot 
create exectuables."

The relevant lines from build.log are

checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... no
configure: error: in 
`/var/tmp/portage/dev-libs/libofx-0.10.7/work/libofx-0.10.7':
configure: error: C compiler cannot create executables
See `config.log' for more details

and from config.log:

Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.3.0 (Gentoo 11.3.0 p4)
configure:2952: $? = 0
configure:2941: 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:2952: $? = 1
configure:2941: 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:2952: $? = 1
configure:2972: checking whether the C compiler works
configure:2994: x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -og 
-ggdb  -Wl,-O1 -Wl,--as-needed conftest.c  >&5
configure:2998: $? = 0
configure:3036: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libofx"
| #define PACKAGE_TARNAME "libofx"
| #define PACKAGE_VERSION "0.10.7"
| #define PACKAGE_STRING "libofx 0.10.7"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3041: error: in 
`/var/tmp/portage/dev-libs/libofx-0.10.7/work/libofx-0.10.7':
configure:3043: error: C compiler cannot create executables
See `config.log' for more details

The thing I find curious is that it appears to me that the output of the 
test compile is a file called "g" which I don't recall ever seeing, and 
so I wonder if the problem is that something has changed with gcc 
defaults and configure does not yet recognize that change.  I also don't 
know the  significance of the two "fatal error: no input files".

The fact that this happens with two unrelated packages suggests that 
it's  not specific to either of them, but something in my system or 
configuration.

Any thoughts or suggestions?

Jack



^ permalink raw reply	[flat|nested] 18+ messages in thread
* [gentoo-user] C compiler cannot create executables
@ 2005-11-24  4:49 Michael Sullivan
  2005-11-24  5:35 ` W.Kenworthy
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Michael Sullivan @ 2005-11-24  4:49 UTC (permalink / raw
  To: gentoo-user

I think I've somehow managed to screw gcc up.  Whenever I try to emerge
anything I get this message:

checking for C compiler default output... configure: error: C compiler
cannot create executables

It also says "See config.log for details", but I can't find config.log -
it doesn't give a full path.  Is there a way to repair this without
having to completely reinstall Gentoo?

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2022-09-10 19:44 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-10 15:24 [gentoo-user] C compiler cannot create executables Jack
2022-09-10 15:42 ` Arve Barsnes
2022-09-10 15:41   ` Jack
2022-09-10 17:27   ` Jack
2022-09-10 17:56 ` David Haller
2022-09-10 19:44   ` Jack
2022-09-10 18:49 ` Dale
2022-09-10 18:47   ` Jack
2022-09-10 18:55     ` Dale
  -- strict thread matches above, loose matches on Subject: below --
2005-11-24  4:49 Michael Sullivan
2005-11-24  5:35 ` W.Kenworthy
2005-11-24  6:39 ` Spider (D.m.D. Lj.)
2005-11-24 12:05 ` Matthias Langer
2005-11-24 12:18   ` Holly Bostick
2005-11-24 16:09   ` Michael Sullivan
2005-11-24 16:16     ` Michael Sullivan
2005-11-24 17:20     ` Michael Sullivan
2005-11-24 17:27       ` Michael Sullivan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox