<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 - Linker error when building the LLVM 9.0 in Centos 7 docker image"
href="https://bugs.llvm.org/show_bug.cgi?id=43411">43411</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Linker error when building the LLVM 9.0 in Centos 7 docker image
</td>
</tr>
<tr>
<th>Product</th>
<td>Build scripts
</td>
</tr>
<tr>
<th>Version</th>
<td>9.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</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>cmake
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dodoentertainment@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>When trying to build LLVM 9.0 using two-stage build described with this
Dockerfile:
<a href="https://github.com/microblink/centos-clang/blob/2884171f13ea3c4996fb992946733f38d4cd56f8/Dockerfile">https://github.com/microblink/centos-clang/blob/2884171f13ea3c4996fb992946733f38d4cd56f8/Dockerfile</a>
build fails with the following error:
[3558/5130] Linking CXX shared library lib/libclang-cpp.so.9
FAILED: lib/libclang-cpp.so.9
: <invocation ommited due to bugzilla limit of 65535 characters > :
/usr/local/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
lib/libLLVMRuntimeDyld.a(RTDyldMemoryManager.cpp.o): in function
`llvm::RTDyldMemoryManager::registerEHFramesInProcess(unsigned char*, unsigned
long)':
RTDyldMemoryManager.cpp:(.text._ZN4llvm19RTDyldMemoryManager25registerEHFramesInProcessEPhm+0x1):
undefined reference to `__register_frame'
/usr/local/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
lib/libLLVMRuntimeDyld.a(RTDyldMemoryManager.cpp.o): in function
`llvm::RTDyldMemoryManager::deregisterEHFramesInProcess(unsigned char*,
unsigned long)':
RTDyldMemoryManager.cpp:(.text._ZN4llvm19RTDyldMemoryManager27deregisterEHFramesInProcessEPhm+0x1):
undefined reference to `__deregister_frame'
/usr/local/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
lib/libLLVMRuntimeDyld.a(RTDyldMemoryManager.cpp.o): in function
`llvm::RTDyldMemoryManager::registerEHFrames(unsigned char*, unsigned long,
unsigned long)':
RTDyldMemoryManager.cpp:(.text._ZN4llvm19RTDyldMemoryManager16registerEHFramesEPhmm+0x1b):
undefined reference to `__register_frame'
/usr/local/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
lib/libLLVMRuntimeDyld.a(RTDyldMemoryManager.cpp.o): in function
`llvm::RTDyldMemoryManager::deregisterEHFrames()':
RTDyldMemoryManager.cpp:(.text._ZN4llvm19RTDyldMemoryManager18deregisterEHFramesEv+0x24):
undefined reference to `__deregister_frame'
clang-9: error: linker command failed with exit code 1 (use -v to see
invocation)
You can easily reproduce that by trying to build the docker image using
Dockerfile from link above.</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>