Git Product home page Git Product logo

Comments (20)

ry avatar ry commented on April 28, 2024 10

@yuqingc try sudo apt-get install libgtk-3-dev pkg-config ccache

@lvgithub Sounds like you need to do something like this: http://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/

from deno.

yuqingc avatar yuqingc commented on April 28, 2024 3

@ry Everything works after I installed those packages. Thanks a lot!
btw, @lvgithub why not add sudo apt-get install libgtk-3-dev pkg-config ccache to your PR in case people meet the same problems as I do.

@qti3e it is solved. Thanks for your time.

from deno.

qti3e avatar qti3e commented on April 28, 2024 2

@yuqingc btw if you're a Mac os user make sure you have package-config on your system:
brew install pkg-config

from deno.

qti3e avatar qti3e commented on April 28, 2024 1

@yuqingc Do you still experience following error?

Failed to fetch file gs://chromium-clang-format/5349d1954e17f6ccafb6e6663b0f13cdb2bb33c8 for v8/buildtools/linux64/clang-format. [Err: Traceback (most recent call last):

also can you please make sure you have somefiles in depot_tools?
try: ls $GOPATH/src/github.com/ry/v8worker2/depot_tools

if there is nothing in there please try:

cd $GOPATH/src/github.com/ry/v8worker2
git submodule update --init

from deno.

qti3e avatar qti3e commented on April 28, 2024 1

so I close this issue : )

from deno.

yuqingc avatar yuqingc commented on April 28, 2024

There is an error when I run go get -u github.com/ry/v8worker2. I ignored this error and went on. It showed up again when I make deno.

go build -o deno ./cmd
# pkg-config --cflags v8.pc
Failed to open 'v8.pc': No such file or directory
No package 'v8.pc' found
pkg-config: exit status 1
Makefile:39: recipe for target 'deno' failed
make: *** [deno] Error 2

What is this v8.pc dir for? How can I make it right?
@qti3e

Also, the package github.com/spf13/afero seems to be necessary during building process. Should I add it to README?

FYI, other errors I got:

  • ./build.py --use_ccache
Failed to fetch file gs://chromium-clang-format/5349d1954e17f6ccafb6e6663b0f13cdb2bb33c8 for v8/buildtools/linux64/clang-format. [Err: Traceback (most recent call last):
  • another one
Error: Command 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-clang-format -s v8/buildtools/linux64/clang-format.sha1' returned non-zero exit status 1 in .
Hook 'download_from_google_storage --no_resume '--platform=linux*' --no_auth --bucket chromium-clang-format -s v8/buildtools/linux64/clang-format.sha1' took 136.72 secs
Traceback (most recent call last):
  File "./build.py", line 149, in <module>
    main()
  File "./build.py", line 85, in main
    lib_fn = Rebuild()
  File "./build.py", line 97, in Rebuild
    EnsureDeps(v8_path)
  File "./build.py", line 146, in EnsureDeps
    env=env)
  File "/usr/lib/python2.7/subprocess.py", line 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gclient', 'sync', '--spec', "solutions = [{'managed': False, 'custom_vars': {'build_for_node': True}, 'url': 'https://chromium.googlesource.com/v8/v8.git', 'custom_deps': {'v8/third_party/catapult': None, 'v8/third_party/colorama/src': None, 'v8/testing/gmock': None, 'v8/tools/swarming_client': None, 'v8/third_party/instrumented_libraries': None, 'v8/tools/gyp': None, 'v8/third_party/android_tools': None, 'v8/test/wasm-js': None, 'v8/test/benchmarks/data': None, 'v8/test/mozilla/data': None, 'v8/tools/luci-go': None, 'v8/test/test262/data': None, 'v8/test/test262/harness': None}, 'deps_file': 'DEPS', 'name': 'v8'}]"]' returned non-zero exit status 2

from deno.

qti3e avatar qti3e commented on April 28, 2024

@lvgithub to build v8worker2 you need to pull git submodules:

cd $GOPATH/src/github.com/ry/v8worker2
git submodule update --init

and then you can use ./build.py

