[llvm-bugs] [Bug 38115] New: CMAKE_OBJCOPY not set

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jul 10 01:58:09 PDT 2018


            Bug ID: 38115
           Summary: CMAKE_OBJCOPY not set
           Product: compiler-rt
           Version: 6.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: fuzzer
          Assignee: unassignedbugs at nondot.org
          Reporter: protze at itc.rwth-aachen.de
                CC: llvm-bugs at lists.llvm.org

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

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:

property for variable: CMAKE_OBJCOPY
./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

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/20180710/51c37c16/attachment.html>

More information about the llvm-bugs mailing list