[cfe-users] Help building Clang
Xavier Robin
robin at lindinglab.org
Thu Jul 17 06:33:39 PDT 2014
Dear list,
I am trying to compile Clang on a SLES 11 machine with GNU Make 3.81 and
GCC 4.7.
I followed the instructions given on
http://clang.llvm.org/get_started.html
until step 6 and make. Then I get an error:
> COMPILE: clang_linux/san-x86_64/x86_64:
> /home/xavier/build/LLVM/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
> In file included from
> /home/xavier/build/LLVM/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:55:
> In file included from /usr/include/sys/vt.h:1:
> /usr/include/linux/vt.h:74:15: error: expected member name or ';'
> after declaration specifiers
> unsigned int new; /* New console (if changing) */
> ~~~~~~~~~~~~ ^
> 1 error generated.
> make[5]: ***
> [/home/xavier/build/LLVM/build/tools/clang/runtime/compiler-rt/clang_linux/san-x86_64/x86_64/SubDir.lib__sanitizer_common/sanitizer_platform_limits_posix.o]
> Error 1
> make[5]: Leaving directory
> `/home/xavier/build/LLVM/llvm/projects/compiler-rt'
> make[4]: *** [BuildRuntimeLibraries] Error 2
> make[4]: Leaving directory
> `/home/xavier/build/LLVM/build/tools/clang/runtime/compiler-rt'
> make[3]: *** [compiler-rt/.makeall] Error 2
> make[3]: Leaving directory
> `/home/xavier/build/LLVM/build/tools/clang/runtime'
> make[2]: *** [all] Error 1
> make[2]: Leaving directory `/home/xavier/build/LLVM/build/tools/clang'
> make[1]: *** [clang/.makeall] Error 2
> make[1]: Leaving directory `/home/xavier/build/LLVM/build/tools'
> make: *** [all] Error 1
I tried to build from the 3.4 release, but got the same error.
What should I do?
Thanks,
Xavier
More information about the cfe-users
mailing list