Bug 2045380 - firefox: FTBFS in Fedora rawhide/f36
Summary: firefox: FTBFS in Fedora rawhide/f36
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Martin Stransky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F36FTBFS F37FTBFS
TreeView+ depends on / blocked
 
Reported: 2022-01-25 16:33 UTC by Fedora Release Engineering
Modified: 2022-03-17 18:37 UTC (History)
12 users (show)

Fixed In Version: firefox-98.0-3.fc36
Clone Of:
Environment:
Last Closed: 2022-03-17 18:37:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
build.log (32.00 KB, text/plain)
2022-01-25 16:33 UTC, Fedora Release Engineering
no flags Details
root.log (32.00 KB, text/plain)
2022-01-25 16:33 UTC, Fedora Release Engineering
no flags Details
state.log (972 bytes, text/plain)
2022-01-25 16:33 UTC, Fedora Release Engineering
no flags Details

Description Fedora Release Engineering 2022-01-25 16:33:00 UTC
firefox failed to build from source in Fedora rawhide/f36

https://koji.fedoraproject.org/koji/taskinfo?taskID=81771531


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Please fix firefox at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
firefox will be orphaned. Before branching of Fedora 37,
firefox will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/

Comment 1 Fedora Release Engineering 2022-01-25 16:33:09 UTC
Created attachment 1854136 [details]
build.log

file build.log too big, will only attach last 32768 bytes

Comment 2 Fedora Release Engineering 2022-01-25 16:33:12 UTC
Created attachment 1854137 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2022-01-25 16:33:14 UTC
Created attachment 1854138 [details]
state.log

Comment 4 Martin Stransky 2022-01-25 18:37:50 UTC
Fails with:

 3:42.22 For more information about this error, try `rustc --explain E0740`.
 3:42.23 error: could not compile `gecko-profiler` due to previous error

which means:

A `union` was declared with fields with destructors

Comment 5 Martin Stransky 2022-02-02 11:19:03 UTC
Seems to be related to Fedora rust version - builds ok with rust provided by Mozilla.

Comment 6 Martin Stransky 2022-02-03 10:40:45 UTC
Filed upstream as I have zero knowledge about rust - https://bugzilla.mozilla.org/show_bug.cgi?id=1753402
Seems to be caused by new rust version on Fedora 36.

Comment 7 Ben Cotton 2022-02-08 20:17:54 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 8 Martin Stransky 2022-02-10 12:03:58 UTC
rustc --explain E0740 seems to be solved by https://bugzilla.mozilla.org/show_bug.cgi?id=1753402 but there's another one:

error: failed to run custom build command for `swgl v0.1.0 (/builddir/build/BUILD/firefox-97.0/gfx/wr/swgl)`


cargo:warning=src/glsl.h:2601:29: error: call to non-‘constexpr’ function ‘glsl::vec4& glsl::vec4::operator=(glsl::vec4&&)’
...
...

Comment 9 Martin Stransky 2022-02-10 12:28:25 UTC
Seems to be related to gcc 12 update, tracked upstream here: https://bugzilla.mozilla.org/show_bug.cgi?id=1737583

Comment 10 Martin Stransky 2022-02-18 12:48:20 UTC
Should be fixed now - 97.0.1.

Comment 11 Martin Stransky 2022-02-21 09:00:23 UTC
Hm, there's another bug apparently internal gcc error:

