[llvm-bugs] [Bug 51437] New: LLD on the release/13.x branch fails to build with GCC 6.3.0
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Aug 11 02:53:16 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=51437
Bug ID: 51437
Summary: LLD on the release/13.x branch fails to build with GCC
6.3.0
Product: lld
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: wasm
Assignee: unassignedbugs at nondot.org
Reporter: tobias at plexapp.com
CC: llvm-bugs at lists.llvm.org, sbc at chromium.org
I am trying to rebuild LLVM 13.x for our toolchain. Our process is to bootstrap
clang with GCC 6.3.0 and then build a second stage with the new clang.
Unfortunately it seems like lld fails to build with GCC 6.3.0:
```
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache
/home/tobias/.conan_plex/.conan/data/gcc-sysroots/200406/plex/toolchain/package/4db1be536558d833e52e862fd84d64d75c2b3656/gcc-toolchains/x86_64-plex-linux-gnu/bin/x86_64-plex-linux-gnu-g++
--sysroot=/home/tobias/.conan_plex/.conan/data/gcc-sysroots/200406/plex/toolchain/package/4db1be536558d833e52e862fd84d64d75c2b3656/gcc-toolchains/x86_64-plex-linux-gnu/x86_64-plex-linux-gnu/sysroot
-DGTEST_HAS_RTTI=0 -DLLD_VENDOR=\"PlexBootstrap\" -D_GNU_SOURCE
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-Itools/lld/wasm
-I/home/tobias/.conan_plex/.conan/data/llvm-source/13.0.0-168ece28/plex/toolchain/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/llvm-project-168ece289bd4266b711f9bbccc0fe52eb772700c/lld/wasm
-I/home/tobias/.conan_plex/.conan/data/llvm-source/13.0.0-168ece28/plex/toolchain/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/llvm-project-168ece289bd4266b711f9bbccc0fe52eb772700c/lld/include
-Itools/lld/include -Iinclude
-I/home/tobias/.conan_plex/.conan/data/llvm-source/13.0.0-168ece28/plex/toolchain/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/llvm-project-168ece289bd4266b711f9bbccc0fe52eb772700c/llvm/include
-isystem
/home/tobias/.conan_plex/.conan/data/zlib-host/2.0.2/plex/toolchain/package/a34aea74c57bb3fac159f95aa18f2229f97be968/include
-fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time
-Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-initializers -pedantic -Wno-long-long
-Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment
-Wmisleading-indentation -fdiagnostics-color -ffunction-sections
-fdata-sections -O3 -DNDEBUG -fno-exceptions -fno-rtti -std=c++14 -MD -MT
tools/lld/wasm/CMakeFiles/lldWasm.dir/MapFile.cpp.o -MF
tools/lld/wasm/CMakeFiles/lldWasm.dir/MapFile.cpp.o.d -o
tools/lld/wasm/CMakeFiles/lldWasm.dir/MapFile.cpp.o -c
/home/tobias/.conan_plex/.conan/data/llvm-source/13.0.0-168ece28/plex/toolchain/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/llvm-project-168ece289bd4266b711f9bbccc0fe52eb772700c/lld/wasm/MapFile.cpp
In file included from
/home/tobias/.conan_plex/.conan/data/llvm-source/13.0.0-168ece28/plex/toolchain/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/llvm-project-168ece289bd4266b711f9bbccc0fe52eb772700c/lld/wasm/MapFile.cpp:28:0:
/home/tobias/.conan_plex/.conan/data/llvm-source/13.0.0-168ece28/plex/toolchain/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/llvm-project-168ece289bd4266b711f9bbccc0fe52eb772700c/lld/wasm/SyntheticSections.h:134:36:
error: specialization of 'template<class T> struct llvm::DenseMapInfo' in
different namespace [-fpermissive]
template <typename T> struct llvm::DenseMapInfo<lld::wasm::ImportKey<T>> {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from
/home/tobias/.conan_plex/.conan/data/llvm-source/13.0.0-168ece28/plex/toolchain/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/llvm-project-168ece289bd4266b711f9bbccc0fe52eb772700c/lld/wasm/MapFile.h:12:0,
from
/home/tobias/.conan_plex/.conan/data/llvm-source/13.0.0-168ece28/plex/toolchain/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/llvm-project-168ece289bd4266b711f9bbccc0fe52eb772700c/lld/wasm/MapFile.cpp:21:
/home/tobias/.conan_plex/.conan/data/llvm-source/13.0.0-168ece28/plex/toolchain/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/llvm-project-168ece289bd4266b711f9bbccc0fe52eb772700c/llvm/include/llvm/ADT/ArrayRef.h:29:31:
error: from definition of 'template<class T> struct llvm::DenseMapInfo'
[-fpermissive]
template<typename T> struct DenseMapInfo;
^~~~~~~~~~~~
ninja: build stopped: subcommand failed.
```
--
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/20210811/9792afcc/attachment-0001.html>
More information about the llvm-bugs
mailing list