[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


https://bugs.llvm.org/show_bug.cgi?id=38115

            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
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}

-- 
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