Fedora Account System
Red Hat Associate
Red Hat Customer
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/
Created attachment 1854136 [details] build.log file build.log too big, will only attach last 32768 bytes
Created attachment 1854137 [details] root.log file root.log too big, will only attach last 32768 bytes
Created attachment 1854138 [details] state.log
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
Seems to be related to Fedora rust version - builds ok with rust provided by Mozilla.
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.
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle. Changing version to 36.
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&&)’ ... ...
Seems to be related to gcc 12 update, tracked upstream here: https://bugzilla.mozilla.org/show_bug.cgi?id=1737583
Should be fixed now - 97.0.1.
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)`
Filed as Bug 2056443
Still broken, recently with c++ linking: https://bugzilla.redhat.com/show_bug.cgi?id=2056443#c5
Fixed for Rawhide now, F36 build is in https://bodhi.fedoraproject.org/updates/FEDORA-2022-42ea499a7d .
FEDORA-2022-42ea499a7d has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-42ea499a7d
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.
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.