[cfe-dev] clang on Ubuntu trusty: install & launch

zosrothko via cfe-dev cfe-dev at lists.llvm.org
Mon Jul 31 23:16:28 PDT 2017



Le 31/07/2017 à 11:16, Csaba Raduly a écrit :
> Hello zosrothko,
>
> This is the wrong list to ask such questions.
> The cfe-dev mailing list is for discussions about developing clang
> (i.e. people who work on making clang).
> Questions about how to use clang should be sent tocfe-users at lists.llvm.org>
Ok, but I have trouble making clang working well on Ubuntu trusty and 
there are such discrepancies I wanted to have the view of developpers.
> On Sat, Jul 29, 2017 at 9:49 PM, zosrothko via cfe-dev
> <cfe-dev at lists.llvm.org>  wrote:
>> Hello CFE listers
>>
>> Can someone explain me
>>
>> 1/ how to install properly clang on Ubuntu trusty?
>>
> Have you tried the following?
>
> sudo apt-get install clang
>
>> 2/ How to launch clang properly on Ubuntu trusty with the "good" options for
>> the c++ library?
> This question isn't precise enough to allow a useful answer. What do
> you mean by "good options for the c++ library" ?
> What have you tried? What did you expect? What happened instead?
You'r right, the question was more or less open... So below is what is 
happening.
1/ With this configuration

|"sudo apt-get install -qq -y clang-3.8 lldb-3.8 libc++-dev 
libc++abi-dev", "export CLANG_VERSTION=\"-3.8\"", "export 
CC=\"clang-3.8\"", "export CXX=\"clang++-3.8\"", "export 
CXXFLAGS=-stdlib=libstdc++", |

the compiler emits this error

error: debug information for auto is not yet supported 2/ With this 
configuration
|"sudo apt-get install -qq -y clang-3.8 lldb-3.8 libc++-dev 
libc++abi-dev", "export CLANG_VERSTION=\"-3.8\"", "export 
CC=\"clang-3.8\"", "export CXX=\"clang++-3.8\"", "export 
CXXFLAGS=-stdlib=libc++", | The linker produces those errors

** Building shared executable (debug) 
/home/travis/build/Kampbell/poco/Foundation/testsuite/bin/Linux/x86_64/testrunnerd

/home/travis/build/Kampbell/poco/Foundation/testsuite/obj/Linux/x86_64/debug_shared/ActivityTest.o: 
In function `Poco::FastMutexImpl::unlockImpl()':

/home/travis/build/Kampbell/poco/Foundation/include/Poco/Mutex_STD.h:144: 
undefined reference to `std::__1::timed_mutex::unlock()'

/home/travis/build/Kampbell/poco/Foundation/testsuite/obj/Linux/x86_64/debug_shared/ActivityTest.o: 
In function `Poco::FastMutexImpl::lockImpl()':

/home/travis/build/Kampbell/poco/Foundation/include/Poco/Mutex_STD.h:134: 
undefined reference to `std::__1::timed_mutex::lock()'

/home/travis/build/Kampbell/poco/Foundation/testsuite/obj/Linux/x86_64/debug_shared/Base32Test.o: 
In function `ios_base':

/usr/local/clang-3.5.0/bin/../include/c++/v1/ios:333: undefined 
reference to `vtable for std::__1::ios_base'

/home/travis/build/Kampbell/poco/Foundation/testsuite/obj/Linux/x86_64/debug_shared/Base32Test.o: 
In function `std::__1::basic_ios<char, std::__1::char_traits<char> 
 >::init(std::__1::basic_streambuf<char, std::__1::char_traits<char> >*)':

/usr/local/clang-3.5.0/bin/../include/c++/v1/ios:668: undefined 
reference to `std::__1::ios_base::init(void*)'

/home/travis/build/Kampbell/poco/Foundation/testsuite/obj/Linux/x86_64/debug_shared/Base32Test.o: 
In function `ios_base':

/usr/local/clang-3.5.0/bin/../include/c++/v1/ios:333: undefined 
reference to `vtable for std::__1::ios_base'


> Csaba

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170801/83c55d42/attachment.html>


More information about the cfe-dev mailing list