[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sr #107896] gnutls 3.0.8 fails to compile with clang
From: |
Elias Pipping |
Subject: |
[sr #107896] gnutls 3.0.8 fails to compile with clang |
Date: |
Wed, 30 Nov 2011 12:38:30 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.8 (KHTML, like Gecko) Chrome/17.0.928.0 Safari/535.8 |
URL:
<http://savannah.gnu.org/support/?107896>
Summary: gnutls 3.0.8 fails to compile with clang
Project: GnuTLS
Submitted by: pipping
Submitted on: Wed 30 Nov 2011 12:38:29 GMT
Category: None
Priority: 5 - Normal
Severity: 3 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Operating System: None
_______________________________________________________
Details:
Earlier versions worked. (My theory for) the reason this version does not
work
for:
gl/argp-parse.c uses alignof(); for that, <stdalign.h> is included. a usable
stdalign.h is also shipped with gnutls for use with compilers that don't
come with such a header yet.
clang does have such a header but it only defines alignas(), not alignof().
here is the actual error:
argp-parse.c:490:41: error: expected expression
csum = alignto (gsum + clen, alignof (struct option));
^
And this is what /usr/lib64/clang/3.1/include/stdalign.h contains for me
(aside from the copyright header and the include guards):
#define alignas _Alignas
#define __alignas_is_defined 1
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/support/?107896>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [sr #107896] gnutls 3.0.8 fails to compile with clang,
Elias Pipping <=