ls-icons icon indicating copy to clipboard operation
ls-icons copied to clipboard

checking whether the C compiler works... no C compiler cannot create executables

Open AnasR7 opened this issue 6 years ago • 3 comments

Hi im using manjaro OS, and i have already install clang with pacman package management.

when i run

 ./configure --prefix=/opt/coreutils 

i get this error.

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 make supports the include directive... yes (GNU style)
checking for gcc... clang
checking whether the C compiler works... no
configure: error: in `/home/anasr/ls-icons':
configure: error: C compiler cannot create executables
See `config.log' for more details

any solutions for this ? thanks.

AnasR7 avatar Jan 01 '19 12:01 AnasR7

Can you try installing it to a different directory? Say ./configure --prefix=/tmp - this will rule out permission errors or cases for distros where /opt/coreutils does not exist.

BlitzKraft avatar Dec 15 '19 22:12 BlitzKraft

Hi @AnasR7

What is the value of the variable CFLAGS ?

  • $ echo $CFLAGS

can you try:

  • $ env -u CFLAGS ./configure --prefix=/opt/coreutils

If it doesn't work, can you check all your environment variables (with $ env) related to compiler

sebastiencs avatar Jan 11 '20 23:01 sebastiencs

Try simply try closing and reopening the terminal. Especially if you made new installation of the dependencies eg. Clang

Collins-Ruto avatar May 08 '22 18:05 Collins-Ruto