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

[opentelemetry-cpp] Build error on x64-windows-static, x64-linux, x64-osx #39830

Closed
antkmsft opened this issue Jul 10, 2024 · 4 comments
Closed
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@antkmsft
Copy link
Member

-- Applying patch add-missing-find-dependency.patch
-- Using source at D:/a/_work/1/s/build/_deps/vcpkg-src/buildtrees/opentelemetry-cpp/src/v1.16.0-caf34f28ce.clean
-- Downloading https://github.com/open-telemetry/opentelemetry-proto/archive/v1.1.0.tar.gz -> opentelemetry-proto-1.1.0.tar.gz...
-- Extracting source D:/a/_work/1/s/build/_deps/vcpkg-src/downloads/opentelemetry-proto-1.1.0.tar.gz
-- Using source at D:/a/_work/1/s/build/_deps/vcpkg-src/buildtrees/opentelemetry-cpp/src/ry-proto-1-2ea71311cf.clean
-- Found external ninja('1.10.2').
-- Configuring x64-windows-static
CMake Warning at D:/a/_work/1/s/build/vcpkg_installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:344 (message):
  The following variables are not used in CMakeLists.txt:

      gRPC_CPP_PLUGIN_EXECUTABLE

  Please recheck them and remove the unnecessary options from the
  `vcpkg_cmake_configure` call.

  If these options should still be passed for whatever reason, please use the
  `MAYBE_UNUSED_VARIABLES` argument.
Call Stack (most recent call first):
  buildtrees/versioning_/versions/opentelemetry-cpp/463e6bcd28686e4433ddd353b8f0cfd82e7c577b/portfile.cmake:79 (vcpkg_cmake_configure)
  scripts/ports.cmake:192 (include)


-- Building x64-windows-static-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: "C:/Program Files/CMake/bin/cmake.exe" --build . --config Debug --target install -- -v -j5
    Working Directory: D:/a/_work/1/s/build/_deps/vcpkg-src/buildtrees/opentelemetry-cpp/x64-windows-static-dbg
    See logs for more information:
      D:\a\_work\1\s\build\_deps\vcpkg-src\buildtrees\opentelemetry-cpp\install-x64-windows-static-dbg-out.log

Call Stack (most recent call first):
  D:/a/_work/1/s/build/vcpkg_installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  D:/a/_work/1/s/build/vcpkg_installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  buildtrees/versioning_/versions/opentelemetry-cpp/463e6bcd28686e4433ddd353b8f0cfd82e7c577b/portfile.cmake:95 (vcpkg_cmake_install)
  scripts/ports.cmake:192 (include)


error: building opentelemetry-cpp:x64-windows-static failed with: BUILD_FAILED
Elapsed time to handle opentelemetry-cpp:x64-windows-static: 6.4 s
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+opentelemetry-cpp
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?title=[opentelemetry-cpp]+Build+error+on+x64-windows-static&body=Copy+issue+body+from+D%3A%2Fa%2F_work%2F1%2Fs%2Fbuild%2Fvcpkg_installed%2Fvcpkg%2Fissue_body.md
You can also submit an issue by running (GitHub CLI must be installed):
  gh issue create -R microsoft/vcpkg --title "[opentelemetry-cpp] Build failure on x64-windows-static" --body-file D:/a/_work/1/s/build/vcpkg_installed/vcpkg/issue_body.md
-- Running vcpkg install - failed
CMake Error at build/_deps/vcpkg-src/scripts/buildsystems/vcpkg.cmake:902 (message):
  vcpkg install failed.  See logs for more information:
  D:\a\_work\1\s\build\vcpkg-manifest-install.log
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeDetermineSystem.cmake:146 (include)
  CMakeLists.txt:28 (project)

Errors in the buid logs:

windows:

Could not make proto path relative: D:/a/_work/1/s/build/_deps/vcpkg-src/buildtrees/opentelemetry-cpp/src/v1.16.0-caf34f28ce.clean/third_party/opentelemetry-proto/opentelemetry/proto/profiles/v1experimental/profiles.proto: No such file or directory

linux:

Could not make proto path relative: /mnt/vss/_work/1/s/build/_deps/vcpkg-src/buildtrees/opentelemetry-cpp/src/v1.16.0-caf34f28ce.clean/third_party/opentelemetry-proto/opentelemetry/proto/profiles/v1experimental/profiles.proto: No such file or directory

macos:

Could not make proto path relative: /Users/runner/work/1/s/build/_deps/vcpkg-src/buildtrees/opentelemetry-cpp/src/v1.16.0-caf34f28ce.clean/third_party/opentelemetry-proto/opentelemetry/proto/profiles/v1experimental/profiles.proto: No such file or directory
@BillyONeal
Copy link
Member

Can you supply:

  • Operating system configuration
  • Compiler
  • Repro steps, including the command line passed to vcpkg
  • Full failure logs rather than extracted snippets

?

I observe that this package was just updated last week ( #39632 ) so there may be some incompatibility with that new version and your test environment

@Pravila00
Copy link
Contributor

Hey! I've already captured this issue at #39821 with #39823 PR :)

@antkmsft
Copy link
Member Author

Ah! you've beat me to it! :)

@antkmsft
Copy link
Member Author

Closing as duplicate of #39821.

@MonicaLiu0311 MonicaLiu0311 added the category:port-bug The issue is with a library, which is something the port should already support label Jul 11, 2024
@MonicaLiu0311 MonicaLiu0311 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants