@nihi1ist

Как решить ошибку сборки firefox?

Пытаюсь собрать Firefox с добавлением своего патча. При сборке требуется rust >= 1.63 и cargo >= 0.64. Скриптом установил последнюю стабильную версию:
Версии пакетов
rustc --version
rustc 1.66.0 (69f9c33d7 2022-12-12)
cargo --version
cargo 1.66.0 (d65d197ad 2022-11-15)

Но, при сборке получаю:
Ошибка сборки
cargo build --release; \
export CARGO_HOME=/home/nihi1ist/.src/firefox/108.0.2/firefox-108.0.2+build1/third_party/cbindgen/.cargo; \
cargo install --path . --bin cbindgen --root ../../cbindgen
error: rustup could not choose a version of cargo to run, because one wasn't specified explicitly, and no default is configured.
help: run 'rustup default stable' to download the latest stable release of Rust and set it as your default toolchain.
error: rustup could not choose a version of cargo to run, because one wasn't specified explicitly, and no default is configured.
help: run 'rustup default stable' to download the latest stable release of Rust and set it as your default toolchain.
make: *** [/home/nihi1ist/.src/firefox/108.0.2/firefox-108.0.2+build1/debian/build/rules.mk:238: cbindgen/bin/cbindgen] Ошибка 1
dpkg-buildpackage: ошибка: debian/rules build subprocess returned exit status 2

Хотя указанные действия (rustup default stable) были проведены.

Участок кода debian/build/rules.mk:238, вторая строка именно та самая 238:
Участок кода
cbindgen/bin/cbindgen: third_party/cbindgen/Cargo.toml
	export RUST_BACKTRACE=full; \
	export CC=clang-$(DEB_LLVM_VERSION); \
	export CXX=clang++-$(DEB_LLVM_VERSION); \
	cd $(CURDIR)/third_party/cbindgen; \
	cargo build --release; \
	export CARGO_HOME=$(CURDIR)/third_party/cbindgen/.cargo; \
	cargo install --path . --bin cbindgen --root ../../cbindgen
clean::
	rm -rf $(CURDIR)/cbindgen
	rm -rf $(CURDIR)/third_party/cbindgen/target
  • Вопрос задан
  • 110 просмотров
Решения вопроса 1
@nihi1ist Автор вопроса
Нашёл ppa репозиторий, со актуальными сборками rust. И начало всё собираться.
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы