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

[GRPC] [C-ARES] build failure on self hosted runners #38050

Closed
diehard2 opened this issue Apr 8, 2024 · 2 comments
Closed

[GRPC] [C-ARES] build failure on self hosted runners #38050

diehard2 opened this issue Apr 8, 2024 · 2 comments
Assignees
Labels
category:question This issue is a question

Comments

@diehard2
Copy link

diehard2 commented Apr 8, 2024

Operating system

Ubuntu 22.04

Compiler

gcc 11.4

Steps to reproduce the behavior

`vcpkg/vcpkg install grpc`

Failure logs

config-x64-linux-dbg-CMakeCache.txt.log
[config-x64-linux-rel-CMakeCache.txt.log](https://github.com/microsoft/vcpkg/files/14910809/
config-x64-linux-out.log
config-x64-linux-rel-CMakeCache.txt.log)

Additional context

The command is working on github's default runners, however it isn't working on my company's self-hosted runners. I'm unable to see any obvious difference between the two. The action is very simple.

name: CI

on:
  workflow_dispatch:


jobs:
  compile:
    name: VCPKG DEBUG
    runs-on: ubuntu-latest
    steps:
    - name: Install package
      run: |
        sudo apt-get update
        sudo apt-get install perl autoconf-archive ninja-build cmake pkg-config
    - name: Install vcpkg
      run: |
        git clone https://github.com/microsoft/vcpkg.git
        vcpkg/bootstrap-vcpkg.sh
        env
    - name: Install grpc
      run: |
          set +e
          vcpkg/vcpkg install grpc
          echo "***** debug *****"
          cat /home/runner/work/vcpkg_ci_debug/vcpkg_ci_debug/vcpkg/buildtrees/grpc/config-x64-linux-dbg-CMakeCache.txt.log
          echo "***** release *****"
          cat /home/runner/work/vcpkg_ci_debug/vcpkg_ci_debug/vcpkg/buildtrees/grpc/config-x64-linux-rel-CMakeCache.txt.log
          echo "***** general *****"
          cat /home/runner/work/vcpkg_ci_debug/vcpkg_ci_debug/vcpkg/buildtrees/grpc/config-x64-linux-out.log

It appears that ${PACKAGE_PREFIX_DIR} from

get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../" **ABSOLUTE)
set_and_check(c-ares_INCLUDE_DIR** "${PACKAGE_PREFIX_DIR}/include") 

is resolving to "/home/ubuntu/actions-runner/_work/vcpkg_debug/vcpkg_debug/vcpkg_installed/include" rather than
"/home/ubuntu/actions-runner/_work/vcpkg_debug/vcpkg_debug/vcpkg_installed/x64-linux/include. I tried just creating that directory, but then it failed to find re2 components. Thanks for any help.

@diehard2 diehard2 added the category:port-bug The issue is with a library, which is something the port should already support label Apr 8, 2024
@dg0yt
Copy link
Contributor

dg0yt commented Apr 9, 2024

Don't use CMake 3.29.1

#37968

@Cheney-W
Copy link
Contributor

Cheney-W commented Apr 9, 2024

Duplicate of #37968

@Cheney-W Cheney-W marked this as a duplicate of #37968 Apr 9, 2024
@Cheney-W Cheney-W closed this as not planned Won't fix, can't repro, duplicate, stale Apr 9, 2024
@Cheney-W Cheney-W added category:question This issue is a question and removed category:port-bug The issue is with a library, which is something the port should already support labels Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

3 participants