[LLVMdev] LLVM compilation problem

Bryan Ewbank Bryan.Ewbank at sas.com
Tue Nov 26 12:08:01 PST 2013


I am using gcc 3.4.6 to build LLVM, and am encountering overloaded/ambiguous errors in several files...

% gcc -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-11)

The errors I am seeing during compiler w/ gmake are all the same (more or less)...

% ../llvm/configure  --prefix=$HOME/local  --exec-prefix=$HOME/local/$MACHTYPE
...
% gmake ENABLE_OPTIMIZED=0
...


llvm/include/llvm/IR/Instruction.h:49: error: call of overloaded `cast(llvm::User*)' is ambiguous

llvm/include/llvm/IR/Instruction.h:50: error: call of overloaded `cast(const llvm::User*)' is ambiguous

llvm/include/llvm/IR/InstrTypes.h:80: error: call of overloaded `cast(const llvm::Value*&)' is ambiguous

llvm/include/llvm/IR/InstrTypes.h:123: error: call of overloaded `cast(const llvm::Value*&)' is ambiguous

llvm/include/llvm/IR/InstrTypes.h:366: error: call of overloaded `cast(const llvm::Value*&)' is ambiguous

llvm/include/llvm/IR/InstrTypes.h:617: error: call of overloaded `cast(const llvm::Value*&)' is ambiguous

llvm/include/llvm/IR/InstrTypes.h:822: error: call of overloaded `cast(const llvm::Value*&)' is ambiguous

llvm/include/llvm/IR/InstrTypes.h:827: error: call of overloaded `dyn_cast(llvm::Type*&)' is ambiguous

llvm/include/llvm/Support/Casting.h:249: error: call of overloaded `cast(llvm::Value*&)' is ambiguous

llvm/lib/Support/YAMLTraits.cpp:88: error: call of overloaded `dyn_cast(llvm::yaml::Input::HNode*&)' is ambiguous

llvm/lib/Support/YAMLTraits.cpp:99: error: call of overloaded `dyn_cast(llvm::yaml::Input::HNode*&)' is ambiguous

llvm/lib/Support/YAMLTraits.cpp:125: error: call of overloaded `dyn_cast(llvm::yaml::Input::HNode*&)' is ambiguous

llvm/lib/Support/YAMLTraits.cpp:138: error: call of overloaded `dyn_cast(llvm::yaml::Input::HNode*&)' is ambiguous

llvm/lib/Support/YAMLTraits.cpp:150: error: call of overloaded `dyn_cast(llvm::yaml::Input::HNode*&)' is ambiguous

llvm/lib/Support/YAMLTraits.cpp:163: error: call of overloaded `dyn_cast(llvm::yaml::Input::HNode*&)' is ambiguous

llvm/lib/Support/YAMLTraits.cpp:172: error: call of overloaded `dyn_cast(llvm::yaml::Input::HNode*&)' is ambiguous

llvm/lib/Support/YAMLTraits.cpp:194: error: call of overloaded `dyn_cast(llvm::yaml::Input::HNode*&)' is ambiguous

llvm/lib/Support/YAMLTraits.cpp:211: error: call of overloaded `dyn_cast(llvm::yaml::Input::HNode*&)' is ambiguous

llvm/lib/Support/YAMLTraits.cpp:223: error: call of overloaded `dyn_cast(llvm::yaml::Input::HNode*&)' is ambiguous

llvm/lib/Support/YAMLTraits.cpp:227: error: call of overloaded `dyn_cast(llvm::yaml::Input::HNode*&)' is ambiguous

llvm/lib/Support/YAMLTraits.cpp:246: error: call of overloaded `dyn_cast(llvm::yaml::Input::HNode*&)' is ambiguous

llvm/lib/Support/YAMLTraits.cpp:258: error: call of overloaded `dyn_cast(llvm::yaml::Input::HNode*&)' is ambiguous

llvm/lib/Support/YAMLTraits.cpp:276: error: call of overloaded `dyn_cast(llvm::yaml::Node*&)' is ambiguous

llvm/lib/Support/YAMLTraits.cpp:286: error: call of overloaded `dyn_cast(llvm::yaml::Node*&)' is ambiguous

llvm/lib/Support/YAMLTraits.cpp:296: error: call of overloaded `dyn_cast(llvm::yaml::Node*&)' is ambiguous

llvm/lib/Support/YAMLTraits.cpp:300: error: call of overloaded `dyn_cast(llvm::yaml::Node*)' is ambiguous


Advice or guidance would be most helpful.  Thank you,
-------------------------------------
Bryan Ewbank
Software Language Developer
Data Step Development, Base Information Technology
www.sas.com
SAS(r) THE POWER TO KNOW(r)
-------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131126/89ccdfc6/attachment.html>


More information about the llvm-dev mailing list