<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 - CMAKE_OBJCOPY not set"
href="https://bugs.llvm.org/show_bug.cgi?id=38115">38115</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>CMAKE_OBJCOPY not set
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Version</th>
<td>6.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>fuzzer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>protze@itc.rwth-aachen.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>When building current trunk version of LLVM including project/compiler-rt I see
the following error:
/bin/sh: --localize-hidden: command not found
Searching the source for this flag shows
projects/compiler-rt/lib/fuzzer/CMakeLists.txt to be the only file specifying
--localize-hidden. The error indicates that CMAKE_OBJCOPY might be empty.
Adding a cmake-message next to the line shows that the variable is indead
empty.
I suggest to use a default value ("true"?) in case the variable is not defined.
I found these matches for CMAKE_OBJCOPY in the configured build directory:
BUILD $ grep CMAKE_OBJCOPY . -riI
./projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64-bins/CMakeCache.txt:CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy
./projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64-bins/CMakeCache.txt://ADVANCED
property for variable: CMAKE_OBJCOPY
./projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64-bins/CMakeCache.txt:CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
./lib/cmake/llvm/AddLLVM.cmake: COMMAND ${CMAKE_OBJCOPY} --only-keep-debug
$<TARGET_FILE:${name}> $<TARGET_FILE:${name}>.debug
./lib/cmake/llvm/AddLLVM.cmake: COMMAND ${CMAKE_OBJCOPY}
--add-gnu-debuglink=$<TARGET_FILE:${name}>.debug $<TARGET_FILE:${name}>
./lib/cmake/llvm/LLVMExternalProjectUtils.cmake: list(APPEND compiler_args
-DCMAKE_OBJCOPY=${LLVM_RUNTIME_OUTPUT_INTDIR}/llvm-objcopy)
./lib/cmake/llvm/LLVMExternalProjectUtils.cmake:
-DCMAKE_OBJCOPY=${CMAKE_OBJCOPY}</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>