<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 - LLD on the release/13.x branch fails to build with GCC 6.3.0"
href="https://bugs.llvm.org/show_bug.cgi?id=51437">51437</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>LLD on the release/13.x branch fails to build with GCC 6.3.0
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>wasm
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tobias@plexapp.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, sbc@chromium.org
</td>
</tr></table>
<p>
<div>
<pre>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.
```</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>