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

[clearwater-free-diameter] Build error on x64-linux #43449

Open
manjunatha-shivaswamy opened this issue Jan 24, 2025 · 5 comments
Open

[clearwater-free-diameter] Build error on x64-linux #43449

manjunatha-shivaswamy opened this issue Jan 24, 2025 · 5 comments
Assignees
Labels
category:question This issue is a question

Comments

@manjunatha-shivaswamy
Copy link

HI,
Error while building ../cpp-common/vcpkg. Error is ' could not find cmake cmd' as shown below. Any known workaround/fix?

2025-01-23T12:00:26.3891764Z Building clearwater-free-diameter:x64-linux...
2025-01-23T12:00:26.3892063Z -- [OVERLAY] Loading triplet configuration from: /__w/1/s/modules/cpp-common/.vcpkg/overlay-triplets/x64-linux.cmake
2025-01-23T12:00:26.3892399Z -- Installing port from location: /__w/1/s/modules/cpp-common/./.vcpkg/overlay-ports/clearwater-free-diameter
2025-01-23T12:00:26.4049410Z -- Fetching https://[email protected]/msazuredev/AzureForOperators/_git/clearwater-freeDiameter 774cacdf03ae757a7fd58c60f1273f71486a5c88...
2025-01-23T12:00:28.1925919Z -- Extracting source /__w/1/s/modules/cpp-common/modules/vcpkg/downloads/clearwater-free-diameter-774cacdf03ae757a7fd58c60f1273f71486a5c88.tar.gz
2025-01-23T12:00:28.2280020Z -- Applying patch disable-sctp-idn.patch
2025-01-23T12:00:28.2306409Z -- Using source at /__w/1/s/modules/cpp-common/modules/vcpkg/buildtrees/clearwater-free-diameter/src/71486a5c88-7fd8ca08e0.clean
2025-01-23T12:00:28.2325602Z make[2]: Entering directory '/__w/1/s/modules/cpp-common/modules/vcpkg/buildtrees/clearwater-free-diameter/src/71486a5c88-7fd8ca08e0.clean'
2025-01-23T12:00:28.2338890Z mkdir -p /__w/1/s/modules/cpp-common/modules/vcpkg/buildtrees/clearwater-free-diameter/src/71486a5c88-7fd8ca08e0.clean/build
2025-01-23T12:00:28.2356015Z cd /__w/1/s/modules/cpp-common/modules/vcpkg/buildtrees/clearwater-free-diameter/src/71486a5c88-7fd8ca08e0.clean/build && cmake /__w/1/s/modules/cpp-common/modules/vcpkg/buildtrees/clearwater-free-diameter/src/71486a5c88-7fd8ca08e0.clean -DBUILD_DICT_DCCA_STARENT=OFF -DBUILD_DICT_EAP=OFF -DBUILD_DICT_MIP6A=OFF -DBUILD_DICT_MIP6I=OFF -DBUILD_DICT_NAS_MIPV6=OFF -DBUILD_DICT_RFC5777=OFF -DBUILD_DICT_SIP=ON -DBUILD_RT_CHANGE_DH=ON -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/__w/1/s/modules/cpp-common/modules/vcpkg/buildtrees/clearwater-free-diameter/src/71486a5c88-7fd8ca08e0.clean/dist -DDEFAULT_CONF_PATH=/var/lib/homestead -DDEFAULT_EXTENSIONS_PATH=/usr/share/clearwater/lib/freeDiameter -DFD_PROJECT_NAME=Clearwater -DFD_PROJECT_VENDOR_ID=19444 -DDIAMID_IDNA_REJECT=ON -DDISABLE_SCTP=ON
2025-01-23T12:00:28.2380394Z /bin/sh: line 1: cmake: command not found
2025-01-23T12:00:28.2383633Z make[2]: *** [Makefile:37: /__w/1/s/modules/cpp-common/modules/vcpkg/buildtrees/clearwater-free-diameter/src/71486a5c88-7fd8ca08e0.clean/build/build/Makefile] Error 127
2025-01-23T12:00:28.2384404Z make[2]: Leaving directory '/__w/1/s/modules/cpp-common/modules/vcpkg/buildtrees/clearwater-free-diameter/src/71486a5c88-7fd8ca08e0.clean'
2025-01-23T12:00:28.2386232Z CMake Error at /__w/1/s/modules/cpp-common/.vcpkg/overlay-ports/clearwater-free-diameter/portfile.cmake:12 (execute_process):
2025-01-23T12:00:28.2386544Z execute_process failed command indexes:
2025-01-23T12:00:28.2386639Z
2025-01-23T12:00:28.2386826Z 1: "Child return code: 2"
2025-01-23T12:00:28.2386913Z
2025-01-23T12:00:28.2387105Z Call Stack (most recent call first):
2025-01-23T12:00:28.2387380Z scripts/ports.cmake:170 (include)
2025-01-23T12:00:28.2387530Z
2025-01-23T12:00:28.2387613Z
2025-01-23T12:00:28.2407315Z error: building clearwater-free-diameter:x64-linux failed with: BUILD_FAILED
2025-01-23T12:00:28.2407645Z Elapsed time to handle clearwater-free-diameter:x64-linux: 1.9 s
2025-01-23T12:00:28.2475284Z Please ensure you're using the latest port files with git pull and vcpkg update.
2025-01-23T12:00:28.2475803Z Then check for known issues at:
2025-01-23T12:00:28.2476067Z https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+clearwater-free-diameter
2025-01-23T12:00:28.2476355Z You can submit a new issue at:
2025-01-23T12:00:28.2476680Z https://github.com/microsoft/vcpkg/issues/new?title=[clearwater-free-diameter]+Build+error+on+x64-linux&body=Copy+issue+body+from+%2F__w%2F1%2Fs%2Fmodules%2Fcpp-common%2Fvcpkg_installed%2Fvcpkg%2Fissue_body.md
2025-01-23T12:00:28.2476890Z
2025-01-23T12:00:28.2487750Z make[1]: *** [Makefile:58: vcpkg_install_packages] Error 1
2025-01-23T12:00:28.2489739Z make[1]: Leaving directory '/__w/1/s/modules/cpp-common'
2025-01-23T12:00:28.2491106Z make: *** [Makefile:27: prebuild] Error 2
2025-01-23T12:00:28.2958826Z
2025-01-23T12:00:28.2981037Z ##[error]Bash exited with code '2'.
2025-01-23T12:00:28.3063074Z ##[section]Finishing: Run make command (linux_build_container)

