You are not logged in.

#1 2014-11-23 00:23:13

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 859
Website

[SOLVED] What's broken with clang++ and string.h?

Not sure when this started:

$ cat foo.cpp
#include <cstring>
$ clang++ -c foo.cpp     # Works fine
$ clang++ -O2 -c foo.cpp
In file included from foo.cpp:1:
In file included from /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2/cstring:42:
/usr/include/string.h:82:1: error: unknown type name '__extern_always_inline'
__extern_always_inline void *
^
/usr/include/string.h:82:24: error: expected unqualified-id
__extern_always_inline void *

...

fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

Last edited by tavianator (2014-11-23 02:17:58)

Offline

#2 2014-11-23 00:36:04

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,503
Website

Re: [SOLVED] What's broken with clang++ and string.h?

The upstream glibc-2.20 branch has one out of a pair of patches backported.   I will fix it both upstream and here today.

Offline

#3 2014-11-23 02:19:05

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 859
Website

Re: [SOLVED] What's broken with clang++ and string.h?

Thanks!

Offline

Board footer

Powered by FluxBB