Hi!
On Wed, 23 Jul 2014 18:39:39 +0200, Sylvestre Ledru <sylvestre at
debian.org> wrote:> LLVM 3.4 & 3.5 are failing to build because of:
> >
> /«PKGBUILDDIR»/build-llvm/lib/Target/PowerPC/PPCGenInstrInfo.inc:250:5:
> error: expected identifier before '(' token
> The build is failing on an auto generated enum:
>
> EH_SjLj_Setup = 233,
> EIEIO = 234, // This line
> EQV = 235,
EIEIO is an errno code,
<https://sourceware.org/git/?p=glibc.git;a=blob;f=manual/errno.texi;h=41d663978eb3d2c721465b8d85ba7123c4904774;hb=HEAD#l906>.
(Don't ask...)
After »#include <errno.h>«, such identifiers are reserved,
<http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_02_02>:
| If any header in the following table is included, macros with the
| prefixes shown may be defined. After the last inclusion of a given
| header, an application may use identifiers with the corresponding
| prefixes for its own purpose, provided their use is preceded by a #undef
| of the corresponding macro.
|
| Header Prefix
|
| <errno.h> E[0-9], E[A-Z]
| [...]
Grüße,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 472 bytes
Desc: not available
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20140724/608ff907/attachment.sig>