SUSE Linux Enterprise 11 SP3 成功编译LLVM + Clang 3.4

本文详细记录了在SUSE Linux Enterprise 11 SP3上成功编译LLVM + Clang 3.4的过程。在编译过程中遇到了与GCC 4.8.2的兼容性问题,通过修改sanitizer_platform_limits_posix.cc文件解决了问题。
摘要由CSDN通过智能技术生成

基于前面安装成功GCC 4.8.2,安装LLVM+Clang遇到点波折


In file included from /vobs/repo/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:54:

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) */
        ~~~~~~~~~~~~ ^
  COMPILE:   clang_linux/san-x86_64/x86_64: /vobs/repo/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cc
1 error generated.
make[5]: *** [/home/freeman/tmp/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]: *** Waiting for unfinished jobs....
make[5]: Leaving directory `/vobs/repo/llvm/projects/compiler-rt'
make[4]: *** [BuildRuntimeLibraries] Error 2
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值