clang on Ubuntu trusty: install & launch

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

clang on Ubuntu trusty: install & launch

Sumner, Brian via cfe-dev
Hello CFE listers

Can someone explain me

1/ how to install properly clang on Ubuntu trusty?

2/ How to launch clang properly on Ubuntu trusty with the "good" options
for the c++ library?

Thank in advance because I am lost.

zos

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: clang on Ubuntu trusty: install & launch

Sumner, Brian via cfe-dev
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 to [hidden email]>

On Sat, Jul 29, 2017 at 9:49 PM, zosrothko via cfe-dev
<[hidden email]> 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?


Csaba
--
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: clang on Ubuntu trusty: install & launch

Sumner, Brian via cfe-dev


> -----Original Message-----
> From: cfe-dev [mailto:[hidden email]] On Behalf Of Csaba
> Raduly via cfe-dev
> Sent: Monday, July 31, 2017 2:16 AM
> To: zosrothko
> Cc: cfe-dev
> Subject: Re: [cfe-dev] clang on Ubuntu trusty: install & launch
>
> 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 to cfe-
> [hidden email]>
>
> On Sat, Jul 29, 2017 at 9:49 PM, zosrothko via cfe-dev
> <[hidden email]> 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?

I suspect you are finding that "clang foo.cpp" gives linker errors.
If instead you use "clang++ foo.cpp" then probably that will solve it.
--paulr

>
>
> Csaba
> --
> GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
> The Tao of math: The numbers you can count are not the real numbers.
> Life is complex, with real and imaginary parts.
> "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus
> Torvalds
> "People disagree with me. I just ignore them." -- Linus Torvalds
> _______________________________________________
> cfe-dev mailing list
> [hidden email]
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: clang on Ubuntu trusty: install & launch

Sumner, Brian via cfe-dev
In reply to this post by Sumner, Brian via cfe-dev



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 to [hidden email]>
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
[hidden email] 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


_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Loading...