[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coreutils/coreutils] Can't build with LLVM 5.0 (#11)

From: Paul Eggert
Subject: Re: [coreutils/coreutils] Can't build with LLVM 5.0 (#11)
Date: Sun, 24 Sep 2017 16:03:52 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

Tomasz PaweĊ‚ Gajc wrote:
here is the output form

address@hidden 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

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 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]