On 17.07.2014, at 20:35, Alexey Samsonov <[email protected]> wrote:
> Hi Xavier, > > This is somewhat weird. Note that the error is in the system header on your > machine. Is your host compiler able to compile anything that > includes /usr/include/linux/vt.h ? It's a bug in the header that prevents building it with a C++ compiler. I think GCC has a fixinclude hack for this. - Ben > > On Thu, Jul 17, 2014 at 6:33 AM, Xavier Robin <[email protected]> wrote: > 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 > > _______________________________________________ > cfe-users mailing list > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users > > > > -- > Alexey Samsonov > [email protected] > _______________________________________________ > cfe-users mailing list > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users _______________________________________________ cfe-users mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users
