<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><font size="-1">Ubuntu 20.10 x86_64<br>
        <br>
        cd llvm-project<br>
        <br>
        rm -rf build<br>
        mkdir build<br>
        cd build<br>
        <br>
        cmake -G Ninja
        -DLLVM_ENABLE_PROJECTS="clang;llvm;libcxx;libcxxabi"
        -DCMAKE_BUILD_TYPE="Release" -DLLVM_TARGETS_TO_BUILD=X86
        -DLLVM_ENABLE_LIBPFM=OFF -DRUN_HAVE_GNU_POSIX_REGEX=0
        -DRUN_HAVE_THREAD_SAFETY_ATTRIBUTES=0 -Wno-dev ../llvm &>
        ~/Documents/cmake.log<br>
        <br>
        In cmake.log<br>
        <br>
        -- The C compiler identification is GNU 10.2.0<br>
        -- The CXX compiler identification is GNU 10.2.0<br>
        -- The ASM compiler identification is GNU<br>
        <br>
        -- Linker detection: GNU ld<br>
        <br>
        -- Configuring done<br>
        -- Generating done<br>
        CMake Warning:<br>
          Manually-specified variables were not used by the project:<br>
        <br>
            RUN_HAVE_THREAD_SAFETY_ATTRIBUTES<br>
        <br>
        <br>
        -- Build files have been written to:
        /home/nnelson/Documents/llvm-project/build<br>
        <br>
        ninja -j 31 &> ~/Documents/ninja.log<br>
        <br>
        Tail of ~/Documents/ninja.log<br>
        <br>
        [3394/3395] Linking CXX executable bin/llvm-readobj<br>
        [3395/3395] Generating ../../bin/llvm-readelf<br>
        <br>
        cd bin<br>
        ./clang --version<br>
        clang version 12.0.0 (<a class="moz-txt-link-freetext" href="https://github.com/llvm/llvm-project.git">https://github.com/llvm/llvm-project.git</a>
        76c0092665867a6defcd328ba0d0d976eb65d991)<br>
        Target: x86_64-unknown-linux-gnu<br>
        <br>
        grep -n cxa_aux_runtime ~/Documents/ninja.log<br>
        <br>
        462:[391/3395] Building CXX object
projects/libcxxabi/src/CMakeFiles/cxxabi_static.dir/cxa_aux_runtime.cpp.o<br>
        546:[409/3395] Building CXX object
projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/cxa_aux_runtime.cpp.o<br>
        <br>
        sed -n 462,463p ~/Documents/ninja.log<br>
        <br>
        [391/3395] Building CXX object
projects/libcxxabi/src/CMakeFiles/cxxabi_static.dir/cxa_aux_runtime.cpp.o<br>
        [392/3395] Building CXX object
lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/LazyRandomTypeCollection.cpp.o<br>
        <br>
        sed -n 546,547p ~/Documents/ninja.log<br>
        <br>
        [409/3395] Building CXX object
projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/cxa_aux_runtime.cpp.o<br>
        [410/3395] Building CXX object
projects/libcxxabi/src/CMakeFiles/cxxabi_static.dir/cxa_thread_atexit.cpp.o<br>
        <br>
        The errors did not show on this run.<br>
        <br>
        Neil Nelson<br>
      </font><br>
    </p>
    <div class="moz-cite-prefix">On 12/31/20 1:52 PM, users users via
      llvm-dev wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAEwa1g155HpN3FuYscHjv_n7rbBBbEv17O08BfabEdMbZ1ryUw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Dear LLVM developers:
        <div><br>
        </div>
        <div>I am trying to build LLVM 11 & subprojects
          "clang;libcxx;libcxxabi" with gcc 8.2.0, but it failed with
          the following error messages:</div>
        <div><span style="color:rgb(0,0,0);white-space:pre-wrap">
</span></div>
        <div><span style="color:rgb(0,0,0);white-space:pre-wrap">....../build/libcxxabi/src/cxa_aux_runtime.cpp</span><br>
        </div>
        <div>
          <pre style="white-space:pre-wrap;color:rgb(0,0,0)">In file included from .../build/libcxx/include/stdlib.h:94,
                  from .../build/libcxx/include/cstdlib:86,
                  from .../build/libcxx/include/exception:82,
                  from .../build/libcxx/include/new:85,
                  from .../build/libcxxabi/src/cxa_aux_runtime.cpp:14:
.../8.2.0/include/c++/8.2.0/stdlib.h:38:12: error: 'std::abort' has not been declared
  using std::abort;
             ^~~~~
.../8.2.0/include/c++/8.2.0/stdlib.h:39:12: error: 'std::atexit' has not been declared
  using std::atexit;
             ^~~~~~
.../8.2.0/include/c++/8.2.0/stdlib.h:40:12: error: 'std::exit' has not been declared</pre>
          <pre style="white-space:pre-wrap;color:rgb(0,0,0)">.......... a lot more on std::xxxx not declared errors ........</pre>
          <pre style="white-space:pre-wrap;color:rgb(0,0,0)">
</pre>
          <pre style="white-space:pre-wrap;color:rgb(0,0,0)">I try it on IBM power8 and X86_64 both produced the similar errors on cxa_aux_runtime.cpp</pre>
          <pre style="white-space:pre-wrap;color:rgb(0,0,0)">Any advice to fix the issue? Many thanks in advance!</pre>
          <pre style="white-space:pre-wrap;color:rgb(0,0,0)">
</pre>
          <pre style="white-space:pre-wrap;color:rgb(0,0,0)">Happy New Year!</pre>
          <pre style="white-space:pre-wrap;color:rgb(0,0,0)">Shelton</pre>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
    </blockquote>
  </body>
</html>