Hey guys, this appears to be a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1058258 first of all, I fully understand that epel + clang are NOT a supported combination on RHEL, and it´s also entirely possible this bug is in clang. the error message points me at glibc at least, and I would appreciate any guidance on how to get it resolved. When building anything, on RHEL7.5 on ppc64le using clang, we get that error message. [root@tom ~]# cat main.c #include <stdio.h> int main(void) { printf("Hello world\n"); exit(0); } [root@tom ~]# clang main.c In file included from main.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. Version-Release number of selected component (if applicable): [root@tom ~]# uname -a Linux tom.lab.msp.redhat.com 3.10.0-693.2.2.el7.ppc64le #1 SMP Sat Sep 9 03:58:38 EDT 2017 ppc64le ppc64le ppc64le GNU/Linux [root@tom ~]# rpm -q -a |grep -E "(clang|glibc*)" glibc-2.17-196.el7.ppc64le glibc-devel-2.17-196.el7.ppc64le glibc-common-2.17-196.el7.ppc64le glibc-headers-2.17-196.el7.ppc64le clang-3.4.2-8.el7.ppc64le This machine is not using pegas repositories, we are pointing straight at brew builds. It appears that the pegas repository is still exporting 7.4 or older versions of the packages. We can provide access if that could help having it resolved. Thanks Fabio
This is an upstream clang bug. Apparently, this was fixed here: llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=204627&r1=204626&r2=204627&view=diff Note that clang in EPEL is very old. You could try llvm-toolset to get a newer version: https://developers.redhat.com/blog/2017/11/01/getting-started-llvm-toolset/
(In reply to Florian Weimer from comment #2) > This is an upstream clang bug. Apparently, this was fixed here: > > llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets. > cpp?rev=204627&r1=204626&r2=204627&view=diff > > Note that clang in EPEL is very old. You could try llvm-toolset to get a > newer version: > > https://developers.redhat.com/blog/2017/11/01/getting-started-llvm-toolset/ Hi Florian, thanks for being super responsive as usual, and thanks for the pointers. We will wait for newer packages to land in EPEL. To the best extent we prefer not to add extra "non-official" repositories. Cheers and have a nice weekend. Fabio