Failuire on checkout while following steps to build from source

55 views
Skip to first unread message

Ion Filipski

unread,
Oct 15, 2024, 7:57:32 AM10/15/24
to v8-dev
HI,
I am trying to build v8 on external SSD, Win 11 x64, VisualStudio 2022 Community Edition.
For some reason the checkout as described on v8 fetch fails
I already asked the question on stackoverflow, and so far have no feedback:
https://stackoverflow.com/questions/79083115/conflicting-directory-found-in-v8-v8-while-trying-to-checkout-v8-from-sources-e

While doing fetch v8 I get following error:
Error: Command '%ProgramFiles%\\Git\\mingw64\\bin\\git.exe -c color.ui=never config --local --replace-all remote.origin.fetch +refs/branch-heads/*:refs/remotes/branch-heads/* ^\\+refs/branch-heads/\\*:.*$' returned non-zero exit status 128 in D:\compile\google\v8 fatal: --local can only be used inside a git repository

Here D: is the external SSD

There is the environment:
>set ... Path=%ProgramFiles%\Git\usr\bin;%ProgramFiles%\Git\mingw64\bin;%ProgramFiles%\Git\cmd;D:\compile\google\depot_tools;...... vs2022_install=%ProgramFiles%\Microsoft Visual Studio\2022\Community ... 8>git config --list --global user.name=MyAndMyself user.email=MeAnd...@gmail.com safe.directory=D:/compile/google/depot_tools safe.directory=D:/compile/google/chromium/src safe.directory=D:/compile/google/v8 safe.directory=D:/compile/google/v8/v8 core.longpaths=true core.autocrlf=false core.filemode=false branch.autosetuprebase=always

The full output
:\compile\google\v8>fetch v8 Updating depot_tools... Running: '%USERPROFILE%\AppData\Local\.vpython-root\store\python_venv-i6tr2130veudc7mkhurk6h3cao\contents\Scripts\python3.exe' 'D:\compile\google\depot_tools\gclient.py' root Running: '%USERPROFILE%\AppData\Local\.vpython-root\store\python_venv-i6tr2130veudc7mkhurk6h3cao\contents\Scripts\python3.exe' 'D:\compile\google\depot_tools\gclient.py' config --spec 'solutions = [ { "name": "v8", "url": "https://chromium.googlesource.com/v8/v8.git", "deps_file": "DEPS", "managed": False, "custom_deps": {}, }, ] ' Running: '%USERPROFILE%\AppData\Local\.vpython-root\store\python_venv-i6tr2130veudc7mkhurk6h3cao\contents\Scripts\python3.exe' 'D:\compile\google\depot_tools\gclient.py' sync --with_branch_heads ________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/v8/v8.git D:\compile\google\v8\_gclient_v8_kyoywjwd' in 'D:\compile\google\v8' Cloning into 'D:\compile\google\v8\_gclient_v8_kyoywjwd'... remote: Total 1136232 (delta 918600), reused 1136232 (delta 918600) Receiving objects: 100% (1136232/1136232), 1.43 GiB | 19.36 MiB/s, done. Resolving deltas: 100% (918600/918600), done. ________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/v8/v8.git D:\compile\google\v8\_gclient_v8__cglk3b5' in 'D:\compile\google\v8' Cloning into 'D:\compile\google\v8\_gclient_v8__cglk3b5'... remote: Total 1136232 (delta 918600), reused 1136232 (delta 918600) Receiving objects: 100% (1136232/1136232), 1.43 GiB | 19.61 MiB/s, done. Resolving deltas: 100% (918600/918600), done. Syncing projects: 100% ( 1/ 1) v8 v8 (ERROR) ---------------------------------------- [0:00:00] Started. [0:00:01] [0:03:50] _____ Conflicting directory found in D:\compile\google\v8\v8. Moving to D:\compile\google\v8\_bad_scm\v8clftymnp. [0:03:50] ---------------------------------------- Error: Command '%ProgramFiles%\\Git\\mingw64\\bin\\git.exe -c color.ui=never config --local --replace-all remote.origin.fetch +refs/branch-heads/*:refs/remotes/branch-heads/* ^\\+refs/branch-heads/\\*:.*$' returned non-zero exit status 128 in D:\compile\google\v8 fatal: --local can only be used inside a git repository Warnings: Conflicting directory D:\compile\google\v8\v8 moved to D:\compile\google\v8\_bad_scm\v8clftymnp. Subprocess failed with return code 1. D:\compile\google\v8>

Ion Filipski

unread,
Oct 17, 2024, 10:23:09 AM10/17/24
to v8-dev
Finally, problem solved, solution came unexpectedly, by guessing. 
It took a lot of time to read the sources, change, experimenting to understand the problem, but I didn't. Such a thing is unexpected when following v8 documentation.
So, the depot_tools should be deployed on internal (SSD) drive, there gclient works ok. This solved the problem with v8 compilation.
Then fetch v8, and further compiling I did on external SSD drive. It took two hours to build both, x64.release and x64.debug configurations.
Here is the Environment: Win11 x64, VisualStudio 2022, SanDisk Extreme PRO Portable SSD 1TB.

Ion Filipski

unread,
Oct 17, 2024, 10:26:56 AM10/17/24
to v8-dev
And yes, this is a bug of depot_tools which should be fixed. 

On Tuesday 15 October 2024 at 14:57:32 UTC+3 Ion Filipski wrote:
Reply all
Reply to author
Forward
0 new messages