ONLYOFFICE/build_tools

fatal: Couldn't find remote ref remotes/branch-heads/8.9

Aima09 opened this issue · 8 comments

Describe your problem:

Syncing projects: 100% ( 1/ 1) v8
v8 (ERROR)
----------------------------------------
[0:00:00] Started.
[0:00:00] 
fatal: Couldn't find remote ref remotes/branch-heads/8.9
[0:01:47] fatal: Couldn't find remote ref remotes/branch-heads/8.9
[0:01:51] _____ Conflicting directory found in /root/compile/onlyoffice/core/Common/3dParty/v8_89/v8. Moving to /root/compile/onlyoffice/core/Common/3dParty/v8_89/_bad_scm/v8l32am_gu.
[0:01:51] 
[0:03:26] From https://chromium.googlesource.com/v8/v8
[0:03:26]    e46fda4..2f5780c  lkgr       -> origin/lkgr
[0:03:29] fatal: Couldn't find remote ref remotes/branch-heads/8.9
[0:03:34] fatal: Couldn't find remote ref remotes/branch-heads/8.9
----------------------------------------
Error: Command 'git -c core.deltaBaseCacheLimit=2g fetch origin remotes/branch-heads/8.9 --no-tags' returned non-zero exit status 128 in /root/compile/onlyoffice/core/Common/3dParty/v8_89/v8


Warnings:
Conflicting directory /root/compile/onlyoffice/core/Common/3dParty/v8_89/v8 moved to /root/compile/onlyoffice/core/Common/3dParty/v8_89/_bad_scm/v8l32am_gu.

Running depot tools as root is sad.
fatal: Not a git repository: ../.git/modules/core
Directory not copied
copy warning [file not exist]: v8/third_party/jinja2/tests.py
[replaceInFile] file not exist: v8/third_party/jinja2/tests.py
gn gen out.gn/linux_64 --args="v8_static_library=true is_component_build=false v8_monolithic=true v8_use_external_startup_data=false use_custom_libcxx=false treat_warnings_as_errors=false target_cpu=\"x64\" v8_target_cpu=\"x64\" is_debug=false is_clang=true use_sysroot=false"
gn.py: Could not find checkout in any parent of the current path.
This must be run inside a checkout.
Error (gn): 1
Error (./make.py): 1

Steps to reproduce the problem:
./automate.py server

build_tools base repo version:
origin/release/v8.1.0

Operating system:
Linux version 4.4.0-186-generic (buildd@lcy01-amd64-002) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) ) #216-Ubuntu SMP Wed Jul 1 05:34:05 UTC 2020

Compiler version:
the master of the latest version

Hello @Aima09, i ckecked just now in docker ubuntu 16.04 with this guide from branch release/v8.1.0 and didn't get any errors. I see in your case some files failed to download, try use VPN or VPS with more open internet. We recomend using a stand with at least 4 cpu, 8-16 RAM, 8 swap, 100 GB ssd. I see you run with additional parameters - try to run it with default python3 ./automate.py. Check out the tips in this post.

Hi @igwyd ,I gave up the local build as what you said,but as you can see blow log ,I got new case even I have executed with docker build.
obviously,I was build with root user.and "make.py" script totally has the full permission .
and same not work for me after "chmod +x make.py" or "chmod 755 make.py" addtional
I encountered this situation in both local build and docker build.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at be6df45... [|attr] crash &&  memory leak
Cloning into 'hunspell'...
Note: checking out '8a2fdfe5a6bb1cbafc04b0c8486abcefd17ad903'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 8a2fdfe... replace archaic &std::vector::operator[0] with c++11 std::vector::data
/bin/sh: 1: ./make.py: Permission denied
[fetch & build]: boost
[fetch & build]: cef
[fetch & build]: icu
[fetch & build]: openssl
gn gen out.gn/linux_64 --args="v8_static_library=true is_component_build=false v8_monolithic=true v8_use_external_startup_data=false use_custom_libcxx=false treat_warnings_as_errors=false target_cpu=\"x64\" v8_target_cpu=\"x64\" is_debug=false is_clang=true use_sysroot=false"
[fetch & build]: hunspell
[fetch & build]: harfbuzz
Error (./make.py): 126
install dependencies...
---------------------------------------------
build branch: release-v8.1.0
---------------------------------------------
---------------------------------------------
build modules: server
---------------------------------------------
Error (./make.py): 1
root@2148240c5bd1:/work/build_tools/tools/linux# ls

