Henrik Bach
2004-Dec-14 18:49 UTC
[LLVMdev] Linking tblgen: undefined reference to `llvm::sys::Path::Path(std::string)'
Hi, I'm linking tblgen. However, I get below error. I can't figure out what's wrong here. Could it be this statement in the Path.h: mutable std::string path; ///< Storage for the path name. ------------------ llvm[2]: Linking Debug executable tblgen c:/projects/build/MinGW/llvm-1-1/utils/TableGen/Debug/TableGen.o(.text+0x19da): In function `main': c:/projects/src/llvm-1/llvm/utils/TableGen/TableGen.cpp:429: undefined reference to `llvm::sys::Path::Path(std::string)' collect2: ld returned 1 exit status make[2]: *** [/C/projects/build/MinGW/llvm-1-1/Debug/bin/tblgen.exe] Error 1 ------------------ Henrik ============================================================Henrik Bach Open Source Developer e-mail: henrik_bach_llvm at hotmail.com ============================================================Got Freedom? Software Freedom Day 2004 - 28th of August http://www.softwarefreedomday.org/ ============================================================ _________________________________________________________________ Undg� pop-ups med MSN Toolbar - http://toolbar.msn.dk hent den gratis!
Chris Lattner
2004-Dec-14 19:10 UTC
[LLVMdev] Linking tblgen: undefined reference to `llvm::sys::Path::Path(std::string)'
On Tue, 14 Dec 2004, Henrik Bach wrote:> llvm[2]: Linking Debug executable tblgen > c:/projects/build/MinGW/llvm-1-1/utils/TableGen/Debug/TableGen.o(.text+0x19da): > In function `main': > c:/projects/src/llvm-1/llvm/utils/TableGen/TableGen.cpp:429: undefined > reference to `llvm::sys::Path::Path(std::string)' > collect2: ld returned 1 exit status > make[2]: *** [/C/projects/build/MinGW/llvm-1-1/Debug/bin/tblgen.exe] Error 1 > ------------------The Path ctor changed from taking a string by value to a string by const reference. It's possible that you have stale .o files compiled with the old prototype. Can you try updating your tree, doing a make clean, then trying again? -Chris -- http://nondot.org/sabre/ http://llvm.cs.uiuc.edu/
Reid Spencer
2004-Dec-14 19:12 UTC
[LLVMdev] Linking tblgen: undefined reference to `llvm::sys::Path::Path(std::string)'
Yeah, that's confirmed. Make sure you update include/llvm/System/Path.h and the contents of lib/System then make clean and rebuild. Should fix it Reid. On Tue, 2004-12-14 at 11:10, Chris Lattner wrote:> On Tue, 14 Dec 2004, Henrik Bach wrote: > > llvm[2]: Linking Debug executable tblgen > > c:/projects/build/MinGW/llvm-1-1/utils/TableGen/Debug/TableGen.o(.text+0x19da): > > In function `main': > > c:/projects/src/llvm-1/llvm/utils/TableGen/TableGen.cpp:429: undefined > > reference to `llvm::sys::Path::Path(std::string)' > > collect2: ld returned 1 exit status > > make[2]: *** [/C/projects/build/MinGW/llvm-1-1/Debug/bin/tblgen.exe] Error 1 > > ------------------ > > The Path ctor changed from taking a string by value to a string by const > reference. It's possible that you have stale .o files compiled with the > old prototype. Can you try updating your tree, doing a make clean, then > trying again? > > -Chris-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20041214/5bb6ba77/attachment.sig>
Possibly Parallel Threads
- [LLVMdev] Linking tblgen: undefined reference to `llvm::sys::Path::Path(std::string)'
- [LLVMdev] Linking tblgen: undefined reference to `llvm::sys::Path::Path(std::string)'
- [LLVMdev] tblgen: Assertion failed: "Buffer[Length-1] == '"'", file FileLexer.l, line 114
- [LLVMdev] Undefined reference to `llvm::sys::CopyFile(llvm::sys::Path const&, llvm::sys::P
- [LLVMdev] Undefined reference to `llvm::sys::CopyFile(llvm::sys::Path const&, llvm::sys::P