I just updated from the most recent svn ToT. I'm now getting the following compilation errors. Looks like DIIContext.h needs some includes. Does anyone else see this error also? Am I missing something? In file included from DIContext.cpp:10: /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:27: error: 'uint32_t' does not name a type /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:28: error: 'uint32_t' does not name a type /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:30: error: 'uint32_t' has not been declared /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:30: error: 'uint32_t' has not been declared /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:34: error: 'uint32_t' does not name a type /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:35: error: 'uint32_t' does not name a type /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h: In constructor 'llvm::DILineInfo::DILineInfo(const char*, int, int)': /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:31: error: class 'llvm::DILineInfo' does not have any field named 'Line' /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:31: error: class 'llvm::DILineInfo' does not have any field named 'Column' /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h: At global scope: /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:52: error: 'uint64_t' has not been declared In file included from DIContext.cpp:11: /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:52: warning: 'virtual llvm::DILineInfo llvm::DIContext::getLineInfoForAddress(int)' was hidden DWARFContext.h:69: warning: by 'virtual llvm::DILineInfo llvm::DWARFContext::getLineInfoForAddress(uint64_t)' DIContext.cpp: In static member function 'static llvm::DIContext* llvm::DIContext::getDWARFContext(bool, llvm::StringRef, llvm::StringRef, llvm::StringRef, llvm::StringRef, llvm::StringRef)': DIContext.cpp:23: error: cannot allocate an object of abstract type 'llvm::DWARFContextInMemory' DWARFContext.h:88: note: because the following virtual functions are pure within 'llvm::DWARFContextInMemory': /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:52: note: virtual llvm::DILineInfo llvm::DIContext::getLineInfoForAddress(int) /bin/rm: cannot remove `/extra/xguo/workspace/llvm/lib/DebugInfo/Debug+Asserts/DIContext.d.tmp': No such file or directory make[2]: *** [/extra/xguo/workspace/llvm/lib/DebugInfo/Debug+Asserts/DIContext.o] Error 1 Xiaoyi
On Thu, Sep 15, 2011 at 15:24, Guo, Xiaoyi <Xiaoyi.Guo at amd.com> wrote:> I just updated from the most recent svn ToT. I'm now getting the following compilation errors. Looks like DIIContext.h needs some includes. Does anyone else see this error also? Am I missing something? > > In file included from DIContext.cpp:10: > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:27: error: 'uint32_t' does not name a type > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:28: error: 'uint32_t' does not name a type > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:30: error: 'uint32_t' has not been declared > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:30: error: 'uint32_t' has not been declared > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:34: error: 'uint32_t' does not name a type > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:35: error: 'uint32_t' does not name a type > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h: In constructor 'llvm::DILineInfo::DILineInfo(const char*, int, int)': > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:31: error: class 'llvm::DILineInfo' does not have any field named 'Line' > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:31: error: class 'llvm::DILineInfo' does not have any field named 'Column' > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h: At global scope: > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:52: error: 'uint64_t' has not been declared > In file included from DIContext.cpp:11: > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:52: warning: 'virtual llvm::DILineInfo llvm::DIContext::getLineInfoForAddress(int)' was hidden > DWARFContext.h:69: warning: by 'virtual llvm::DILineInfo llvm::DWARFContext::getLineInfoForAddress(uint64_t)' > DIContext.cpp: In static member function 'static llvm::DIContext* llvm::DIContext::getDWARFContext(bool, llvm::StringRef, llvm::StringRef, llvm::StringRef, llvm::StringRef, llvm::StringRef)': > DIContext.cpp:23: error: cannot allocate an object of abstract type 'llvm::DWARFContextInMemory' > DWARFContext.h:88: note: because the following virtual functions are pure within 'llvm::DWARFContextInMemory': > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:52: note: virtual llvm::DILineInfo llvm::DIContext::getLineInfoForAddress(int) > /bin/rm: cannot remove `/extra/xguo/workspace/llvm/lib/DebugInfo/Debug+Asserts/DIContext.d.tmp': No such file or directory > make[2]: *** [/extra/xguo/workspace/llvm/lib/DebugInfo/Debug+Asserts/DIContext.o] Error 1Try again with r139868. Sorry for the breakage. - Ben
That works. Thanks for the quick resolution. Xiaoyi -----Original Message----- From: Benjamin Kramer [mailto:benny.kra at googlemail.com] Sent: Thursday, September 15, 2011 3:28 PM To: Guo, Xiaoyi Cc: llvmdev at cs.uiuc.edu Subject: Re: [LLVMdev] llvm compilation error on TOT On Thu, Sep 15, 2011 at 15:24, Guo, Xiaoyi <Xiaoyi.Guo at amd.com> wrote:> I just updated from the most recent svn ToT. I'm now getting the following compilation errors. Looks like DIIContext.h needs some includes. Does anyone else see this error also? Am I missing something? > > In file included from DIContext.cpp:10: > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:27: > error: 'uint32_t' does not name a type > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:28: > error: 'uint32_t' does not name a type > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:30: > error: 'uint32_t' has not been declared > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:30: > error: 'uint32_t' has not been declared > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:34: > error: 'uint32_t' does not name a type > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:35: > error: 'uint32_t' does not name a type > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h: In constructor 'llvm::DILineInfo::DILineInfo(const char*, int, int)': > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:31: error: class 'llvm::DILineInfo' does not have any field named 'Line' > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:31: error: class 'llvm::DILineInfo' does not have any field named 'Column' > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h: At global scope: > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:52: > error: 'uint64_t' has not been declared In file included from DIContext.cpp:11: > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:52: > warning: 'virtual llvm::DILineInfo > llvm::DIContext::getLineInfoForAddress(int)' was hidden > DWARFContext.h:69: warning: by 'virtual llvm::DILineInfo llvm::DWARFContext::getLineInfoForAddress(uint64_t)' > DIContext.cpp: In static member function 'static llvm::DIContext* llvm::DIContext::getDWARFContext(bool, llvm::StringRef, llvm::StringRef, llvm::StringRef, llvm::StringRef, llvm::StringRef)': > DIContext.cpp:23: error: cannot allocate an object of abstract type 'llvm::DWARFContextInMemory' > DWARFContext.h:88: note: because the following virtual functions are pure within 'llvm::DWARFContextInMemory': > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:52: > note: virtual llvm::DILineInfo > llvm::DIContext::getLineInfoForAddress(int) > /bin/rm: cannot remove > `/extra/xguo/workspace/llvm/lib/DebugInfo/Debug+Asserts/DIContext.d.tm > p': No such file or directory > make[2]: *** > [/extra/xguo/workspace/llvm/lib/DebugInfo/Debug+Asserts/DIContext.o] > Error 1Try again with r139868. Sorry for the breakage. - Ben