I just tried out the latest llvm and clang trunk versions. They compiled without a single warning out of the box but I\'m having trouble linking a hello world example. My Co
Seems to be clang version which can't detect host's linux version and gcc version..
This code in clang which must add path to the crt*:
llvm›tools›clang›lib›Driver›Tools.cpp
CmdArgs.push_back(Args.MakeArgString(getToolChain().GetFilePath(C, "crt1.o")));
CmdArgs.push_back(Args.MakeArgString(getToolChain().GetFilePath(C, "crti.o")));
CmdArgs.push_back(Args.MakeArgString(getToolChain().GetFilePath(C, "crtbegin.o")));
and the GetFilePath will try to search asked files in getFilePaths()
list of current ToolChain (file clang/lib/Driver/ToolChains.cpp
). If it can't find a file it will return the Name unchanged.
Please, give me version of your ubuntu (uname -a
, cat /etc/lsb-release
), exact release (svn revision number) of clang and llvm, and gcc -v
output