[llvm-bugs] [Bug 38894] New: clang-8: error: linker command failed with exit code 1 (use -v to see invocation) running FuzzerUnitTests

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Sep 10 10:50:23 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38894

            Bug ID: 38894
           Summary: clang-8: error: linker command failed with exit code 1
                    (use -v to see invocation) running FuzzerUnitTests
           Product: Test Suite
           Version: trunk
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Programs Tests
          Assignee: unassignedbugs at nondot.org
          Reporter: michael.coyle at newwavedv.com
                CC: llvm-bugs at lists.llvm.org

[mcoyle at 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 https://git.llvm.org/git/compiler-rt.git/ 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 at 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=http://bugzilla.redhat.com/bugzilla --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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180910/0da3648e/attachment.html>


More information about the llvm-bugs mailing list