Package Details: llvm34-libs-split 3.4.2-1

Git Clone URL: https://aur.archlinux.org/llvm34-split.git (read-only)
Package Base: llvm34-split
Description: LLVM (runtime library, installed in /usr/lib/llvm-3.4/)
Upstream URL: http://llvm.org/
Licenses: custom:University of Illinois/NCSA Open Source License
Submitter: vl.still
Maintainer: vl.still
Last Packager: vl.still
Votes: 0
Popularity: 0.000000
First Submitted: 2016-03-20 08:51
Last Updated: 2016-03-20 16:15

Latest Comments

noctux commented on 2016-06-05 14:00

Fails to compile with:

> /usr/include/stdlib.h:466:14: note: target of using declaration
> extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur;
> ^
> /usr/lib64/gcc/x86_64-pc-linux-gnu/6.1.1/../../../../include/c++/6.1.1/stdlib.h:65:12: note: using declaration
> using std::malloc;
> ^
> In file included from /home/noctux/builds/llvm34-split/src/llvm-3.4.2/projects/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc:47:
> /usr/include/malloc.h:41:14: error: declaration conflicts with target of using declaration already in scope
> extern void *calloc (size_t __nmemb, size_t __size)
> ^
> /usr/include/stdlib.h:468:14: note: target of using declaration
> extern void *calloc (size_t __nmemb, size_t __size)
> ^
> /usr/lib64/gcc/x86_64-pc-linux-gnu/6.1.1/../../../../include/c++/6.1.1/stdlib.h:59:12: note: using declaration
> using std::calloc;
> ^
> In file included from /home/noctux/builds/llvm34-split/src/llvm-3.4.2/projects/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc:47:
> /usr/include/malloc.h:49:14: error: declaration conflicts with target of using declaration already in scope
> extern void *realloc (void *__ptr, size_t __size)
> ^
> /usr/include/stdlib.h:480:14: note: target of using declaration
> extern void *realloc (void *__ptr, size_t __size)
> ^
> /usr/lib64/gcc/x86_64-pc-linux-gnu/6.1.1/../../../../include/c++/6.1.1/stdlib.h:73:12: note: using declaration
> using std::realloc;
> ^
> In file included from /home/noctux/builds/llvm34-split/src/llvm-3.4.2/projects/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc:47:
> /usr/include/malloc.h:53:13: error: declaration conflicts with target of using declaration already in scope
> extern void free (void *__ptr) __THROW;
> ^
> /usr/include/stdlib.h:483:13: note: target of using declaration
> extern void free (void *__ptr) __THROW;
> ^
> /usr/lib64/gcc/x86_64-pc-linux-gnu/6.1.1/../../../../include/c++/6.1.1/stdlib.h:61:12: note: using declaration
> using std::free;
> ^
> 4 errors generated.

The full compile log can be found here:
https://paste.xinu.at/qQE7oZ/

Problem seems to be that both stdlib and malloc.h define malloc. As one cannot undo "using" declarations, i don't know how and in which manner this is patchable. It might however be an option to disable tsan?