question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Got file not found error when building challenge_bypass_ristretto

See original GitHub issue

Latest 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:closed
  • Created 5 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
bscliftoncommented, Mar 4, 2019

@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! 😄

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found