[LLVMdev] build issue (original) (raw)

Vikas Bhargava vikasbhargava at gmail.com
Tue Mar 11 10:46:51 PDT 2014


I understand that you are looking for a workaround in llvm, but it's not really an llvm issue. There is a patch available for this issue:

http://gcc.gnu.org/ml/gcc-patches/2013-12/msg00479.html

This means that you would have to update your kernel headers.

Someone else has posted another hack for libsanitizer here:

http://comments.gmane.org/gmane.comp.gcc.devel/133181

#define new renamed_new #include <sys/vt.h> #undef new

thx

Vikas.

========

On Tue, Mar 11, 2014 at 10:25 AM, Burlen Loring <burlen.loring at gmail.com>wrote:

Hi,

I'm trying to build llvm 3.4 on one of our Cray systems, note: 3.2 builds fine. The following error occurs, it looks like a system header, intended for C only judging by the fact that there's a variable named "new", is being used in one of llvm's C++ source files. Can anyone suggest a workaround? I do not have root on this system nor is it likely that I can convince anyone to update system packages. Burlen make[5]: Entering directory `/global/common/hopper2/ graphics/llvm/builds/llvm-3.4.src/projects/compiler-rt' ARCHIVE: clanglinux/full-x8664/x8664: /global/common/hopper2/ graphics/llvm/builds/3.4-static-build/tools/clang/ runtime/compiler-rt/clanglinux/full-x8664/x8664/libcompilerrt.a FINAL-ARCHIVE: clanglinux/full-x8664: /global/common/hopper2/ graphics/llvm/builds/3.4-static-build/tools/clang/ runtime/compiler-rt/clanglinux/full-x8664/libcompilerrt.a ARCHIVE: clanglinux/profile-x8664/x8664: /global/common/hopper2/ graphics/llvm/builds/3.4-static-build/tools/clang/ runtime/compiler-rt/clanglinux/profile-x8664/x8664/libcompilerrt.a FINAL-ARCHIVE: clanglinux/profile-x8664: /global/common/hopper2/ graphics/llvm/builds/3.4-static-build/tools/clang/ runtime/compiler-rt/clanglinux/profile-x8664/libcompilerrt.a COMPILE: clanglinux/san-x8664/x8664: /global/common/hopper2/ graphics/llvm/builds/llvm-3.4.src/projects/compiler-rt/lib/ sanitizercommon/sanitizerplatformlimitsposix.cc In file included from /global/common/hopper2/ graphics/llvm/builds/llvm-3.4.src/projects/compiler-rt/lib/ sanitizercommon/sanitizerplatformlimitsposix.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) */ ~~~~~~~~~~~~ ^ 1 error generated.


LLVM Developers mailing list LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140311/3c83bd83/attachment.html>



More information about the llvm-dev mailing list