error: options `-C embed-bitcode=no` and `-C lto` are incompatible
Categories
(Firefox Build System :: General, defect, P3)
Tracking
(Not tracked)
People
(Reporter: arobertson1, Assigned: mhentges)
Details
(Keywords: in-triage)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0
Steps to reproduce:
Compiling firefox-77.0b9 Linux Mint 19.3
Python 3.8.0
rustc 1.45.0-nightly (215f2d329 2020-05-22)
node v14.1.0
npm 6.14.5
clang / clang++ clang version 9.0.0-2~ubuntu18.04.2
Unpack and cd to directory
mkdir src && cd src
cargo install cbindgen --force
cargo install rustfmt --force
../configure
make -j9
sudo make install
Actual results:
error: options -C embed-bitcode=no
and -C lto
are incompatible
error: could not compile gkrust
.
Expected results:
Compilation fails due to both -C embed-bitcode=no
and -C lto
flags being passed to the compiler.
To fix:
Edit ~/Downloads/firefox-77.0b9.source/firefox-77.0/config/makefiles/rust.mk and comment out this line:
cargo_rustc_flags += -Clto
To:
#cargo_rustc_flags += -Clto
Compilation proceeds as normal, installs and runs.
Comment 1•4 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Description
•