19:39.15 [swgl 0.1.0] error occurred: Command "/usr/bin/g++" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m32" "-march=i686" "-I/builddir/build/BUILD/firefox-97.0.1/objdir/dist/stl_wrappers" "-I/builddir/build/BUILD/firefox-97.0.1/objdir/dist/system_wrappers" "-include" "/builddir/build/BUILD/firefox-97.0.1/config/gcc_hidden.h" "-U_FORTIFY_SOURCE" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-DNDEBUG=1" "-DTRIMMED=1" "-I/builddir/build/BUILD/firefox-97.0.1/toolkit/library/rust" "-I/builddir/build/BUILD/firefox-97.0.1/objdir/toolkit/library/rust" "-I/builddir/build/BUILD/firefox-97.0.1/objdir/dist/include" "-I/usr/include/nspr4" "-I/usr/include/nss3" "-I/usr/include/nspr4" "-I/builddir/build/BUILD/firefox-97.0.1/objdir/dist/include/nss" "-DMOZILLA_CLIENT" "-include" "/builddir/build/BUILD/firefox-97.0.1/objdir/mozilla-config.h" "-Wall" "-Wempty-body" "-Wignored-qualifiers" "-Wpointer-arith" "-Wsign-compare" "-Wtype-limits" "-Wunreachable-code" "-Wno-invalid-offsetof" "-Wc++2a-compat" "-Wduplicated-cond" "-Wimplicit-fallthrough" "-Wno-error=maybe-uninitialized" "-Wno-error=deprecated-declarations" "-Wno-error=array-bounds" "-Wno-error=coverage-mismatch" "-Wno-error=free-nonheap-object" "-Wno-multistatement-macros" "-Wno-error=class-memaccess" "-Wno-error=deprecated-copy" "-Wformat" "-Wformat-overflow=2" "-Wno-psabi" "-fno-sized-deallocation" "-fno-aligned-new" "-O2" "-fexceptions" "-g0" "-grecord-gcc-switches" "-pipe" "-Wp,-D_FORTIFY_SOURCE=2" "-Wp,-D_GLIBCXX_ASSERTIONS" "-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1" "-fstack-protector-strong" "-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1" "-m32" "-march=i686" "-mtune=generic" "-msse2" "-mfpmath=sse" "-mstackrealign" "-fasynchronous-unwind-tables" "-fstack-clash-protection" "-fcf-protection" "-fpermissive" "-fPIC" "-Wl,-z,relro" "-Wl,-z,now" "-DNSS_PKCS11_3_0_STRICT" "-fno-exceptions" "-fno-strict-aliasing" "-fPIC" "-fno-rtti" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "-fno-math-errno" "-pthread" "-pipe" "-freorder-blocks" "-O2" "-fomit-frame-pointer" "-funwind-tables" "-DMOZILLA_CONFIG_H" "-I" "/builddir/build/BUILD/firefox-97.0.1/gfx/wr/webrender/res" "-I" "src" "-I" "/builddir/build/BUILD/firefox-97.0.1/objdir/i686-unknown-linux-gnu/release/build/swgl-e7da94e65e93f21b/out" "-std=c++17" "-fno-exceptions" "-fno-rtti" "-fno-math-errno" "-UMOZILLA_CONFIG_H" "-D_GLIBCXX_USE_CXX11_ABI=0" "-o" "/builddir/build/BUILD/firefox-97.0.1/objdir/i686-unknown-linux-gnu/release/build/swgl-e7da94e65e93f21b/out/src/gl.o" "-c" "src/gl.cc" with args "g++" did not execute successfully (status code exit status: 1).
19:39.15 [swgl 0.1.0]
19:39.15 [swgl 0.1.0]
19:39.18 The following warnings were emitted during compilation:
19:39.18 warning: In file included from src/glsl.h:7,
19:39.18 warning:                  from src/gl.cc:92:
19:39.18 warning: src/vector_type.h: In instantiation of ‘static T glsl::Unaligned<T>::load(const P*) [with P = glsl::VectorType<float, 16>; T = glsl::vec4]’:
19:39.18 warning: src/vector_type.h:532:28:   required from ‘T glsl::unaligned_load(const P*) [with T = vec4; P = VectorType<float, 16>]’
19:39.18 warning: src/vector_type.h:543:27:   required from ‘D glsl::bit_cast(const S&) [with D = vec4; S = VectorType<float, 16>]’
19:39.18 warning: src/blend.h:53:39:   required from here
19:39.18 warning: src/vector_type.h:503:11: warning: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘struct glsl::vec4’ with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
19:39.18 warning:   503 |     memcpy(&v, p, sizeof(v));
19:39.18 warning:       |     ~~~~~~^~~~~~~~~~~~~~~~~~
19:39.18 warning: src/glsl.h:1796:8: note: ‘struct glsl::vec4’ declared here
19:39.18 warning:  1796 | struct vec4 {
19:39.18 warning:       |        ^~~~
19:39.18 warning: *** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins.
19:39.18 warning: Event                            | Plugins
19:39.18 warning: PLUGIN_FINISH_UNIT               | annobin: Generate final annotations
19:39.18 warning: PLUGIN_START_UNIT                | annobin: Generate global annotations
19:39.18 warning: PLUGIN_ALL_PASSES_START          | annobin: Generate per-function annotations
19:39.18 warning: PLUGIN_ALL_PASSES_END            | annobin: Register per-function end symbols
19:39.18 warning: during RTL pass: expand
19:39.18 warning: src/glsl.h: In function ‘glsl::vec2_scalar glsl::sign(vec2_scalar)’:
19:39.18 warning: src/glsl.h:2868:77: internal compiler error: Segmentation fault
19:39.18 warning:  2868 | vec2_scalar sign(vec2_scalar v) { return vec2_scalar{sign(v.x), sign(v.y)}; }
19:39.18 warning:       |                                                                             ^
19:39.18 warning: Please submit a full bug report, with preprocessed source (by using -freport-bug).
19:39.18 warning: See <http://bugzilla.redhat.com/bugzilla> for instructions.
19:39.18 warning: Preprocessed source stored into /tmp/ccPhS0IA.out file, please attach this to your bugreport.
19:39.19 error: failed to run custom build command for `swgl v0.1.0 (/builddir/build/BUILD/firefox-97.0.1/gfx/wr/swgl)`

Comment 12 Martin Stransky 2022-02-21 09:07:40 UTC
Filed as Bug 2056443

Comment 13 Martin Stransky 2022-02-28 10:34:48 UTC
Still broken, recently with c++ linking:
https://bugzilla.redhat.com/show_bug.cgi?id=2056443#c5

Comment 14 Adam Williamson 2022-03-11 00:07:34 UTC
Fixed for Rawhide now, F36 build is in https://bodhi.fedoraproject.org/updates/FEDORA-2022-42ea499a7d .

Comment 15 Fedora Update System 2022-03-11 00:07:51 UTC
FEDORA-2022-42ea499a7d has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-42ea499a7d

Comment 16 Fedora Update System 2022-03-11 19:25:11 UTC
FEDORA-2022-42ea499a7d has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-42ea499a7d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-42ea499a7d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 17 Fedora Update System 2022-03-17 17:10:08 UTC
FEDORA-2022-42ea499a7d has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-42ea499a7d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-42ea499a7d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 18 Fedora Update System 2022-03-17 18:37:18 UTC
FEDORA-2022-42ea499a7d has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.