Got file not found error when building challenge_bypass_ristretto
See original GitHub issueLatest attempt to build Brave from source (latest master
branch) results in an error. I am following this guide https://github.com/brave/brave-browser/wiki to do a Release build. This is the error I get:
building brave...
gn gen /disk-2/dev/brave-browser/src/out/Release --args="safe_browsing_mode=1 root_extra_deps=[\"//brave\"] is_component_build=false proprietary_codecs=true ffmpeg_branding=\"Chrome\" enable_nacl=false enable_widevine=true target_cpu=\"x64\" is_official_build=true is_debug=false dcheck_always_on=false brave_channel=\"\" google_api_key=\"AIzaSyAH90V94EcZBP5oH7oc-mXQrSKgASVxER8\" brave_google_api_key=\"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q\" brave_google_api_endpoint=\"https://www.googleapis.com/geolocation/v1/geolocate?key=\" brave_product_name=\"Brave\" brave_project_name=\"brave\" brave_version_major=\"0\" brave_version_minor=\"63\" brave_version_build=\"0\" chrome_version_string=\"73.0.3683.39\" chrome_version_major=\"73\" safebrowsing_api_endpoint=\"safebrowsing.brave.com\" brave_referrals_api_key=\"\" enable_hangout_services_extension=true cc_wrapper=\"/disk-2/dev/brave-browser/src/brave/script/redirect-cc.py\" "
Done. Made 11823 targets from 1949 files in 2636ms
ninja -C /disk-2/dev/brave-browser/src/out/Release brave -k 1
ninja: Entering directory `/disk-2/dev/brave-browser/src/out/Release'
[680/19788] ACTION //brave/vendor/challenge_bypass_ristretto_ffi:challenge_bypass_ristretto(//build/toolchain/linux:clang_x64)
FAILED: gen/challenge_bypass_ristretto/out/x86_64-unknown-linux-gnu/release/libchallenge_bypass_ristretto.a
python ../../brave/script/cargo.py --rustup_home=../../brave/build/rustup/ --cargo_home=../../brave/build/rustup/ --manifest_path=../../brave/vendor/challenge_bypass_ristretto_ffi/Cargo.toml --build_path=gen/challenge_bypass_ristretto/out --target=x86_64-unknown-linux-gnu --is_debug=false --rust_flags=
Traceback (most recent call last):
File "../../brave/script/cargo.py", line 104, in <module>
sys.exit(main())
File "../../brave/script/cargo.py", line 16, in main
build(parse_args())
File "../../brave/script/cargo.py", line 81, in build
subprocess.check_call(cargo_args, env=env)
File "/usr/lib/python2.7/subprocess.py", line 181, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 168, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
[689/19788] ACTION //brave/components/brave_webtorrent/extension:generate_brave_webtorrent(//build/toolchain/linux:clang_x64)
ninja: build stopped: subcommand failed.
null
null
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! brave@0.63.0 build: `node ./scripts/commands.js build "Release"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the brave@0.63.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/valera/.npm/_logs/2019-02-24T17_39_27_360Z-debug.log
My system:
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Linux debian 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64 GNU/Linux
$ python --version
Python 2.7.13
$ python3 --version
Python 3.5.3
$ gcc --version
gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ node --version
v10.15.1
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
LeastAuthority/python-challenge-bypass-ristretto - GitHub
Python bindings for Brave's challenge-bypass-ristretto library ... Provide a pkgconfig file so build systems can find the header and library.
Read more >python-challenge-bypass-ristretto - PyPI
How to build. The Rust FFI library is a git submodule, so to clone all sources needed for a build: git clone --recursive...
Read more >Grails compilation error: unable to resolve class JSON
Show activity on this post. To fix the "unable to resolve class JSON" error, you should just have to import it: import grails.converters....
Read more >Bug listing with status RESOLVED with resolution OBSOLETE ...
systemPrefs with at least two files" status:RESOLVED resolution:OBSOLETE ... Bug:186675 - "[java-overlay] dev-java/jacorb-2.2.4-r1 does not build with doc ...
Read more >badger - Go Packages
func Open(opt Options) (*DB, error); func OpenManaged(opts Options) (*DB, error) ... New("Key not found") // ErrTxnTooBig is returned if too many writes are ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@valera-rozuvan can you check out this edit by @jumde? Hope this helps capture it 😄 https://github.com/brave/brave-browser/wiki/Home/_compare/e99b09e6a68a4b5ad79cb4f690f1ef144657b8a0...f3f38ac38ce061ea83b22086a536fb96b4f8bcf0
Updated page at: https://github.com/brave/brave-browser/wiki#troubleshooting
@valera-rozuvan awesome 😄 You may be able to edit the wiki, if there are specific steps you found that would help others (if not, let us know and we can update for you)
I’ll close as this seems to be resolved!
edit: thanks @jumde for the assist! 😄