[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cfe-dev
Subject:    [cfe-dev] Clang compile error
From:       pdrocaldeira <pdrocaldeira () gmail ! com>
Date:       2015-03-15 21:36:10
Message-ID: 1426455370672-4044509.post () n3 ! nabble ! com
[Download RAW message or body]

I'm trying to compile Clang. I'm using Ubuntu 14.04.

I'm using this http://clang.llvm.org/get_started.html and I can't get it to
work.

This is what I get:

llvm[4]: Compiling SourceLocation.cpp for Release+Asserts build
/home/pedro/Downloads/llvm-3.6/tools/clang/lib/Basic/SanitizerBlacklist.cpp:
In constructor ‘clang::SanitizerBlacklist::SanitizerBlacklist(const
std::vector<std::basic_string&lt;char> >&, clang::SourceManager&)':
/home/pedro/Downloads/llvm-3.6/tools/clang/lib/Basic/SanitizerBlacklist.cpp:20:60:
error: no matching function for call to
‘llvm::SpecialCaseList::createOrDie(const
std::vector<std::basic_string&lt;char> >&)'
     : SCL(llvm::SpecialCaseList::createOrDie(BlacklistPaths)), SM(SM) {}
                                                            ^
/home/pedro/Downloads/llvm-3.6/tools/clang/lib/Basic/SanitizerBlacklist.cpp:20:60:
note: candidate is:
In file included from
/home/pedro/Downloads/llvm-3.6/tools/clang/lib/Basic/../../include/clang/Basic/SanitizerBlacklist.h:21:0,
  from
/home/pedro/Downloads/llvm-3.6/tools/clang/lib/Basic/SanitizerBlacklist.cpp:14:
/home/pedro/Downloads/llvm-3.6/include/llvm/Support/SpecialCaseList.h:71:43:
note: static std::unique_ptr<llvm::SpecialCaseList>
llvm::SpecialCaseList::createOrDie(llvm::StringRef)
   static std::unique_ptr<SpecialCaseList> createOrDie(StringRef Path);
                                           ^
/home/pedro/Downloads/llvm-3.6/include/llvm/Support/SpecialCaseList.h:71:43:
note:   no known conversion for argument 1 from ‘const
std::vector<std::basic_string&lt;char> >' to ‘llvm::StringRef'
/bin/rm: cannot remove
‘/home/pedro/Downloads/llvm-3.6/build/tools/clang/lib/Basic/Release+Asserts/SanitizerBlacklist.d.tmp':
 No such file or directory
make[4]: ***
[/home/pedro/Downloads/llvm-3.6/build/tools/clang/lib/Basic/Release+Asserts/SanitizerBlacklist.o]
 Error 1
make[4]: *** Waiting for unfinished jobs....
llvm[4]: Compiling PPLexerChange.cpp for Release+Asserts build
make[4]: Leaving directory
`/home/pedro/Downloads/llvm-3.6/build/tools/clang/lib/Basic'
make[3]: *** [Basic/.makeall] Error 2
llvm[4]: Compiling PPMacroExpansion.cpp for Release+Asserts build
llvm[4]: Compiling PTHLexer.cpp for Release+Asserts build
llvm[4]: Compiling Pragma.cpp for Release+Asserts build
llvm[4]: Compiling PreprocessingRecord.cpp for Release+Asserts build
llvm[4]: Compiling Preprocessor.cpp for Release+Asserts build
llvm[4]: Compiling PreprocessorLexer.cpp for Release+Asserts build
llvm[4]: Compiling ScratchBuffer.cpp for Release+Asserts build
llvm[4]: Compiling TokenConcatenation.cpp for Release+Asserts build
llvm[4]: Compiling TokenLexer.cpp for Release+Asserts build
llvm[4]: Building Release+Asserts Archive Library libclangLex.a
make[4]: Leaving directory
`/home/pedro/Downloads/llvm-3.6/build/tools/clang/lib/Lex'
make[3]: Leaving directory
`/home/pedro/Downloads/llvm-3.6/build/tools/clang/lib'
make[2]: *** [all] Error 1
make[2]: Leaving directory
`/home/pedro/Downloads/llvm-3.6/build/tools/clang'
make[1]: *** [clang/.makeall] Error 2
make[1]: Leaving directory `/home/pedro/Downloads/llvm-3.6/build/tools'
make: *** [all] Error 1

Sorry if I made something wrong.

Thanks for your time.





--
View this message in context: \
http://clang-developers.42468.n3.nabble.com/Clang-compile-error-tp4044509.html Sent \
from the Clang Developers mailing list archive at Nabble.com.

_______________________________________________
cfe-dev mailing list
cfe-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic