<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Aug 25, 2014 at 5:30 PM, Larry Evans <span dir="ltr"><<a href="mailto:cppljevans@suddenlink.net" target="_blank">cppljevans@suddenlink.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 08/21/2014 12:55 PM, Bill Wendling wrote:<br>
> The third 3.5 release candidate is now available. Please pick up sources and binaries here:<br>
><br>
>       <a href="https://llvm.org/pre-release/3.5" target="_blank">https://llvm.org/pre-release/3.5</a><br>
><br>
> Run it through its phases and report any bugs you find!<br>
><br>
> Share and enjoy!<br>
> -bw<br>
><br>
</div>Hi Bill,<br>
<br>
I downloaded:<br>
<br>
<a href="http://llvm.org/pre-releases/3.5/" target="_blank">http://llvm.org/pre-releases/3.5/</a><br>
<br>
then did sig check on all:<br>
<br>
~/dwnlds/llvm/3.5/rc3 $ gpg --verify cfe-3.5.0rc3.src.tar.xz.sig<br>
cfe-3.5.0rc3.src.tar.xz<br>
gpg: Signature made Wed 20 Aug 2014 01:05:37 PM CDT using RSA key ID<br>
BB5A0569<br>
gpg: Good signature from "Bill Wendling <<a href="mailto:void@llvm.org">void@llvm.org</a>>"<br>
gpg: WARNING: This key is not certified with a trusted signature!<br>
gpg:          There is no indication that the signature belongs to the<br>
owner.<br>
Primary key fingerprint: 54E3 BDE3 3185 D9F6 9664  D224 55F5 CD70 BB5A 0569<br>
~/dwnlds/llvm/3.5/rc3 $ gpg --verify compiler-rt-3.5.0rc3.src.tar.xz.sig<br>
compiler-rt-3.5.0rc3.src.tar.xz<br>
gpg: Signature made Wed 20 Aug 2014 01:05:48 PM CDT using RSA key ID<br>
BB5A0569<br>
gpg: Good signature from "Bill Wendling <<a href="mailto:void@llvm.org">void@llvm.org</a>>"<br>
gpg: WARNING: This key is not certified with a trusted signature!<br>
gpg:          There is no indication that the signature belongs to the<br>
owner.<br>
Primary key fingerprint: 54E3 BDE3 3185 D9F6 9664  D224 55F5 CD70 BB5A 0569<br>
~/dwnlds/llvm/3.5/rc3 $ gpg --verify libcxxabi-3.5.0rc3.src.tar.xz.sig<br>
libcxxabi-3.5.0rc3.src.tar.xz<br>
gpg: Signature made Wed 20 Aug 2014 01:06:04 PM CDT using RSA key ID<br>
BB5A0569<br>
gpg: Good signature from "Bill Wendling <<a href="mailto:void@llvm.org">void@llvm.org</a>>"<br>
gpg: WARNING: This key is not certified with a trusted signature!<br>
gpg:          There is no indication that the signature belongs to the<br>
owner.<br>
Primary key fingerprint: 54E3 BDE3 3185 D9F6 9664  D224 55F5 CD70 BB5A 0569<br>
~/dwnlds/llvm/3.5/rc3 $ gpg --verify libcxx-3.5.0rc3.src.tar.xz.sig<br>
libcxx-3.5.0rc3.src.tar.xz<br>
gpg: Signature made Wed 20 Aug 2014 01:05:59 PM CDT using RSA key ID<br>
BB5A0569<br>
gpg: Good signature from "Bill Wendling <<a href="mailto:void@llvm.org">void@llvm.org</a>>"<br>
gpg: WARNING: This key is not certified with a trusted signature!<br>
gpg:          There is no indication that the signature belongs to the<br>
owner.<br>
Primary key fingerprint: 54E3 BDE3 3185 D9F6 9664  D224 55F5 CD70 BB5A 0569<br>
~/dwnlds/llvm/3.5/rc3 $ gpg --verify llvm-3.5.0rc3.src.tar.xz.sig<br>
llvm-3.5.0rc3.src.tar.xz<br>
gpg: Signature made Wed 20 Aug 2014 01:06:19 PM CDT using RSA key ID<br>
BB5A0569<br>
gpg: Good signature from "Bill Wendling <<a href="mailto:void@llvm.org">void@llvm.org</a>>"<br>
gpg: WARNING: This key is not certified with a trusted signature!<br>
gpg:          There is no indication that the signature belongs to the<br>
owner.<br>
Primary key fingerprint: 54E3 BDE3 3185 D9F6 9664  D224 55F5 CD70 BB5A 0569<br>
~/dwnlds/llvm/3.5/rc3 $<br>
<br>
then unzipped and added the appropriate symlinks:<br>
<br>
~/dwnlds/llvm/3.5/rc3 $ find llvm-3.5.0rc3.src -type l -ls<br>
9590094    0 lrwxrwxrwx   1 evansl   evansl         57 Aug 24 21:30<br>
llvm-3.5.0rc3.src/projects/compiler-rt -><br>
/home/evansl/dwnlds/llvm/3.5/rc3/compiler-rt-3.5.0rc3.src<br>
9590095    0 lrwxrwxrwx   1 evansl   evansl         49 Aug 24 21:31<br>
llvm-3.5.0rc3.src/tools/clang -><br>
/home/evansl/dwnlds/llvm/3.5/rc3/cfe-3.5.0rc3.src<br>
~/dwnlds/llvm/3.5/rc3 $<br>
<br>
Then, followed instructions on:<br>
<br>
<a href="http://llvm.org/docs/GettingStarted.html#requirements" target="_blank">http://llvm.org/docs/GettingStarted.html#requirements</a><br>
<br>
for using cmake as follows:<br>
-*- mode: compilation; default-directory:<br>
"~/dwnlds/llvm/3.5/rc3/build-variants/" -*-<br>
Compilation started at Mon Aug 25 17:30:37<br>
<br>
make cmake.build<br>
install -d release/cmake.build<br>
cd release/cmake.build ; \<br>
          CC="/usr/local/bin/gcc" ; \<br>
          CXX="/usr/local/bin/g++" ; \<br>
          cmake /home/evansl/dwnlds/llvm/3.5/rc3/llvm-3.5.0rc3.src<br>
-DCMAKE_CXX_LINK_FLAGS="-L/usr/local/lib64 -Wl,-rpath -Wl,/usr/local/lib64"<br>
-- The C compiler identification is GNU 4.8.2<br>
-- The CXX compiler identification is GNU 4.8.2<br>
-- Check for working C compiler: /usr/bin/cc<br>
-- Check for working C compiler: /usr/bin/cc -- works<br>
-- Detecting C compiler ABI info<br>
-- Detecting C compiler ABI info - done<br>
-- Check for working CXX compiler: /usr/bin/c++<br>
-- Check for working CXX compiler: /usr/bin/c++ -- works<br>
-- Detecting CXX compiler ABI info<br>
-- Detecting CXX compiler ABI info - done<br>
-- Looking for C++ include cxxabi.h<br>
-- Looking for C++ include cxxabi.h - found<br>
.<br>
.<br>
.<br>
-- Looking for pthread_create in pthread<br>
-- Looking for pthread_create in pthread - found<br>
-- Could NOT find LibXml2 (missing:  LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)<br>
-- Clang version: 3.5.0<br>
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG<br>
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG - Failed<br>
-- Configuring done<br>
-- Generating done<br>
-- Build files have been written to:<br>
/home/evansl/dwnlds/llvm/3.5/rc3/build-variants/release/cmake.build<br>
touch release/dones/cmake.build.done<br>
<br>
Compilation finished at Mon Aug 25 17:30:48<br>
<br>
Then built it:<br>
<br>
~/dwnlds/llvm/3.5/rc3/build-variants/release/cmake.build $ make<br>
Scanning dependencies of target LLVMSupport<br>
[  1%] Building CXX object<br>
lib/Support/CMakeFiles/LLVMSupport.dir/APFloat.cpp.o<br>
[  1%] Building CXX object<br>
lib/Support/CMakeFiles/LLVMSupport.dir/APInt.cpp.o<br>
[  1%] Building CXX object<br>
lib/Support/CMakeFiles/LLVMSupport.dir/APSInt.cpp.o<br>
[  1%] Building CXX object<br>
lib/Support/CMakeFiles/LLVMSupport.dir/ARMBuildAttrs.cpp.o<br>
[  1%] Building CXX object<br>
lib/Support/CMakeFiles/LLVMSupport.dir/ARMWinEH.cpp.o<br>
[  1%] Building CXX object<br>
lib/Support/CMakeFiles/LLVMSupport.dir/Allocator.cpp.o<br>
[  1%] Building CXX object<br>
lib/Support/CMakeFiles/LLVMSupport.dir/BlockFrequency.cpp.o<br>
[  1%] Building CXX object<br>
lib/Support/CMakeFiles/LLVMSupport.dir/BranchProbability.cpp.o<br>
[  1%] Building CXX object<br>
lib/Support/CMakeFiles/LLVMSupport.dir/circular_raw_ostream.cpp.o<br>
[  1%] Building CXX object<br>
lib/Support/CMakeFiles/LLVMSupport.dir/CommandLine.cpp.o<br>
[  1%] Building CXX object<br>
lib/Support/CMakeFiles/LLVMSupport.dir/Compression.cpp.o<br>
.<br>
.<br>
.<br>
Scanning dependencies of target clang-check<br>
[100%] Building CXX object<br>
tools/clang/tools/clang-check/CMakeFiles/clang-check.dir/ClangCheck.cpp.o<br>
Linking CXX executable ../../../../bin/clang-check<br>
[100%] Built target clang-check<br>
~/dwnlds/llvm/3.5/rc3/build-variants/release/cmake.build $<br>
<br>
However, when compiling a hello_world.cpp:<br>
<br>
-*- mode: compilation; default-directory:<br>
"~/dwnlds/llvm/3.5/rc3/build-variants/" -*-<br>
Compilation started at Mon Aug 25 18:55:57<br>
<br>
make cmake.run<br>
./release/cmake.build/bin/clang++ -std=c++1y hello_world.cpp -o<br>
hello_world.exe<br>
In file included from hello_world.cpp:1:<br>
In file included from<br>
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/iostream:39:<br>
In file included from<br>
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/ostream:38:<br>
In file included from<br>
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/ios:42:<br>
In file included from<br>
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/ios_base.h:41:<br>
In file included from<br>
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/locale_classes.h:40:<br>
In file included from<br>
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/string:52:<br>
In file included from<br>
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/basic_string.h:2815:<br>
In file included from<br>
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/ext/string_conversions.h:43:<br>
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/cstdio:120:11:<br>
error: no member named 'gets' in the<br>
      global namespace<br>
  using ::gets;<br>
        ~~^<br>
1 error generated.<br>
make: *** [cmake.run] Error 1<br>
<br>
Compilation exited abnormally with code 2 at Mon Aug 25 18:55:59<br>
<br>
where hello_world.cpp is just:<br>
<br>
#include <iostream><br>
int main()<br>
{<br>
    std::cout<<"Hello World!\n";<br>
    return 0;<br>
}<br>
<br>
<br>
What needs to change to get this hello_world.cpp to compiler?<br></blockquote><div><br></div><div>This is nothing to do with Clang; the problem is that glibc speculatively removed 'gets' in their C++14 mode (long before it was removed from the C++ standard), and libstdc++4.8 still expects it to exist in *their* C++14 mode.</div>
<div><br></div><div>Switch to a standard library that supports C++14 and you should be OK. If you built and installed libc++, this should be as simple as adding '-stdlib=libc++' to your clang command line.</div></div>
</div></div>