Skip to content

Instantly share code, notes, and snippets.

@vade
Last active January 18, 2017 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vade/936394cfb9b21cacbf1c12824ddbffac to your computer and use it in GitHub Desktop.
Save vade/936394cfb9b21cacbf1c12824ddbffac to your computer and use it in GitHub Desktop.
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
if (is_mac) {
shared_library("Syphon") {
#ldflags = ["mac/"]
lib_dirs = ["//third_party/Syphon/mac/"]
libs = [
"Syphon.framework",
]
}
}
Errors ::
ninja -C out/Default
ninja: Entering directory `out/Default'
[1/1] Regenerating ninja files
[1476/8050] SOLINK libSyphon.dylib libSyphon.dylib.TOC
FAILED: libSyphon.dylib libSyphon.dylib.TOC
if [ ! -e "./libSyphon.dylib" -o ! -e "./libSyphon.dylib.TOC" ] || otool -l "./libSyphon.dylib" | grep -q LC_REEXPORT_DYLIB ; then TOOL_VERSION=1484604693 ../../build/toolchain/mac/linker_driver.py ../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared -Wl,-install_name,@rpath/"libSyphon.dylib" -stdlib=libc++ -arch x86_64 -Werror -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.9 -Wl,-ObjC -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/../../.. -L../../third_party/Syphon/mac -o "./libSyphon.dylib" -Wl,-filelist,"./libSyphon.dylib.rsp" -framework Syphon && { otool -l "./libSyphon.dylib" | grep LC_ID_DYLIB -A 5; nm -gP "./libSyphon.dylib" | cut -f1-2 -d' ' | grep -v U$$; true; } > "./libSyphon.dylib.TOC"; else TOOL_VERSION=1484604693 ../../build/toolchain/mac/linker_driver.py ../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared -Wl,-install_name,@rpath/"libSyphon.dylib" -stdlib=libc++ -arch x86_64 -Werror -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.9 -Wl,-ObjC -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/../../.. -L../../third_party/Syphon/mac -o "./libSyphon.dylib" -Wl,-filelist,"./libSyphon.dylib.rsp" -framework Syphon && { otool -l "./libSyphon.dylib" | grep LC_ID_DYLIB -A 5; nm -gP "./libSyphon.dylib" | cut -f1-2 -d' ' | grep -v U$$; true; } > "./libSyphon.dylib.tmp" && if ! cmp -s "./libSyphon.dylib.tmp" "./libSyphon.dylib.TOC"; then mv "./libSyphon.dylib.tmp" "./libSyphon.dylib.TOC" ; fi; fi
ld: framework not found Syphon
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Traceback (most recent call last):
File "../../build/toolchain/mac/linker_driver.py", line 229, in <module>
Main(sys.argv)
File "../../build/toolchain/mac/linker_driver.py", line 79, in Main
subprocess.check_call(compiler_driver_args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['../../third_party/llvm-build/Release+Asserts/bin/clang++', '-shared', '-Wl,-install_name,@rpath/libSyphon.dylib', '-stdlib=libc++', '-arch', 'x86_64', '-Werror', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk', '-mmacosx-version-min=10.9', '-Wl,-ObjC', '-Wl,-rpath,@loader_path/.', '-Wl,-rpath,@loader_path/../../..', '-L../../third_party/Syphon/mac', '-o', './libSyphon.dylib', '-Wl,-filelist,./libSyphon.dylib.rsp', '-framework', 'Syphon']' returned non-zero exit status 1
[1485/8050] CXX obj/third_party/WebKit/Source/platform/heap/blink_heap_unittests/HeapTest.o
ninja: build stopped: subcommand failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment