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

Setting up a local build question #46

Open
pmcdonough8133 opened this issue Jun 27, 2023 · 3 comments
Open

Setting up a local build question #46

pmcdonough8133 opened this issue Jun 27, 2023 · 3 comments

Comments

@pmcdonough8133
Copy link

Trying to setup a local build to test some modifications and I am having some issues getting eng\Build-Dependencies.ps1 to run successfully. The Error:
git.exe : fatal: remote error: upload-pack: not our ref b4c94da052e881f8cb5044d8e5b88f5ff1f0519f
Line 157
&$git -C $VcpkgDir fetch $VcpkgRepository $VcpkgRevision 2>&1 ...

git.exe : fatal: reference is not a tree: b4c94da052e881f8cb5044d8e5b88f5ff1f0519f
Line 158
&$git -C $VcpkgDir checkout $VcpkgRevision 2>&1 | Out-Host

Failed to check out revision 'b4c94da052e881f8cb5044d8e5b88f5ff1f0519f'

I can provide the full error if needed but that seems like the essentials

I'm not too familiar with building dependencies this way but from googling, seems like it can't find the Vcpkg Revision assigned in line 59. Given my ignorance to how this works, was wondering if you had a suggestion for how to troubleshoot. Seems like it just needs a new Vcpkg Revision id but I wouldn't know where to begin selecting one.

@gix
Copy link
Owner

gix commented Jun 27, 2023

I forgot to push that revision, it should work now.

I'm not too familiar with building dependencies this way

vcpkg is a package manager that contains build scripts for thousands of libraries. They smooth of different build systems used by the libraries, bugs, incompatibilities. Those scripts are managed via git as well. Usually Build-Dependencies.ps1 would reference that repo directly, but since I made a quick fix not available yet I put it into a forked repo. I just forgot to actually push it to GitHub.

@pmcdonough8133
Copy link
Author

Thanks for getting back so fast!

That seemed to fix my first issue but now there's a new error that I'm not sure how to interpret:

Lines 157 and 158 are both mentioning RemoteException and NativeCommandError with 158 specifically saying git.exe : HEAD is now at b4c94da05 [outcome] Fix MSVC compiler error in C++20 mode

but the script continues until a seemingly more fatal error occurs:

A positional parameter cannot be found that accepts argument 'x86-windows-static-md-noiso.cmake'. At line:1 char:1
+ CategoryInfo : InvalidArgument: (:) [Build-Dependencies.ps1], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Build-Dependencies.ps1

Any ideas?

@gix
Copy link
Owner

gix commented Jun 28, 2023

Looks like you are using PowerShell 5, while the script requires 7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants