Tomasz Paweł Gajc wrote:
here is the output form
[root@localhost etc]# echo __GNUC__ | /usr/bin/clang -E -
# 1 "<stdin>"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 316 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "<stdin>" 2
7
Can you investigate why __GNUC__ is 7 on your platform? As I said, I looked at
the LLVM/clang 5.0.0 source code and it sets __GNUC__ to 4.
Are you using a version of clang that uses the GNU C preprocessor? If so, that
would explain the problem. That combination is not supported, since preprocessor
variables must describe the compiler accurately.
Also, please try the patch to lib/intprops.h that I suggested. You can find it
here:
https://lists.gnu.org/archive/html/bug-gnulib/2017-09/msg00107.html