[cfe-users] Help building Clang

Alexey Samsonov vonosmas at gmail.com
Thu Jul 17 11:35:34 PDT 2014


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 ?

On Thu, Jul 17, 2014 at 6:33 AM, Xavier Robin <robin at lindinglab.org> 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
> cfe-users at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users
>



-- 
Alexey Samsonov
vonosmas at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20140717/ff9d86c1/attachment.html>


More information about the cfe-users mailing list