<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - clang-8: error: linker command failed with exit code 1 (use -v to see invocation) running FuzzerUnitTests"
   href="https://bugs.llvm.org/show_bug.cgi?id=38894">38894</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang-8: error: linker command failed with exit code 1 (use -v to see invocation) running FuzzerUnitTests
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Test Suite
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Programs Tests
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>michael.coyle@newwavedv.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>[mcoyle@dut build]$ ninja-build -v
projects/compiler-rt/lib/fuzzer/tests/FuzzerUnitTests
[0/2] cd
/mnt/raid5_a/llvm/build/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64-bins
&& /usr/bin/cmake3 --build .
ninja: no work to do.
[2/2] cd /mnt/raid5_a/llvm/build/projects/compiler-rt/lib/fuzzer/tests &&
/mnt/raid5_a/llvm/build/./bin/clang
FuzzerTestObjects.FuzzerUnittest.cpp.x86_64.o
FuzzerTestObjects.gtest-all.cc.x86_64.o
/mnt/raid5_a/llvm/build/projects/compiler-rt/lib/fuzzer/tests/libRTFuzzerTest.x86_64.a
-o
/mnt/raid5_a/llvm/build/projects/compiler-rt/lib/fuzzer/tests/./Fuzzer-x86_64-Test
-Wl,-allow-shlib-undefined --driver-mode=g++ -lstdc++ -lpthread
/mnt/raid5_a/llvm/build/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/lib/libc++.a
-m64
FAILED: projects/compiler-rt/lib/fuzzer/tests/Fuzzer-x86_64-Test
cd /mnt/raid5_a/llvm/build/projects/compiler-rt/lib/fuzzer/tests &&
/mnt/raid5_a/llvm/build/./bin/clang
FuzzerTestObjects.FuzzerUnittest.cpp.x86_64.o
FuzzerTestObjects.gtest-all.cc.x86_64.o
/mnt/raid5_a/llvm/build/projects/compiler-rt/lib/fuzzer/tests/libRTFuzzerTest.x86_64.a
-o
/mnt/raid5_a/llvm/build/projects/compiler-rt/lib/fuzzer/tests/./Fuzzer-x86_64-Test
-Wl,-allow-shlib-undefined --driver-mode=g++ -lstdc++ -lpthread
/mnt/raid5_a/llvm/build/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/lib/libc++.a
-m64
/mnt/raid5_a/llvm/build/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/lib/libc++.a(stdexcept.cpp.o):
In function `std::logic_error::logic_error(char const*)':
stdexcept.cpp:(.text+0x620): multiple definition of
`std::logic_error::logic_error(char const*)'
/opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/libstdc++_nonshared.a(cow-stdexcept.o):(.text._ZNSt11logic_errorC2EPKc+0x0):
first defined here
/mnt/raid5_a/llvm/build/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/lib/libc++.a(stdexcept.cpp.o):
In function `std::logic_error::logic_error(char const*)':
stdexcept.cpp:(.text+0x620): multiple definition of
`std::logic_error::logic_error(char const*)'
/opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/libstdc++_nonshared.a(cow-stdexcept.o):(.text._ZNSt11logic_errorC2EPKc+0x0):
first defined here
/mnt/raid5_a/llvm/build/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/lib/libc++.a(stdexcept.cpp.o):
In function `std::logic_error::logic_error(std::logic_error const&)':
stdexcept.cpp:(.text+0x680): multiple definition of
`std::logic_error::logic_error(std::logic_error const&)'
/opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/libstdc++_nonshared.a(cow-stdexcept.o):(.text._ZNSt11logic_errorC2ERKS_+0x0):
first defined here
/mnt/raid5_a/llvm/build/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/lib/libc++.a(stdexcept.cpp.o):
In function `std::logic_error::logic_error(std::logic_error const&)':
stdexcept.cpp:(.text+0x680): multiple definition of
`std::logic_error::logic_error(std::logic_error const&)'
/opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/libstdc++_nonshared.a(cow-stdexcept.o):(.text._ZNSt11logic_errorC2ERKS_+0x0):
first defined here
/mnt/raid5_a/llvm/build/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/lib/libc++.a(stdexcept.cpp.o):
In function `std::logic_error::operator=(std::logic_error const&)':
stdexcept.cpp:(.text+0x6a0): multiple definition of
`std::logic_error::operator=(std::logic_error const&)'
/opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/libstdc++_nonshared.a(cow-stdexcept.o):(.text._ZNSt11logic_erroraSERKS_+0x0):
first defined here
/mnt/raid5_a/llvm/build/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/lib/libc++.a(stdexcept.cpp.o):
In function `std::runtime_error::runtime_error(char const*)':
stdexcept.cpp:(.text+0x750): multiple definition of
`std::runtime_error::runtime_error(char const*)'
/opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/libstdc++_nonshared.a(cow-stdexcept.o):(.text._ZNSt13runtime_errorC2EPKc+0x0):
first defined here
/mnt/raid5_a/llvm/build/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/lib/libc++.a(stdexcept.cpp.o):
In function `std::runtime_error::runtime_error(char const*)':
stdexcept.cpp:(.text+0x750): multiple definition of
`std::runtime_error::runtime_error(char const*)'
/opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/libstdc++_nonshared.a(cow-stdexcept.o):(.text._ZNSt13runtime_errorC2EPKc+0x0):
first defined here
/mnt/raid5_a/llvm/build/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/lib/libc++.a(stdexcept.cpp.o):
In function `std::runtime_error::runtime_error(std::runtime_error const&)':
stdexcept.cpp:(.text+0x7b0): multiple definition of
`std::runtime_error::runtime_error(std::runtime_error const&)'
/opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/libstdc++_nonshared.a(cow-stdexcept.o):(.text._ZNSt13runtime_errorC2ERKS_+0x0):
first defined here
/mnt/raid5_a/llvm/build/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/lib/libc++.a(stdexcept.cpp.o):
In function `std::runtime_error::runtime_error(std::runtime_error const&)':
stdexcept.cpp:(.text+0x7b0): multiple definition of
`std::runtime_error::runtime_error(std::runtime_error const&)'
/opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/libstdc++_nonshared.a(cow-stdexcept.o):(.text._ZNSt13runtime_errorC2ERKS_+0x0):
first defined here
/mnt/raid5_a/llvm/build/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/lib/libc++.a(stdexcept.cpp.o):
In function `std::runtime_error::operator=(std::runtime_error const&)':
stdexcept.cpp:(.text+0x7d0): multiple definition of
`std::runtime_error::operator=(std::runtime_error const&)'
/opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/libstdc++_nonshared.a(cow-stdexcept.o):(.text._ZNSt13runtime_erroraSERKS_+0x0):
first defined here
clang-8: error: linker command failed with exit code 1 (use -v to see
invocation)
ninja: build stopped: subcommand failed.