from deno.

qti3e avatar qti3e commented on April 28, 2024

@yuqingc v8.pc is a package-config file which v8worker2 is using to link V8 with Go.
when you execute ./build.py it will auto-generate this file and a dir called out
so your first issue is that you can't build V8Worker, and it would be solved if you build v8worker2


Failed to fetch file gs://chromium-clang-format/5349d1954e17f6ccafb6e6663b0f13cdb2bb33c8 for v8/buildtools/linux64/clang-format. [Err: Traceback (most recent call last):

This is a network connection error (caused by gclient), make sure you have a good internet connection, if you don't please let me know and I'll see if I can do anything for you : )

from deno.

yuqingc avatar yuqingc commented on April 28, 2024

@qti3e Thanks. I tried building again but the error of "no v8.pc" raises on go get -u github.com/ry/v8worker2.

$ go get -u github.com/ry/v8worker2
# pkg-config --cflags v8.pc
Failed to open 'v8.pc': No such file or directory
No package 'v8.pc' found
pkg-config: exit status 1

I assume I should get v8worder2 by git clone the original repository directly and then build it manually. I'll update my result in here.
Thanks again for your advice. 😄

update: I got the same problem as @lvgithub does if I clone v8worker2 directly from git repo, and git submodule update --recursive --remote does not make it right. btw, OS, ubuntu 18.04 x64

from deno.

yuqingc avatar yuqingc commented on April 28, 2024

@qti3e There are files in $GOPATH/src/github.com/ry/v8worker2/depot_tools
I am building v8worker2 right now. It takes time and I'll update the building status whether or not there is Failed to fetch file later.
btw. Since ./build.py auto-generates v8.pc, why does the cannot find v8.pc error was invoked at the go get stage, before the ./build.py process?

I got new errors on ./build.py --use_ccache 😭

Running gn
ERROR at //build/config/linux/pkg_config.gni:103:17: Script returned non-zero exit code.
    pkgresult = exec_script(pkg_config_script, args, "value")
                ^----------
Current dir: /home/matt/go/src/github.com/ry/v8worker2/out/v8build/
Command: python -- /home/matt/go/src/github.com/ry/v8worker2/v8/build/config/linux/pkg-config.py glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0
Returned 1.
stderr:

Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
Package gmodule-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gmodule-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gmodule-2.0' found
Package gobject-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gobject-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gobject-2.0' found
Package gthread-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gthread-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gthread-2.0' found
Could not run pkg-config.

See //build/config/linux/BUILD.gn:89:3: whence it was called.
  pkg_config("glib") {
  ^-------------------
See //build/config/compiler/BUILD.gn:216:18: which caused the file to be included.
    configs += [ "//build/config/linux:compiler" ]
                 ^------------------------------
Traceback (most recent call last):
  File "./build.py", line 149, in <module>
    main()
  File "./build.py", line 85, in main
    lib_fn = Rebuild()
  File "./build.py", line 114, in Rebuild
    env=env)
  File "/usr/lib/python2.7/subprocess.py", line 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/matt/go/src/github.com/ry/v8worker2/depot_tools/gn', 'gen', '/home/matt/go/src/github.com/ry/v8worker2/out/v8build', '--args=   is_component_build=false   is_debug=false   libcpp_is_static=false   symbol_level=1   treat_warnings_as_errors=false   use_custom_libcxx=false   use_sysroot=false   v8_deprecation_warnings=false   v8_embedder_string="-v8worker2"   v8_enable_gdbjit=false   v8_enable_i18n_support=false   v8_enable_test_features=false   v8_experimental_extra_library_files=[]   v8_extra_library_files=[]   v8_imminent_deprecation_warnings=false   v8_monolithic=true   v8_static_library=false   v8_target_cpu="x64"   v8_untrusted_code_mitigations=false   v8_use_external_startup_data=false   v8_use_snapshot=true ']' returned non-zero exit status 1

from deno.

FrankFang avatar FrankFang commented on April 28, 2024

1 if you got such error, just use vpn

Failed to fetch file gs://xxxxx

