Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 736463 - www-client/firefox-79.0-r2: error: options `-C embed-bitcode=no` and `-C lto` are incompatible
Summary: www-client/firefox-79.0-r2: error: options `-C embed-bitcode=no` and `-C lto`...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-09 00:26 UTC by laniac67
Modified: 2020-08-10 08:00 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info '=dev-lang/rust-1.45.2::gentoo' (emerge-info.txt,5.42 KB, text/plain)
2020-08-09 00:26 UTC, laniac67
Details
build log (build.log,393.14 KB, text/x-log)
2020-08-09 00:27 UTC, laniac67
Details
Firefox build log (build.log.xz,313.31 KB, application/x-xz)
2020-08-09 06:13 UTC, laniac67
Details

Note You need to log in before you can comment on or make changes to this bug.
Description laniac67 2020-08-09 00:26:20 UTC
Created attachment 653849 [details]
emerge --info '=dev-lang/rust-1.45.2::gentoo'

I am installing a Hardened profile on amd64, and there is what appears to be a CFLAGS issue with the included LLVM.  This issue does not occur when building clang or llvm as ebuilds, so it appears to be related to the bundled LLVM not inheriting custom CFLAGS correctly.  I am suspecting a CFLAGS issue because it's almost precisely the kind of compiler error I saw when CFLAGS and CXXFLAGS had mismatching -march settings on a previous Gentoo install.
Comment 1 laniac67 2020-08-09 00:27:29 UTC
Created attachment 653851 [details]
build log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-08-09 00:32:02 UTC
Note that segfaults are common on certain earlier(ish) Ryzens. Could you verify your BIOS/firmware is up to date, and you're applying the latest microcode?
Comment 3 Georgy Yakovlev archtester gentoo-dev 2020-08-09 01:06:56 UTC
does it always fail at the same file/step? or is it random?
Comment 4 laniac67 2020-08-09 06:13:22 UTC
Created attachment 653857 [details]
Firefox build log
Comment 5 laniac67 2020-08-09 06:14:22 UTC
Applying a BIOS patch fixed the Rust compiler errors, but now there still may be something wrong with the resulting binary since Firefox is failing to build.  See attachment.
Comment 6 Georgy Yakovlev archtester gentoo-dev 2020-08-09 08:35:45 UTC
you are welcome.



nothing wrong with the binary

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


something passes both and it errors out.

it's a know issue compiling with 1.45 but supposed to be fixed.
re-assigning to firefox maintainers.

do you define any RUSTFLAGS manually btw?
Comment 7 laniac67 2020-08-09 18:47:44 UTC
I have not manually assigned any RUSTFLAGS.
Comment 8 Larry the Git Cow gentoo-dev 2020-08-10 08:00:15 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01a6b7121c7492e614d7615221b4d30bd640e2c4

commit 01a6b7121c7492e614d7615221b4d30bd640e2c4
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2020-08-10 07:54:12 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-08-10 07:59:54 +0000

    www-client/firefox: backport rust fix to v79
    
    Closes: https://bugs.gentoo.org/736463
    Package-Manager: Portage-3.0.2, Repoman-2.3.23
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 www-client/firefox/Manifest               | 2 +-
 www-client/firefox/firefox-79.0-r2.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 9 Thomas Deutschmann (RETIRED) gentoo-dev 2020-08-10 08:00:52 UTC
I really don't understand at this point why *you* need this patch and others don't but...