ls-icons
ls-icons copied to clipboard
checking whether the C compiler works... no C compiler cannot create executables
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.
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.
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
Try simply try closing and reopening the terminal. Especially if you made new installation of the dependencies eg. Clang