Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect framework linking when sysroot is specified: ld: warning: directory not found for option '-F/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/Metal.framework /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/CoreServices.framework /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks' #763

Open
barracuda156 opened this issue Jul 27, 2024 · 0 comments

Comments

@barracuda156
Copy link
Contributor

The linking fails, perhaps due to -F"/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/Metal.framework /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/CoreServices.framework /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks". I do not think this is an allowed way to pass flags.

It probably should rather be something like -F/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks -framework Metal etc.

  [ 99%] Linking CXX shared library lib/libocca.dylib
  /opt/local/bin/cmake -E cmake_link_script CMakeFiles/libocca.dir/link.txt --verbose=ON
  /opt/local/bin/clang++-mp-17  -Wall -Wextra -Wunused-function -Wunused-variable -Wwrite-strings -Wfloat-equal -Wshadow -Wno-unused-parameter -pipe -Os -DNDEBUG -I/opt/local/include -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -fno-strict-aliasing -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -mmacosx-version-min=12.0 -dynamiclib -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names -L/opt/local/lib/libomp -lomp -lc++abi -lc++ -Wl,-rpath,/opt/local/lib/libgcc -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -o lib/libocca.dylib -install_name @rpath/libocca.dylib CMakeFiles/libocca.dir/src/c/base.cpp.o CMakeFiles/libocca.dir/src/c/device.cpp.o CMakeFiles/libocca.dir/src/c/dtype.cpp.o CMakeFiles/libocca.dir/src/c/experimental/kernelBuilder.cpp.o CMakeFiles/libocca.dir/src/c/io.cpp.o CMakeFiles/libocca.dir/src/c/json.cpp.o CMakeFiles/libocca.dir/src/c/kernel.cpp.o CMakeFiles/libocca.dir/src/c/kernel_fortran_interface.cpp.o CMakeFiles/libocca.dir/src/c/memory.cpp.o CMakeFiles/libocca.dir/src/c/memoryPool.cpp.o CMakeFiles/libocca.dir/src/c/scope.cpp.o CMakeFiles/libocca.dir/src/c/stream.cpp.o CMakeFiles/libocca.dir/src/core/base.cpp.o CMakeFiles/libocca.dir/src/core/device.cpp.o CMakeFiles/libocca.dir/src/core/kernel.cpp.o CMakeFiles/libocca.dir/src/core/kernelArg.cpp.o CMakeFiles/libocca.dir/src/core/memory.cpp.o CMakeFiles/libocca.dir/src/core/memoryPool.cpp.o CMakeFiles/libocca.dir/src/core/stream.cpp.o CMakeFiles/libocca.dir/src/core/streamTag.cpp.o CMakeFiles/libocca.dir/src/dtype/builtins.cpp.o CMakeFiles/libocca.dir/src/dtype/dtype.cpp.o CMakeFiles/libocca.dir/src/experimental/kernelBuilder.cpp.o CMakeFiles/libocca.dir/src/functional/baseFunction.cpp.o CMakeFiles/libocca.dir/src/functional/functionDefinition.cpp.o CMakeFiles/libocca.dir/src/functional/range.cpp.o CMakeFiles/libocca.dir/src/functional/scope.cpp.o CMakeFiles/libocca.dir/src/functional/utils.cpp.o CMakeFiles/libocca.dir/src/loops/forLoop.cpp.o CMakeFiles/libocca.dir/src/loops/iteration.cpp.o CMakeFiles/libocca.dir/src/loops/typelessForLoop.cpp.o CMakeFiles/libocca.dir/src/occa/internal/api/metal/polyfill.cpp.o CMakeFiles/libocca.dir/src/occa/internal/bin/occa.cpp.o CMakeFiles/libocca.dir/src/occa/internal/c/cli.cpp.o CMakeFiles/libocca.dir/src/occa/internal/c/types.cpp.o CMakeFiles/libocca.dir/src/occa/internal/core/buffer.cpp.o CMakeFiles/libocca.dir/src/occa/internal/core/device.cpp.o CMakeFiles/libocca.dir/src/occa/internal/core/kernel.cpp.o CMakeFiles/libocca.dir/src/occa/internal/core/launchedDevice.cpp.o CMakeFiles/libocca.dir/src/occa/internal/core/launchedKernel.cpp.o CMakeFiles/libocca.dir/src/occa/internal/core/memory.cpp.o CMakeFiles/libocca.dir/src/occa/internal/core/memoryPool.cpp.o CMakeFiles/libocca.dir/src/occa/internal/core/stream.cpp.o CMakeFiles/libocca.dir/src/occa/internal/core/streamTag.cpp.o CMakeFiles/libocca.dir/src/occa/internal/functional/functionStore.cpp.o CMakeFiles/libocca.dir/src/occa/internal/io/cache.cpp.o CMakeFiles/libocca.dir/src/occa/internal/io/output.cpp.o CMakeFiles/libocca.dir/src/occa/internal/io/utils.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/attribute.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/builtins/attributes/atomic.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/builtins/attributes/barrier.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/builtins/attributes/dim.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/builtins/attributes/exclusive.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/builtins/attributes/globalPtr.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/builtins/attributes/implicitArg.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/builtins/attributes/inner.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/builtins/attributes/kernel.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/builtins/attributes/maxInnerDims.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/builtins/attributes/noBarrier.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/builtins/attributes/outer.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/builtins/attributes/restrict.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/builtins/attributes/shared.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/builtins/attributes/simdLength.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/builtins/attributes/tile.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/builtins/types.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/enumerator.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/binaryOpNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/callNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/charNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/constCastNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/cudaCallNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/deleteNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/dpcppAtomicNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/dpcppLocalMemoryNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/dynamicCastNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/emptyNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/expr.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/exprNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/exprNodeArray.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/exprOpNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/expressionParser.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/funcCastNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/functionNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/identifierNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/lambdaNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/leftUnaryOpNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/newNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/pairNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/parenCastNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/parenthesesNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/primitiveNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/reinterpretCastNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/rightUnaryOpNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/sizeofNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/staticCastNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/stringNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/subscriptNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/ternaryOpNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/throwNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/tupleNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/typeNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/variableNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/expr/vartypeNode.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/file.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/kernelMetadata.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/keyword.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/loaders/attributeLoader.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/loaders/enumLoader.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/loaders/structLoader.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/loaders/typeLoader.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/loaders/unionLoader.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/loaders/variableLoader.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/macro.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/modes/cuda.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/modes/dpcpp.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/modes/hip.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/modes/metal.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/modes/okl.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/modes/oklForStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/modes/opencl.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/modes/openmp.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/modes/serial.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/modes/withLauncher.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/operator.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/parser.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/preprocessor.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/printer.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/processingStages.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/qualifier.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/scope.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/specialMacros.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/blockStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/breakStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/caseStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/classAccessStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/commentStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/continueStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/declarationStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/defaultStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/directiveStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/elifStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/elseStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/emptyStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/expressionStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/forStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/functionDeclStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/functionStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/gotoLabelStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/gotoStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/ifStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/namespaceStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/pragmaStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/returnStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/sourceCodeStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/statement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/statementArray.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/switchStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statement/whileStatement.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statementContext.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/statementPeeker.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/token/charToken.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/token/commentToken.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/token/directiveToken.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/token/functionToken.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/token/identifierToken.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/token/newlineToken.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/token/operatorToken.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/token/pragmaToken.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/token/primitiveToken.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/token/qualifierToken.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/token/stringToken.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/token/token.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/token/typeToken.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/token/unknownToken.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/token/variableToken.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/token/vartypeToken.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/tokenContext.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/tokenizer.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/type/array.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/type/class.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/type/enum.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/type/function.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/type/functionPtr.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/type/lambda.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/type/pointer.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/type/primitive.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/type/struct.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/type/structure.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/type/type.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/type/typedef.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/type/union.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/type/vartype.cpp.o CMakeFiles/libocca.dir/src/occa/internal/lang/variable.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/cuda/buffer.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/cuda/device.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/cuda/kernel.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/cuda/memory.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/cuda/memoryPool.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/cuda/registration.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/cuda/stream.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/cuda/streamTag.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/cuda/utils.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/dpcpp/buffer.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/dpcpp/device.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/dpcpp/kernel.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/dpcpp/memory.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/dpcpp/memoryPool.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/dpcpp/registration.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/dpcpp/stream.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/dpcpp/streamTag.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/dpcpp/utils.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/hip/buffer.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/hip/device.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/hip/kernel.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/hip/memory.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/hip/memoryPool.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/hip/registration.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/hip/stream.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/hip/streamTag.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/hip/utils.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/metal/buffer.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/metal/device.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/metal/kernel.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/metal/memory.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/metal/memoryPool.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/metal/registration.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/metal/stream.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/metal/streamTag.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/opencl/buffer.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/opencl/device.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/opencl/kernel.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/opencl/memory.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/opencl/memoryPool.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/opencl/registration.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/opencl/stream.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/opencl/streamTag.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/opencl/utils.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/openmp/device.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/openmp/registration.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/openmp/utils.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/serial/buffer.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/serial/device.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/serial/kernel.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/serial/memory.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/serial/memoryPool.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/serial/registration.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/serial/stream.cpp.o CMakeFiles/libocca.dir/src/occa/internal/modes/serial/streamTag.cpp.o CMakeFiles/libocca.dir/src/occa/internal/utils/cli.cpp.o CMakeFiles/libocca.dir/src/occa/internal/utils/env.cpp.o CMakeFiles/libocca.dir/src/occa/internal/utils/gc.cpp.o CMakeFiles/libocca.dir/src/occa/internal/utils/lex.cpp.o CMakeFiles/libocca.dir/src/occa/internal/utils/misc.cpp.o CMakeFiles/libocca.dir/src/occa/internal/utils/string.cpp.o CMakeFiles/libocca.dir/src/occa/internal/utils/styling.cpp.o CMakeFiles/libocca.dir/src/occa/internal/utils/sys.cpp.o CMakeFiles/libocca.dir/src/occa/internal/utils/testing.cpp.o CMakeFiles/libocca.dir/src/occa/internal/utils/trie.cpp.o CMakeFiles/libocca.dir/src/occa/internal/utils/vector.cpp.o CMakeFiles/libocca.dir/src/types/dim.cpp.o CMakeFiles/libocca.dir/src/types/json.cpp.o CMakeFiles/libocca.dir/src/types/primitive.cpp.o CMakeFiles/libocca.dir/src/types/typeinfo.cpp.o CMakeFiles/libocca.dir/src/utils/exception.cpp.o CMakeFiles/libocca.dir/src/utils/hash.cpp.o CMakeFiles/libocca.dir/src/utils/io.cpp.o CMakeFiles/libocca.dir/src/utils/logging.cpp.o CMakeFiles/libocca.dir/src/utils/mutex.cpp.o CMakeFiles/libocca.dir/src/occa/internal/api/metal.mm.o CMakeFiles/libocca.dir/src/occa/internal/api/metal/buffer.mm.o CMakeFiles/libocca.dir/src/occa/internal/api/metal/commandQueue.mm.o CMakeFiles/libocca.dir/src/occa/internal/api/metal/device.mm.o CMakeFiles/libocca.dir/src/occa/internal/api/metal/event.mm.o CMakeFiles/libocca.dir/src/occa/internal/api/metal/function.mm.o -F"/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/Metal.framework /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/CoreServices.framework /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks"  -Wl,-rpath,/opt/local/lib -framework OpenCL -framework AppKit
  ld: warning: directory not found for option '-F/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/Metal.framework /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/CoreServices.framework /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks'
  Undefined symbols for architecture x86_64:
    "_MTLCopyAllDevices", referenced from:
        occa::api::metal::getDeviceCount() in metal.mm.o
        occa::api::metal::getDevice(int) in metal.mm.o
  ld: symbol(s) not found for architecture x86_64
  clang++: error: linker command failed with exit code 1 (use -v to see invocation)
  make[2]: *** [lib/libocca.dylib] Error 1
  make[2]: Leaving directory `/opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_devel_libocca/libocca/work/build'
  make[1]: *** [CMakeFiles/libocca.dir/all] Error 2
  make[1]: Leaving directory `/opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_devel_libocca/libocca/work/build'
  make: *** [all] Error 2
  make: Leaving directory `/opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_devel_libocca/libocca/work/build'
  Command failed:  cd "/opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_devel_libocca/libocca/work/build" && /usr/bin/make -j4 -w all VERBOSE=ON 
  Exit code: 2

Complete log: https://github.com/macports/macports-ports/actions/runs/10123719956/job/27997278004?pr=25071

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant