[llvm-dev] [compiler-rt] Compilation of emutls.c for arm-android
Sumanth Gundapaneni via llvm-dev
llvm-dev at lists.llvm.org
Tue Oct 20 10:26:15 PDT 2015
While compiling the builtins library file emutls.c for arm-android, I face
the compilation error.
src/llvm/projects/compiler-rt/lib/builtins/emutls.c:15:
In file included from
src/llvm/projects/compiler-rt/lib/builtins/int_lib.h:75:
src/llvm/projects/compiler-rt/lib/builtins/int_types.h:23:18: error:
expected ';' after top level declarator
typedef int si_int;
^
ndk/standalone_r10e_aarch64_gcc49/sysroot/usr/include/asm-generic/siginfo.h:
126:25: note: expanded from macro 'si_int'
#define si_int _sifields._rt._sigval.sival_int
emutls.c includes pthread.h which includes asm/siginfo.h which includes
asm-generic/siginfo.h and that defines the "si_int"
The builtins internal header int_types.h had a typedef on "si_int" which is
the source for the errors.
Does anyone seem to face this error ? Any better solutions other than
renaming "si_int" to something else in the compiler-rt repo ?
--Sumanth G
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151020/85aa0f94/attachment-0001.html>
More information about the llvm-dev
mailing list