[Bug 35484] New: Debug server can't be built on High Sierra

Bug ID 35484
Summary Debug server can’t be built on High Sierra
Product lldb
Version unspecified
Hardware PC
OS All
Status NEW
Severity enhancement
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter davide@freebsd.org
CC llvm-bugs@lists.llvm.org

[1/262] Linking CXX executable bin/debugserver
FAILED: bin/debugserver
: &&
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
 -fPIC -fvisibility-inlines-hidden -Werror=date-time
-Werror=unguarded-availability-new -std=c++11 -Wall -W -Wno-unused-parameter
-Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic
-Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor
-Wdelete-non-virtual-dtor -Wstring-conversion -fcolor-diagnostics
-Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-strict-aliasing
-Wno-deprecated-register -Wno-vla-extension
-Wno-gnu-zero-variadic-macro-arguments -Wno-zero-length-array
-Wno-extended-offsetof -g -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
-Wl,-search_paths_first -Wl,-headerpad_max_install_names -stdlib=libc++
-Wl,-sectcreate,__TEXT,__info_plist,/Users/davide/work/llvm/llvm/tools/lldb/tools/debugserver/source/../resources/lldb-debugserver-Info.plist
tools/lldb/tools/debugserver/source/CMakeFiles/debugserver.dir/debugserver.cpp.o
 -o bin/debugserver  -Wl,-rpath,@loader_path/../lib
lib/liblldbDebugserverCommon.a -framework Cocoa -framework CoreFoundation
-framework Foundation lib/liblldbDebugserverArchSupport.a
lib/liblldbDebugserverDarwin_DarwinLog.a -lcompression && cd
/Users/davide/work/llvm/build/bin && /usr/local/Cellar/cmake/3.10.0/bin/cmake
-E env
CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
codesign --force --sign lldb_codesign
/Users/davide/work/llvm/build/bin/debugserver
error: The specified item could not be found in the keychain.

Greg Clayton changed bug 35484

What Removed Added
Status NEW RESOLVED
Resolution INVALID
CC clayborg@gmail.com

Comment # 1 on bug 35484 from Greg Clayton

You need to create the lldb_codesign code signing certificate by following the
instructions at:

svn cat [http://llvm.org/svn/llvm-project/lldb/trunk/docs/code-signing.txt](http://llvm.org/svn/llvm-project/lldb/trunk/docs/code-signing.txt)

Davide Italiano changed bug 35484

What Removed Added
Status RESOLVED REOPENED
Resolution INVALID

Comment # 3 on bug 35484 from Davide Italiano

Reopening. The error message is particularly cryptic, in particular for
somebody who doesn't understand how the code signing mechanism works.
FWIW, I think this, rather than failing at link time can fail at configure time
(if possible). Then, it should point to the instructions you linked.

Davide Italiano changed bug 35484

What Removed Added
Resolution FIXED
Status REOPENED RESOLVED

Comment # 7 on bug 35484 from Davide Italiano

We fixed this a while ago.