[LLVMdev] problems building llvm-gcc-4.2 on fedora 21

Donald Raikes don.raikes at nyu.edu
Sun Apr 5 15:30:56 PDT 2015


Hello,

I am very new to llvm, but I need to have a fully working llvm /
llvm-gcc system built and running on my fedora 21 virtual machine so I
can perform some concolic testing with stp.

I have installed all upgrades to fedora 21 using yum upgrade.

I was able to compile and install llvm fine from the svn repository.
I checked out llvm-gcc-4.2 from the repository (revision 234124).
I ran configure as:
$ ../llvm-gcc/configure --program-prefix=llvm-
--enable-llvm=/home/draikes/src/llvm-obj --enable-languages=c,c++
--disable-multilib
when I run:
$ make

I get the following errors:

/home/draikes/src/llvm/include/llvm/ADT/StringRef.h:346:19: error:
â EURO ~enable_ifâ EURO (tm) in namespace â EURO ~stdâ EURO (tm) does not name a template type
     typename std::enable_if<std::numeric_limits<T>::is_signed, bool>::type
                   ^
/home/draikes/src/llvm/include/llvm/ADT/StringRef.h:346:28: error:
expected unqualified-id before â EURO ~<â EURO (tm) token
     typename std::enable_if<std::numeric_limits<T>::is_signed, bool>::type
                            ^
/home/draikes/src/llvm/include/llvm/ADT/StringRef.h:357:19: error:
â EURO ~enable_ifâ EURO (tm) in namespace â EURO ~stdâ EURO (tm) does not name a template type
     typename std::enable_if<!std::numeric_limits<T>::is_signed, bool>::type
                   ^
/home/draikes/src/llvm/include/llvm/ADT/StringRef.h:357:28: error:
expected unqualified-id before â EURO ~<â EURO (tm) token
     typename std::enable_if<!std::numeric_limits<T>::is_signed, bool>::type
                            ^


Is there any good way to work around this problem? I am not a strong
c++ programmer, so I need as much help as possible.

Thank you in advance,
Donald




More information about the llvm-dev mailing list