Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#69530 - [gcc][10.2.0-5] Cannot compile anything. "configure: error: C compiler cannot create executables"

Attached to Project: Arch Linux
Opened by Frederic Bezies (fredbezies) - Thursday, 04 February 2021, 08:58 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 04 February 2021, 09:26 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To No-one
Architecture All
Severity Critical
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: Hello. I tried this morning to build one of my AUR package - dosbox-x-sdl2-git- and when configure try to see if there is a working c compiler, I got this error message:

```
checking whether the C compiler works... no
configure: error: in `/home/fred/dosbox-x-sdl2-git/src/dosbox-x':
configure: error: C compiler cannot create executables
```

I tried with midnight commander, and here is the output log:

```
==> Starting build()...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/fred/mc/src/mc-4.8.25':
configure: error: C compiler cannot create executables
See `config.log' for more details
```


Additional info:
* gcc 10.2.0-5

Steps to reproduce:

Just update to gcc 10.2.0-5 and try building any software. Configure will tell there is no c compiler available.
This task depends upon

Closed by  Antonio Rojas (arojas)
Thursday, 04 February 2021, 09:26 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#69529 
Comment by Frederic Bezies (fredbezies) - Thursday, 04 February 2021, 09:12 GMT
Downgrading binutils, gcc/gcc-libs and glibc is the only way I found to get a working c compiler again.

It is dirty, but it works.

Loading...