running from a git clone of <a href="https://git.llvm.org/git/compiler-rt.git/">https://git.llvm.org/git/compiler-rt.git/</a> as of
commit-id e843a7f9826d6fc8aaa5934003298bf453a0373a

on RHEL 7

Linux 3.10.0-862.11.6.el7.x86_64 #1 SMP Fri Aug 10 16:55:11 UTC 2018 x86_64
x86_64 x86_64 GNU/Linux

using 

[mcoyle@dut compiler-rt]$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap
--enable-languages=c,c++,fortran,lto --prefix=/opt/rh/devtoolset-7/root/usr
--mandir=/opt/rh/devtoolset-7/root/usr/share/man
--infodir=/opt/rh/devtoolset-7/root/usr/share/info
--with-bugurl=<a href="http://bugzilla.redhat.com/bugzilla">http://bugzilla.redhat.com/bugzilla</a> --enable-shared
--enable-threads=posix --enable-checking=release --enable-multilib
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-linker-build-id
--with-gcc-major-version-only --enable-plugin --with-linker-hash-style=gnu
--enable-initfini-array --with-default-libstdcxx-abi=gcc4-compatible
--with-isl=/builddir/build/BUILD/gcc-7.3.1-20180303/obj-x86_64-redhat-linux/isl-install
--enable-libmpx --enable-gnu-indirect-function --with-tune=generic
--with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC)

to compile.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>