2 if you got find_sdk.py error, try install Xcode

from deno.

lvgithub avatar lvgithub commented on April 28, 2024

@ry Yes, it has been solved

from deno.

hefangshi avatar hefangshi commented on April 28, 2024

For CentOS

sudo yum group install "Development Tools"
sudo yum install ccache
sudo yum install libatomic

from deno.

0123cf avatar 0123cf commented on April 28, 2024

image
@ry
libgtk-3-dev pkg-config ccache It has been installed, but it still has this problem. Why?

from deno.

lvgithub avatar lvgithub commented on April 28, 2024

@0123cf you need run git submodule update --init in v8worker2 directory

from deno.

0123cf avatar 0123cf commented on April 28, 2024

run

git submodule update --init

result

out_path None                                                                                                                                                             
Rebuilding V8                                                                                                                                                             
Fetching dependencies.                                                                                                                                                    
WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" "origin"' in ./v8/third_party/jinja2 failed; will retry after a short nap...                        
 WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" "origin"' in ./v8/third_party/depot_tools failed; will retry after a short nap...                  
WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" "origin"' in ./v8/third_party/googletest/src failed; will retry after a short nap...                
WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" "origin"' in ./v8/third_party/jinja2 failed; will retry after a short nap...                        
 WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" "origin"' in ./v8/third_party/depot_tools failed; will retry after a short nap...                  
Syncing projects:  80% (16/20) v8/third_party/depot_tools                                                                                                                 
                                                                                                                                                                          
v8/third_party/icu (ERROR)                                                                                                                                                
----------------------------------------                                                                                                                                  
[0:00:02] Started.                                                                                                                                                        
----------------------------------------                                                                                                                                  
Error: Command 'git rev-list -n 1 HEAD' returned non-zero exit status 128 in ./v8/third_party/icu                                                                         
fatal: mmap failed: Cannot allocate memory                                                                                                                                
                                                                                                                                                                          
Traceback (most recent call last):                                                                                                                                        
  File "./build.py", line 149, in <module>                                                                                                                                
    main()                                                                                                                                                                
  File "./build.py", line 85, in main                                                                                                                                     
    lib_fn = Rebuild()                                                                                                                                                    
  File "./build.py", line 97, in Rebuild                                                                                                                                  
    EnsureDeps(v8_path)                                                                                                                                                   
  File "./build.py", line 146, in EnsureDeps                                                                                                                              
    env=env)                                                                                                                                                              
  File "/usr/lib/python2.7/subprocess.py", line 541, in check_call                                                                                                        
    raise CalledProcessError(retcode, cmd)                                                                                                                                
subprocess.CalledProcessError: Command '['gclient', 'sync', '--spec', "solutions = [{'managed': False, 'custom_vars': {'build_for_node': True}, 'url': 'https://chromium.g
ooglesource.com/v8/v8.git', 'custom_deps': {'v8/third_party/catapult': None, 'v8/third_party/colorama/src': None, 'v8/testing/gmock': None, 'v8/tools/swarming_client': No
ne, 'v8/third_party/instrumented_libraries': None, 'v8/tools/gyp': None, 'v8/third_party/android_tools': None, 'v8/test/wasm-js': None, 'v8/test/benchmarks/data': None, '
v8/test/mozilla/data': None, 'v8/tools/luci-go': None, 'v8/test/test262/data': None, 'v8/test/test262/harness': None}, 'deps_file': 'DEPS', 'name': 'v8'}]"]' returned non
-zero exit status 1                                                                                                                                                       

@lvgithub

from deno.

ldwonday avatar ldwonday commented on April 28, 2024

@0123cf I meet the same problem!

