Closed Bug 1640497 Opened 4 years ago Closed 4 years ago

error: options `-C embed-bitcode=no` and `-C lto` are incompatible

Categories

(Firefox Build System :: General, defect, P3)

77 Branch
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1640982

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.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → General
Product: Firefox → Firefox Build System
Severity: -- → S3
Keywords: in-triage
Priority: -- → P3
Assignee: nobody → mhentges
Flags: needinfo?(rstewart)
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Flags: needinfo?(rstewart)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.