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

[protobuf-c] build failure #39526

Open
1 task
shubhamble opened this issue Jun 26, 2024 · 2 comments
Open
1 task

[protobuf-c] build failure #39526

shubhamble opened this issue Jun 26, 2024 · 2 comments
Assignees
Labels
requires:repro The issue is not currently repro-able

Comments

@shubhamble
Copy link

shubhamble commented Jun 26, 2024

Operating system

Windows

Compiler

protoc

Steps to reproduce the behavior

.\vcpkg.exe install --clean-after-build --recurse protobuf-c:x64-windows protobuf-c[tools]:x64-windows

Failure logs

vcpkg package management program version 2024-06-10-02590c430e4ed9215d27870138c2e579cc338772

See LICENSE.txt for license information.
Telemetry

vcpkg collects usage data in order to help us improve your experience.
The data collected by Microsoft is anonymous.
You can opt-out of telemetry by re-running the bootstrap-vcpkg script with -disableMetrics,
passing --disable-metrics to vcpkg on the command line,
or by setting the VCPKG_DISABLE_METRICS environment variable.

Read more about vcpkg telemetry at docs/about/privacy.md
Installing packages...
Computing installation plan...
The following packages will be built and installed:

Call Stack (most recent call first):
installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
ports/protobuf-c/portfile.cmake:23 (vcpkg_cmake_install)
scripts/ports.cmake:191 (include)

error: building protobuf-c:x64-windows failed with: BUILD_FAILED
Elapsed time to handle protobuf-c:x64-windows: 8.7 s

Additional context

No response

Tasks

@shubhamble shubhamble added the category:port-bug The issue is with a library, which is something the port should already support label Jun 26, 2024
@shubhamble
Copy link
Author

I made a script and tried to run the vcpkg command:

Write-Host -ForegroundColor White " ** protobuf installation... " -NoNewline

Specify the desired folder to clone vcpkg

$cloneFolder = "$pwd/thirdparty/"

Create the folder if it doesn't exist

New-Item -ItemType Directory -Force -Path $cloneFolder | Out-Null

Change to the desired folder

Set-Location -Path $cloneFolder

Download and install vcpkg

Write-Host "Downloading vcpkg..."
git clone https://github.com/Microsoft/vcpkg.git

Change to vcpkg directory

Write-Host "Changing to vcpkg directory..."
Set-Location -Path vcpkg

Bootstrap vcpkg

Write-Host "Bootstrapping vcpkg..."
.\bootstrap-vcpkg.bat

Install desired packages (replace with your packages)

Write-Host "Installing packages..."
.\vcpkg.exe install --clean-after-build --recurse protobuf-c:x64-windows protobuf-c[tools]:x64-windows

Set protoc.exe path in PATH environment variable

$tempPaths = (($env:Path -split ';') | Select-Object -Unique) -join ';'
[Environment]::SetEnvironmentVariable("Path", $tempPaths + ";$($pwd)\thirdparty\vcpkg\installed\x64-windows\tools\protobuf" +
";$($pwd)\thirdparty\vcpkg\installed\x64-windows\tools\protobuf-c", "Machine")
$env:Path = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User")

Write-Host "Protobuf installation completed."

@jimwang118 jimwang118 changed the title [<port name>] build failure [protobuf-c] build failure Jun 26, 2024
@jimwang118 jimwang118 added requires:repro The issue is not currently repro-able and removed category:port-bug The issue is with a library, which is something the port should already support labels Jun 26, 2024
@jimwang118
Copy link
Contributor

Sorry, I can`t reproduce this issue locally.
Please provide the error log.
C:\Users\shubh_5ea5vvc\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\install-x64-windows-dbg-out.log
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires:repro The issue is not currently repro-able
Projects
None yet
Development

No branches or pull requests

2 participants