then,what was I do before waiting for your reply.
I just delete the v8 directory where under follow path .Guess is it this folder build corrupted cause by this problem

root@emt:~/app/onlyoffice/core/Common/3dParty/v8_89# ls
depot_tools  v8

the result was I got the first issue back again

1>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" "origin" "remotes/branch-heads/8.9" "--no-tags"' in /work/core/Common/3dParty/v8_89/v8 failed; will retry after a short nap...
[0:03:56] Still working on:
[0:03:56]   v8

v8 (ERROR)
----------------------------------------
[0:00:00] Started.
[0:00:00] 
fatal: Couldn't find remote ref remotes/branch-heads/8.9
[0:01:43] fatal: Couldn't find remote ref remotes/branch-heads/8.9
[0:01:47] _____ Conflicting directory found in /work/core/Common/3dParty/v8_89/v8. Moving to /work/core/Common/3dParty/v8_89/_bad_scm/v8eh2xweb1.
[0:01:47] 
[0:03:40] From https://chromium.googlesource.com/v8/v8
[0:03:40]    5398fa2..daa0201  main       -> origin/main
[0:03:40]  + c9fcc79...7e39d91 roll       -> origin/roll  (forced update)
[0:03:45] fatal: Couldn't find remote ref remotes/branch-heads/8.9
[0:03:52] fatal: Couldn't find remote ref remotes/branch-heads/8.9
----------------------------------------
Error: Command 'git -c core.deltaBaseCacheLimit=2g fetch origin remotes/branch-heads/8.9 --no-tags' returned non-zero exit status 128 in /work/core/Common/3dParty/v8_89/v8


Warnings:
Conflicting directory /work/core/Common/3dParty/v8_89/v8 moved to /work/core/Common/3dParty/v8_89/_bad_scm/v8eh2xweb1.
error: unknown option `type'
usage: git config [<options>]

Config file location
    --global              use global config file
    --system              use system config file
    --local               use repository config file
    -f, --file <file>     use given config file
    --blob <blob-id>      read config from given blob object

Action
    --get                 get value: name [value-regex]
    --get-all             get all values: key [value-regex]
    --get-regexp          get values for regexp: name-regex [value-regex]
    --get-urlmatch        get value specific for the URL: section[.var] URL
    --replace-all         replace all matching variables: name value [value_regex]
    --add                 add a new variable: name value
    --unset               remove a variable: name [value-regex]
    --unset-all           remove all matches: name [value-regex]
    --rename-section      rename section: old-name new-name
    --remove-section      remove a section: name
    -l, --list            list all
    -e, --edit            open an editor
    --get-color           find the color configured: slot [default]
    --get-colorbool       find the color setting: slot [stdout-is-tty]

Type
    --bool                value is "true" or "false"
    --int                 value is decimal number
    --bool-or-int         value is --bool or --int
    --path                value is a path (file or directory name)

Other
    -z, --null            terminate values with NUL byte
    --name-only           show variable names only
    --includes            respect include directives on lookup

gn.py: Could not find checkout in any parent of the current path.
This must be run inside a checkout.
[fetch & build]: boost
[fetch & build]: cef
[fetch & build]: icu
[fetch & build]: openssl
Directory not copied
Directory not copied
copy warning [file not exist]: v8/third_party/jinja2/tests.py
[replaceInFile] file not exist: v8/third_party/jinja2/tests.py
gn gen out.gn/linux_64 --args="v8_static_library=true is_component_build=false v8_monolithic=true v8_use_external_startup_data=false use_custom_libcxx=false treat_warnings_as_errors=false target_cpu=\"x64\" v8_target_cpu=\"x64\" is_debug=false is_clang=true use_sysroot=false"
Error (gn): 1
Error (./make.py): 1
install dependencies...
---------------------------------------------
build branch: release-v8.1.0
---------------------------------------------
---------------------------------------------
build modules: server
---------------------------------------------

@Aima09 I can't repeat your issues, we have a release soon, please try once again after it on clean server.

@igwyd Okay, thanks.For the first issue, I guess it might be due to unstable network or my own wrong operation. However, regarding the second situation about the permission problem with the 'make.py' script, do you have any clues on your end? If not, I'll really have to wait for your new release version.

About make.py, i guess it was bug in the build_tools because release/8.1.0 is a testing branch, today i checked it and didn't get any errors.

@igwyd Okay, thanks again. I'll try again later with the new release version

This issue was closed due no response.