GNU bug report logs - #20450
coreutils cannot built with clang

Previous Next

Package: coreutils;

Reported by: Yunlian Jiang <yunlian <at> chromium.org>

Date: Tue, 28 Apr 2015 19:46:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 20450-done <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Yunlian Jiang <yunlian <at> chromium.org>, 20450-done <at> debbugs.gnu.org
Subject: Re: bug#20450: coreutils cannot built with clang
Date: Tue, 28 Apr 2015 23:24:22 +0100
On 28/04/15 20:38, Yunlian Jiang wrote:
> Hi, 
> 
>    When I try to use clang to build coreutils, I got some thing like
> 
> src/coreutils.c:81:3:   AR       src/libsinglebin_printenv.a
> error: embedding a #include directive within macro arguments is not supported
> # include "coreutils.h"
>   ^
> 
> And I have the following ugly patch to make it work.

I can't reproduce with clang 3.5 on Fedora 22 here,
but yes this will be an issue anywhere printf is a macro.
I'll apply something like this fix in your name.

thanks!
Pádraig.





This bug report was last modified 10 years and 105 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.