<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">Le 31/07/2017 à 11:16, Csaba Raduly a
      écrit :<br>
    </div>
    <blockquote
cite="mid:CAEhDDbDmqJ32Tf47M+7bGdF4rn-J74DerQGzyWaYfvpbJz85DA@mail.gmail.com"
      type="cite">
      <pre wrap="">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 <a class="moz-txt-link-abbreviated" href="mailto:cfe-users@lists.llvm.org">cfe-users@lists.llvm.org</a>></pre>
    </blockquote>
    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.<br>
    <blockquote
cite="mid:CAEhDDbDmqJ32Tf47M+7bGdF4rn-J74DerQGzyWaYfvpbJz85DA@mail.gmail.com"
      type="cite">
      <pre wrap="">On Sat, Jul 29, 2017 at 9:49 PM, zosrothko via cfe-dev
<a class="moz-txt-link-rfc2396E" href="mailto:cfe-dev@lists.llvm.org"><cfe-dev@lists.llvm.org></a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hello CFE listers

Can someone explain me

1/ how to install properly clang on Ubuntu trusty?

</pre>
      </blockquote>
      <pre wrap="">Have you tried the following?

sudo apt-get install clang

</pre>
      <blockquote type="cite">
        <pre wrap="">2/ How to launch clang properly on Ubuntu trusty with the "good" options for
the c++ library?
</pre>
      </blockquote>
      <pre wrap="">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?</pre>
    </blockquote>
    You'r right, the question was more or less open... So below is what
    is happening.<br>
    1/ With this configuration<br>
    <pre id="ember1942" class="codedisplay code-block ember-view language-json"><code class=" language-json"><span class="token string">"sudo apt-get install -qq -y clang-3.8 lldb-3.8 libc++-dev libc++abi-dev"</span><span class="token punctuation">,</span>
<span class="token string">"export CLANG_VERSTION=\"-3.8\""</span><span class="token punctuation">,</span>
<span class="token string">"export CC=\"clang-3.8\""</span><span class="token punctuation">,</span>
<span class="token string">"export CXX=\"clang++-3.8\""</span><span class="token punctuation">,</span>
<span class="token string">"export CXXFLAGS=-stdlib=libstdc++"</span><span class="token punctuation">,</span>
<span class="token punctuation">
</span></code></pre>
    the compiler emits this error<br>
    <pre id="log" class="ansi"><span id="1-1908" class="red bold">error: </span><span id="1-1909">debug information for auto is not yet supported



2/ With this configuration
</span>
<span id="1-1909"><code class=" language-json">    <span class="token string">"sudo apt-get install -qq -y clang-3.8 lldb-3.8 libc++-dev libc++abi-dev"</span><span class="token punctuation">,</span>
    <span class="token string">"export CLANG_VERSTION=\"-3.8\""</span><span class="token punctuation">,</span>
    <span class="token string">"export CC=\"clang-3.8\""</span><span class="token punctuation">,</span>
    <span class="token string">"export CXX=\"clang++-3.8\""</span><span class="token punctuation">,</span>
    <span class="token string">"export CXXFLAGS=-stdlib=libc++"</span><span class="token punctuation">,</span>
</code>
The linker produces those errors

</span></pre>
    <p><span id="1-7227">** Building shared executable (debug)
/home/travis/build/Kampbell/poco/Foundation/testsuite/bin/Linux/x86_64/testrunnerd</span></p>
    <p><span id="1-7228">/home/travis/build/Kampbell/poco/Foundation/testsuite/obj/Linux/x86_64/debug_shared/ActivityTest.o:
        In function `Poco::FastMutexImpl::unlockImpl()':</span></p>
    <p><span id="1-7229">/home/travis/build/Kampbell/poco/Foundation/include/Poco/Mutex_STD.h:144:
        undefined reference to `std::__1::timed_mutex::unlock()'</span></p>
    <p><span id="1-7230">/home/travis/build/Kampbell/poco/Foundation/testsuite/obj/Linux/x86_64/debug_shared/ActivityTest.o:
        In function `Poco::FastMutexImpl::lockImpl()':</span></p>
    <p><span id="1-7231">/home/travis/build/Kampbell/poco/Foundation/include/Poco/Mutex_STD.h:134:
        undefined reference to `std::__1::timed_mutex::lock()'</span></p>
    <p><span id="1-7232">/home/travis/build/Kampbell/poco/Foundation/testsuite/obj/Linux/x86_64/debug_shared/Base32Test.o:
        In function `ios_base':</span></p>
    <p><span id="1-7233">/usr/local/clang-3.5.0/bin/../include/c++/v1/ios:333:
        undefined reference to `vtable for std::__1::ios_base'</span></p>
    <p><span id="1-7234">/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> >*)':</span></p>
    <p><span id="1-7235">/usr/local/clang-3.5.0/bin/../include/c++/v1/ios:668:
        undefined reference to `std::__1::ios_base::init(void*)'</span></p>
    <p><span id="1-7236">/home/travis/build/Kampbell/poco/Foundation/testsuite/obj/Linux/x86_64/debug_shared/Base32Test.o:
        In function `ios_base':</span></p>
    <p><span id="1-7237">/usr/local/clang-3.5.0/bin/../include/c++/v1/ios:333:
        undefined reference to `vtable for std::__1::ios_base'</span></p>
    <pre id="log" class="ansi"><span id="1-1910"></span></pre>
    <br>
    <blockquote
cite="mid:CAEhDDbDmqJ32Tf47M+7bGdF4rn-J74DerQGzyWaYfvpbJz85DA@mail.gmail.com"
      type="cite">
      <pre wrap="">
Csaba
</pre>
    </blockquote>
    <br>
  </body>
</html>