Thanks
Manju

Copy link

Please see #30604 for how to properly report a build failure.

@WangWeiLin-MV
Copy link
Contributor

WangWeiLin-MV commented Jan 24, 2025

The error message /bin/sh: line 1: cmake: command not found show that it might not found the command cmake, usually VCPKG will automatically download the appropriate CMake as the running time.

Please update vcpkg repository like git pull, and update vcpkg tool like running the script./bootstrap-vcpkg to try the latest vcpkg.

@WangWeiLin-MV WangWeiLin-MV added the category:question This issue is a question label Jan 24, 2025
@manjunatha-shivaswamy
Copy link
Author

  1. bootstrap-vcpkg run successfully.
_2025-01-23T12:00:12.7040720Z modules/vcpkg/bootstrap-vcpkg.sh
2025-01-23T12:00:12.7172175Z Downloading vcpkg-glibc...
2025-01-23T12:00:12.9217861Z vcpkg package management program version 2023-11-16-4c1df40a3c5c5e18de299a99e9accb03c2a82e1e_
  1. cmake downloaded successfully. But later it says 'cmake' not found.
    2025-01-23T12:00:12.9272006Z warning: Embedding vcpkg-configuration in a manifest file is an EXPERIMENTAL feature.
    2025-01-23T12:00:12.9284042Z A suitable version of cmake was not found (required v3.27.1) Downloading portable cmake 3.27.1...
    2025-01-23T12:00:12.9284450Z Downloading cmake...
    2025-01-23T12:00:12.9284794Z https://github.com/Kitware/CMake/releases/download/v3.27.1/cmake-3.27.1-linux-x86_64.tar.gz->/__w/1/s/modules/cpp-common/modules/vcpkg/downloads/cmake-3.27.1-linux-x86_64.tar.gz
    2025-01-23T12:00:24.5804897Z Extracting cmake...
    2025-01-23T12:00:25.8318026Z Detecting compiler hash for triplet x64-linux...
    2025-01-23T12:00:26.3885366Z The following packages will be built and installed:
    2025-01-23T12:00:26.3885689Z * civetweb:x64-linux -> 1.16#1
    2025-01-23T12:00:26.3886317Z clearwater-free-diameter:x64-linux -> unset -- /__w/1/s/modules/cpp-common/./.vcpkg/overlay-ports/clearwater-free-diameter
    2025-01-23T12:00:26.3886689Z clearwater-hyper-cpp:x64-linux -> unset -- /__w/1/s/modules/cpp-common/./.vcpkg/overlay-ports/clearwater-hyper-cpp
    2025-01-23T12:00:26.3886978Z cpp-base64:x64-linux -> V2.rc.08
    2025-01-23T12:00:26.3887269Z curl[core,http2,openssl,ssl]:x64-linux -> 8.4.0
    2025-01-23T12:00:26.3887656Z * expat:x64-linux -> 2.5.0#3
    2025-01-23T12:00:26.3887865Z gtest:x64-linux -> 1.14.0
    2025-01-23T12:00:26.3888081Z * nghttp2:x64-linux -> 1.58.0
    2025-01-23T12:00:26.3888303Z nlohmann-json:x64-linux -> 3.11.3
    2025-01-23T12:00:26.3888571Z * openssl:x64-linux -> unset -- /__w/1/s/modules/cpp-common/./.vcpkg/overlay-ports/openssl
    2025-01-23T12:00:26.3888873Z * pcre2[core,jit,platform-default-features]:x64-linux -> 10.42#1
    2025-01-23T12:00:26.3889123Z poco:x64-linux -> 1.12.5.1
    2025-01-23T12:00:26.3889357Z prometheus-cpp[core,pull]:x64-linux -> 1.1.0
    2025-01-23T12:00:26.3889854Z sasclient-wrapper-c:x64-linux -> unset -- /__w/1/s/modules/cpp-common/./.vcpkg/overlay-ports/sasclient-wrapper-c
    2025-01-23T12:00:26.3890149Z * vcpkg-cmake:x64-linux -> 2023-05-04
    2025-01-23T12:00:26.3890390Z * vcpkg-cmake-config:x64-linux -> 2022-02-06#1
    2025-01-23T12:00:26.3890616Z * zlib:x64-linux -> 1.3

@WangWeiLin-MV
Copy link
Contributor

As a workaround, manually add CMake to the PATH environment variable.

Since the mechanism of CMake runtime may have changed in the past two years, please update the local vcpkg git repository before bootstrap-vcpkg, the current tool version is vcpkg package management program version 2025-01-01-....,

@WangWeiLin-MV
Copy link
Contributor

I've tried vcpkg-2023.11.20/vcpkg-tool/2023-11-16, and clean the downloads/tools path, it successfully downloaded CMake binary and build an example port. Could you please check the build environment or any unusual configuration?

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

2 participants