Error: Command 'git -c core.deltaBaseCacheLimit=2g fetch origin' returned non-zero exit status 128 in ./v8/base/trace_event/common
Traceback (most recent call last):
  File "./build.py", line 149, in <module>
    main()
  File "./build.py", line 85, in main
    lib_fn = Rebuild()
  File "./build.py", line 97, in Rebuild
    EnsureDeps(v8_path)
  File "./build.py", line 146, in EnsureDeps
    env=env)
  File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gclient', 'sync', '--spec', "solutions = [{'managed': False, 'custom_vars': {'build_for_node': True}, 'url': 'https://chromium.googlesource.com/v8/v8.git', 'custom_deps': {'v8/third_party/catapult': None, 'v8/third_party/colorama/src': None, 'v8/testing/gmock': None, 'v8/tools/swarming_client': None, 'v8/third_party/instrumented_libraries': None, 'v8/tools/gyp': None, 'v8/third_party/android_tools': None, 'v8/test/wasm-js': None, 'v8/test/benchmarks/data': None, 'v8/test/mozilla/data': None, 'v8/tools/luci-go': None, 'v8/test/test262/data': None, 'v8/test/test262/harness': None}, 'deps_file': 'DEPS', 'name': 'v8'}]"]' returned non-zero exit status 1

from deno.

0123cf avatar 0123cf commented on April 28, 2024

you try :
sudo apt-get install libgtk-3-dev pkg-config ccache

(As I told you not)
@ldwonday

from deno.

0123cf avatar 0123cf commented on April 28, 2024

@ry @FrankFang help me

out_path None                                                                                                                                                             
Rebuilding V8                                                                                                                                                             
Fetching dependencies.                                                                                                                                                    
WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" "origin"' in ./v8/third_party/jinja2 failed; will retry after a short nap...                        
 WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" "origin"' in ./v8/third_party/depot_tools failed; will retry after a short nap...                  
WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" "origin"' in ./v8/third_party/googletest/src failed; will retry after a short nap...                
WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" "origin"' in ./v8/third_party/jinja2 failed; will retry after a short nap...                        
 WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" "origin"' in ./v8/third_party/depot_tools failed; will retry after a short nap...                  
Syncing projects:  80% (16/20) v8/third_party/depot_tools                                                                                                                 
                                                                                                                                                                          
v8/third_party/icu (ERROR)                                                                                                                                                
----------------------------------------                                                                                                                                  
[0:00:02] Started.                                                                                                                                                        
----------------------------------------                                                                                                                                  
Error: Command 'git rev-list -n 1 HEAD' returned non-zero exit status 128 in ./v8/third_party/icu                                                                         
fatal: mmap failed: Cannot allocate memory                                                                                                                                
                                                                                                                                                                          
Traceback (most recent call last):                                                                                                                                        
  File "./build.py", line 149, in <module>                                                                                                                                
    main()                                                                                                                                                                
  File "./build.py", line 85, in main                                                                                                                                     
    lib_fn = Rebuild()                                                                                                                                                    
  File "./build.py", line 97, in Rebuild                                                                                                                                  
    EnsureDeps(v8_path)                                                                                                                                                   
  File "./build.py", line 146, in EnsureDeps                                                                                                                              
    env=env)                                                                                                                                                              
  File "/usr/lib/python2.7/subprocess.py", line 541, in check_call                                                                                                        
    raise CalledProcessError(retcode, cmd)                                                                                                                                
subprocess.CalledProcessError: Command '['gclient', 'sync', '--spec', "solutions = [{'managed': False, 'custom_vars': {'build_for_node': True}, 'url': 'https://chromium.g
ooglesource.com/v8/v8.git', 'custom_deps': {'v8/third_party/catapult': None, 'v8/third_party/colorama/src': None, 'v8/testing/gmock': None, 'v8/tools/swarming_client': No
ne, 'v8/third_party/instrumented_libraries': None, 'v8/tools/gyp': None, 'v8/third_party/android_tools': None, 'v8/test/wasm-js': None, 'v8/test/benchmarks/data': None, '
v8/test/mozilla/data': None, 'v8/tools/luci-go': None, 'v8/test/test262/data': None, 'v8/test/test262/harness': None}, 'deps_file': 'DEPS', 'name': 'v8'}]"]' returned non
-zero exit status 1                         

from deno.

FrankFang avatar FrankFang commented on April 28, 2024

@0123cf Try vpn, say ProtonVPN or others.

from deno.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.