llvm on CentOS 7

Chris Johns chrisj at rtems.org
Mon Sep 16 21:59:44 UTC 2019


On 17/9/19 7:52 am, Joel Sherrill wrote:
> I need to install that! In the mean time, I used the machine I test
> odd new gcc versions on and this happened:
> 
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> 
> $ type gcc
> gcc is hashed (/home/joel/test-gcc/install-master/bin/gcc)
> $ type c++
> c++ is /home/joel/test-gcc/install-master/bin/c++
> 
> It looks like something has hard-coded c++ to use /usr/bin which is not nice.
> 

I suspect you would need to see what cmake is doing to understand this.

Try adding to the cmake command line
'CXX=/home/joel/test-gcc/install-master/bin/c++'
CC=/home/joel/test-gcc/install-master/bin/cc'.

Chris


More information about the devel mailing list