Error after run make build, trying to build tor browser from source
I am trying to build tor browser from source according wiki. I get the following error when run make build
.
./build.sh /home/$USER/tor-browser/tools/torbrowser/../..
0:00.37 Clobber not needed.
Config object not found by mach.
0:00.46 Using Python 3.10.6 from /home/$USER/tor-browser/obj-x86_64-pc-linux-gnu/_virtualenvs/build/bin/python
0:00.46 Adding configure options from /home/$USER/tor-browser/mozconfig
0:00.46 --enable-application=browser
0:00.46 --enable-official-branding
0:00.46 --enable-optimize
0:00.47 --enable-rust-simd
0:00.47 --enable-verify-mar
0:00.47 --enable-nss-mar
0:00.47 --enable-base-browser-update
0:00.47 --enable-bundled-fonts
0:00.47 --disable-tests
0:00.47 --disable-debug
0:00.47 --disable-crashreporter
0:00.47 --disable-webrtc
0:00.47 --disable-parental-controls
0:00.47 --disable-eme
0:00.47 --enable-proxy-bypass-protection
0:00.47 --disable-system-policies
0:00.47 --disable-backgroundtasks
0:00.47 MOZ_TELEMETRY_REPORTING=
0:00.47 --without-wasm-sandboxed-libraries
0:00.47 --with-relative-data-dir=TorBrowser/Data/Browser
0:00.47 --with-distribution-id=org.torproject
0:00.47 --with-branding=browser/branding/tb-nightly
0:00.47 --enable-default-toolkit=cairo-gtk3
0:00.47 --disable-strip
0:00.47 --disable-install-strip
0:00.47 --with-base-browser-version=dev-build
0:00.47 --disable-base-browser-update
0:00.47 --enable-artifact-builds
0:00.47 MOZILLA_OFFICIAL=
0:00.47 checking for vcs source checkout... git
0:00.58 checking for a shell... /usr/bin/sh
0:00.60 checking for host system type... x86_64-pc-linux-gnu
0:00.60 checking for target system type... x86_64-pc-linux-gnu
0:00.66 checking whether cross compiling... no
0:00.71 Traceback (most recent call last):
0:00.71 File "/home/$USER/tor-browser/configure.py", line 349, in <module>
0:00.71 sys.exit(main(sys.argv))
0:00.71 File "/home/$USER/tor-browser/configure.py", line 131, in main
0:00.71 sandbox.run(os.path.join(os.path.dirname(__file__), "moz.configure"))
0:00.71 File "/home/$USER/tor-browser/python/mozbuild/mozbuild/configure/__init__.py", line 516, in run
0:00.71 self._value_for(option)
0:00.71 File "/home/$USER/tor-browser/python/mozbuild/mozbuild/configure/__init__.py", line 621, in _value_for
0:00.71 return self._value_for_option(obj)
0:00.71 File "/home/$USER/tor-browser/python/mozbuild/mozbuild/util.py", line 1061, in method_call
0:00.71 cache[args] = self.func(instance, *args)
0:00.71 File "/home/$USER/tor-browser/python/mozbuild/mozbuild/configure/__init__.py", line 688, in _value_for_option
0:00.71 raise InvalidOptionError(
0:00.71 mozbuild.configure.options.InvalidOptionError: --enable-optimize is not available in this configuration
*** Fix above errors and then restart with "./mach build"
make: *** [Makefile:26: build] Error 1
Edited by Pier Angelo Vendrame