Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
am64-current not compiling with clang
Hi!
After the switch to gcc48, I can't compile -current/amd64 with "-V
MKLLVM=yes -V HAVE_LLVM=yes -V MKLIBCXX=yes" on the build.sh command
line.
It fails with:
In file included from insn-emit.c:5:
In file included from
/archive/foreign/src/external/gpl3/gcc/dist/gcc/system.h:643:
In file included from ./gmp.h:26:
/archive/build/amd64.clang.20140312/usr/include/c++/cstdio:114:8: error:
visibility does not match previous declaration
inline _LIBCPP_INLINE_VISIBILITY int getc(FILE* __stream) {return
__libcpp_getc(__stream);}
^
/archive/build/amd64.clang.20140312/usr/include/c++/__config:193:51: note:
expanded from macro '_LIBCPP_INLINE_VISIBILITY'
#define _LIBCPP_INLINE_VISIBILITY __attribute__ ((__visibility__("hidden"),
__always_inline__))
^
/archive/build/amd64.clang.20140312/usr/include/stdio.h:222:1: note: previous
attribute is here
__BEGIN_DECLS
^
/archive/build/amd64.clang.20140312/usr/include/sys/cdefs.h:331:24: note:
expanded from macro '__BEGIN_DECLS'
#define __BEGIN_DECLS __BEGIN_PUBLIC_DECLS
^
/archive/build/amd64.clang.20140312/usr/include/sys/cdefs.h:312:2: note:
expanded from macro '__BEGIN_PUBLIC_DECLS'
_Pragma("GCC visibility push(default)") __BEGIN_EXTERN_C
^
<scratch space>:6:6: note: expanded from here
GCC visibility push(default)
^
In file included from insn-emit.c:5:
In file included from
/archive/foreign/src/external/gpl3/gcc/dist/gcc/system.h:643:
In file included from ./gmp.h:26:
/archive/build/amd64.clang.20140312/usr/include/c++/cstdio:120:8: error:
visibility does not match previous declaration
inline _LIBCPP_INLINE_VISIBILITY int putc(int __c, FILE* __stream) {return
__libcpp_putc(__c, __stream);}
^
/archive/build/amd64.clang.20140312/usr/include/c++/__config:193:51: note:
expanded from macro '_LIBCPP_INLINE_VISIBILITY'
#define _LIBCPP_INLINE_VISIBILITY __attribute__ ((__visibility__("hidden"),
__always_inline__))
^
Please fix :)
Thomas
Home |
Main Index |
Thread Index |
Old Index