[cfarm-users] clang setup on gcc112 is b0rked

Peter Gutmann pgut001 at cs.auckland.ac.nz
Thu Jun 15 13:20:42 CEST 2023


I was running an alt build config on gcc112 and noticed that the clang install there is b0rked:

> cat >> hello.c
#include <stdio.h>

int main( void )	// A lie...
{
puts( "Hello world" );
return( EXIT_SUCCESS );
}
^D
> clang hello.c
In file included from hello.c:1:
In file included from /usr/include/stdio.h:27:
In file included from /usr/include/features.h:399:
/usr/include/gnu/stubs.h:11:11: fatal error: 'gnu/stubs-64-v1.h' file not found
# include <gnu/stubs-64-v1.h>
          ^
1 error generated.

The default cc (=gcc) is fine.  clang is picking up some of the gcc stuff but presumably not all of it:

> clang -v
clang version 3.4.2 (tags/RELEASE_34/dot2-final)
Target: powerpc64le-redhat-linux-gnu
Thread model: posix
Found candidate GCC installation: /usr/bin/../lib/gcc/ppc64le-redhat-linux/4.8.2
Found candidate GCC installation: /usr/bin/../lib/gcc/ppc64le-redhat-linux/4.8.5
Found candidate GCC installation: /usr/lib/gcc/ppc64le-redhat-linux/4.8.2
Found candidate GCC installation: /usr/lib/gcc/ppc64le-redhat-linux/4.8.5
Selected GCC installation: /usr/bin/../lib/gcc/ppc64le-redhat-linux/4.8.5

Peter.



More information about the cfarm-users mailing list