* installing *source* package ‘otelsdk’ ...
** this is package ‘otelsdk’ version ‘0.2.1’
** package ‘otelsdk’ successfully unpacked and MD5 sums checked
** using staged installation
** Using protobuf via pkg-config
** libs
using C compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
using C++ compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
using SDK: ‘MacOSX11.3.sdk’
rm -f otelcpplib
tar xzf vendor/opentelemetry-cpp.tgz --no-same-owner || \
	    tar xzf vendor/opentelemetry-cpp.tgz
mkdir -p cpp/third_party/opentelemetry-proto/opentelemetry/proto/collector/common/v1
cp status.proto \
		cpp/third_party/opentelemetry-proto/opentelemetry/proto/collector/common/v1/
patch -p0 < vendor/opentelemetry-cpp.patch
patching file 'cpp/exporters/otlp/src/otlp_file_client.cc'
patching file 'cpp/third_party/opentelemetry-proto/Makefile'
patching file 'cpp/cmake/opentelemetry-proto.cmake'
patching file 'cpp/sdk/src/metrics/meter_context.cc'
patching file 'cpp/sdk/include/opentelemetry/sdk/metrics/meter_context.h'
patching file 'cpp/sdk/src/metrics/meter_provider.cc'
patching file 'cpp/exporters/otlp/src/otlp_file_client.cc'
patching file 'cpp/api/include/opentelemetry/trace/span.h'
patching file 'cpp/sdk/include/opentelemetry/sdk/trace/multi_recordable.h'
patching file 'cpp/sdk/include/opentelemetry/sdk/trace/recordable.h'
patching file 'cpp/sdk/src/trace/span.cc'
patching file 'cpp/api/include/opentelemetry/trace/default_span.h'
patching file 'cpp/api/include/opentelemetry/trace/noop.h'
patching file 'cpp/sdk/src/trace/span.h'
patching file 'cpp/sdk/include/opentelemetry/sdk/trace/span_data.h'
patching file 'cpp/exporters/otlp/include/opentelemetry/exporters/otlp/otlp_recordable.h'
patching file 'cpp/exporters/otlp/src/otlp_recordable.cc'
(cd cpp; MAKEFLAGS= CC="clang -arch x86_64" CXX="clang++ -arch x86_64 -std=gnu++17" AR="ar" \
	RANLIB="ranlib" CPPFLAGS="-I/opt/R/x86_64/include" \
	CXXFLAGS="-falign-functions=64 -Wall -g -O2  -fPIC -DNDEBUG " \
	CFLAGS="-falign-functions=64 -Wall -g -O2  -fPIC -DNDEBUG " \
	""/Applications/CMake.app/Contents/bin/cmake"" -S . -B build \
	-DWITH_ABI_VERSION_1=OFF -DWITH_ABI_VERSION_2=ON \
	-DCMAKE_INSTALL_PREFIX=../install -DCMAKE_INSTALL_LIBDIR=lib \
	-DCMAKE_PREFIX_PATH="" \
	-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
	-DBUILD_SHARED_LIBS=OFF -DCMAKE_CXX_STANDARD=14 \
	-DWITH_ELASTICSEARCH=OFF -DWITH_EXAMPLES=OFF \
	-DWITH_OTLP_GRPC=OFF -DWITH_OTLP_HTTP=ON -DWITH_OTLP_FILE=ON \
	-DWITH_ABSEIL=OFF -DWITH_PROMETHEUS=OFF -DBUILD_TESTING=OFF \
	-DWITH_BENCHMARK=OFF -DWITH_FUNC_TESTS=OFF -DWITH_ETW=OFF)
CMake Deprecation Warning at CMakeLists.txt:25 (cmake_policy):
  The OLD behavior for policy CMP0092 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- The C compiler identification is AppleClang 14.0.3.14030022
-- The CXX compiler identification is AppleClang 14.0.3.14030022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- OPENTELEMETRY_ABI_VERSION_NO=2
-- OPENTELEMETRY_VERSION=1.22.0
-- Performing Test check_cxx_compiler_flag_-Wno-type-limits
-- Performing Test check_cxx_compiler_flag_-Wno-type-limits - Success
-- Performing Test check_cxx_compiler_flag_-Wno-deprecated-declarations
-- Performing Test check_cxx_compiler_flag_-Wno-deprecated-declarations - Success
-- Performing Test check_cxx_compiler_flag_-Wno-unused-parameter
-- Performing Test check_cxx_compiler_flag_-Wno-unused-parameter - Success
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Could NOT find Protobuf (missing: Protobuf_DIR)
-- Could NOT find Protobuf (missing: Protobuf_LIBRARIES Protobuf_INCLUDE_DIR) 
CMake Error at CMakeLists.txt:350 (find_package):
  Could not find a package configuration file provided by "Protobuf" with any
  of the following names:

    ProtobufConfig.cmake
    protobuf-config.cmake

  Add the installation prefix of "Protobuf" to CMAKE_PREFIX_PATH or set
  "Protobuf_DIR" to a directory containing one of the above files.  If
  "Protobuf" provides a separate development package or SDK, be sure it has
  been installed.


-- Configuring incomplete, errors occurred!
make: *** [otelcpplib] Error 1
ERROR: compilation failed for package ‘otelsdk’
* removing ‘/Volumes/Builds/packages/big-sur-x86_64/results/4.5/otelsdk.Rcheck/otelsdk’