[LLVMdev] Compiling llvm and Clang on Linux

Sitvanit Ruah RUAH at il.ibm.com
Wed Jul 11 03:43:57 PDT 2012


Hello all,
I am new to this mailing list so I hope this is the right place to post the
following question.

We are considering using Clang front end for our tool. I tried to compile
LLVM
(using configure followed by  make from the llvm top directory) on LINUX
X86 with gcc 4.1.2.

 I got several compilation error messages of the form

/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c+
+/4.1.2/i386-redhat-linux/bits/gthr-default.h:117:1: error:
      weakref declaration must have internal linkage
__gthrw(pthread_mutexattr_destroy)

Could you guide me on how to resolve these errors?
I downloaded the sources from the web page (not from SVN).
Thanks,
Sitvanit


Sitvanit Ruah
Formal Verification Group
IBM Haifa Research Laboratory





More information about the llvm-dev mailing list