Build from source on ubuntu focal is failin

Hello Brave Browser Developers,

I have followed the instructions from here:

and

I keep getting the error here:

ninja -C /home/richard/brave/brave-browser/src/out/linux_Component_x86 brave -k 1
ninja: Entering directory /home/richard/brave/brave-browser/src/out/linux_Component_x86' [28/55726] ACTION //brave/build/rust:rust_lib_cargo_build(//build/toolchain/linux:clang_x86) FAILED: brave_rust/out/x86/release/libbrave_rust.a python3 ../../brave/script/cargo.py --rustup_path=../../brave/build/rustup/ --cargo_path=../../brave/build/rustup/ --manifest_path=../../brave/build/rust/Cargo.toml --build_path=brave_rust/out/x86 --target= --toolchain= --is_debug=false --rust_flags= error: target was empty None Traceback (most recent call last): File "../../brave/script/cargo.py", line 101, in <module> sys.exit(main()) File "../../brave/script/cargo.py", line 95, in main build(parse_args()) File "../../brave/script/cargo.py", line 70, in build raise e File "../../brave/script/cargo.py", line 67, in build subprocess.check_call(cargo_args, env=env) File "/home/richard/.linuxbrew/Cellar/python@3.8/3.8.6/lib/python3.8/subprocess.py", line 364, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cargo', 'build', '--release', '--manifest-path=../../brave/build/rust/Cargo.toml', '--target-dir=brave_rust/out/x86', '--target=']' returned non-zero exit status 101. [61/55726] CXX clang_x64/obj/third_party/abseil-cpp/absl/strings/cord/cord.o ninja: build stopped: subcommand failed. null null npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! brave-core@1.30.14 build: node ./build/commands/scripts/commands.js build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the brave-core@1.30.14 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/richard/.npm/_logs/2021-08-11T04_53_47_619Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! brave@1.30.14 build: npm --prefix src/brave run build --
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the brave@1.30.14 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/richard/.npm/_logs/2021-08-11T04_53_47_640Z-debug.log

I am running ubuntu focal on a very powerful machine with plenty of space / memory / cpu power.

When I ran through the instructions, I ran into this error.

Chromium by itself builds. But the browser is slower than any browser I have ever seen. browserbench.org cannot even complete its first test.

We are evaluating if we can use chromium for our current project and we very much think Brave is our answer. I’d love any assistance you are willing to give.

Best Regards,
–R

NOTE: Any “one-liner” or topics requesting support or reporting bugs that do not make an effort to include as much of this information as possible will not be responded to. Repeatedly posting as such is grounds for banning._
Please try to adhere to this template when reporting bugs. If you think you don’t need to fill out every section in the template fill out as much of it as you can and please be as descriptive as possible when posting.
<---------Delete this line and everything above before posting---------->

Description of the issue:

Steps to Reproduce (add as many as necessary): 1. 2. 3.

Actual Result (gifs and screenshots are welcome!):

Expected result:

Reproduces how often:

Operating System and Brave Version(See the About Brave page in the main menu):

Additional Information:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.