[LLVMbugs] [Bug 9842] New: Missing implementation of llvm::sys::fs::canonicalize

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 4 10:58:44 PDT 2011


           Summary: Missing implementation of llvm::sys::fs::canonicalize
           Product: new-bugs
           Version: 2.9
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: kyndigen at gmail.com
                CC: llvmbugs at cs.uiuc.edu

I've grepped through the contents of the 2.9 release and a fresh checkout of
trunk from SVN.  I can find the prototype for fs::canonicalize(), but I can't
find an implementation of it.  If I try to use it, I get a link error.


#include <llvm/Support/FileSystem.h>

using namespace llvm;
using namespace llvm::sys;

int main() {
  SmallString<128> cpath;
  fs::canonicalize("/tmp", cpath);
  return 0;


/tmp/clang $ g++ `llvm-config --cxxflags --ldflags --libs all`
/tmp/cchybXUa.o: In function `main':
/tmp/clang/canonicalize_bug.cpp:8: undefined reference to
`llvm::sys::fs::canonicalize(llvm::Twine const&, llvm::SmallVectorImpl<char>&)'
collect2: ld returned 1 exit status

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list