Closed Bug 1754707 Opened 3 years ago Closed 3 years ago

Firefox fails to build on armv7 linux since version 96.0

Categories

(Firefox Build System :: General, defect)

Firefox 96
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1738845

People

(Reporter: guillaume.gardet, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36

Steps to reproduce:

I tried to build Firefox for openSUSE Tumbleweed armv7

Actual results:

But it fails at link time:

[18943s] 311:47.03 /usr/bin/ccache /usr/bin/g++ -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -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 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -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  -shared -Wl,-z,defs -Wl,--gc-sections -Wl,-h,libxul.so -o libxul.so /home/abuild/rpmbuild/BUILD/obj/toolkit/library/build/libxul_so.list   -lpthread -Wl,--no-keep-memory -Wl,--reduce-memory-overheads -fPIC -Wl,-z,relro,-z,now -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions -Wl,--build-id=sha1 -fstack-protector-strong -Wl,-rpath-link,/home/abuild/rpmbuild/BUILD/obj/dist/bin -Wl,-rpath-link,/usr/lib  ../../../js/src/build/libjs_static.a /home/abuild/rpmbuild/BUILD/obj/armv7-unknown-linux-gnueabihf/release/libgkrust.a ../../../security/sandbox/linux/libmozsandbox.so ../../../config/external/lgpllibs/liblgpllibs.so ../../../config/external/sqlite/libmozsqlite3.so ../../../widget/gtk/mozgtk/libmozgtk.so ../../../widget/gtk/mozwayland/libmozwayland.so -Wl,--version-script,symverscript  -landroid_support -lunwind -lrt -lm -ldl -lX11 -lXcomposite -lXdamage -lXext -lXfixes -lXrandr -lXrender -lXtst -lpthread -lc -lplds4 -lplc4 -lnspr4 -lz -lssl3 -lsmime3 -lnss3 -lnssutil3 -lfreetype -lfontconfig -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -ldbus-glib-1 -ldbus-1 -lxcb-shm -lX11-xcb -lxcb -lXcursor -lXi -lproxy
[18958s] 312:01.81 /usr/lib/gcc/armv7hl-suse-linux-gnueabi/11/../../../../armv7hl-suse-linux-gnueabi/bin/ld: /home/abuild/rpmbuild/BUILD/obj/toolkit/library/build/../../../third_party/libwebrtc/common_audio/common_audio_c_gn/Unified_c_common_audio_c_gn0.o: in function `WebRtcSpl_ComplexBitReverse':
[18958s] 312:01.81 Unified_c_common_audio_c_gn0.c:(.text.WebRtcSpl_ComplexBitReverse+0x0): multiple definition of `WebRtcSpl_ComplexBitReverse'; /home/abuild/rpmbuild/BUILD/obj/toolkit/library/build/../../../third_party/libwebrtc/common_audio/common_audio_c_arm_asm_gn/complex_bit_reverse_arm.o:(.text+0x0): first defined here
[18958s] 312:01.81 /usr/lib/gcc/armv7hl-suse-linux-gnueabi/11/../../../../armv7hl-suse-linux-gnueabi/bin/ld: /home/abuild/rpmbuild/BUILD/obj/toolkit/library/build/../../../third_party/libwebrtc/common_audio/common_audio_c_gn/Unified_c_common_audio_c_gn0.o: in function `WebRtcSpl_FilterARFastQ12':
[18958s] 312:01.81 Unified_c_common_audio_c_gn0.c:(.text.WebRtcSpl_FilterARFastQ12+0x0): multiple definition of `WebRtcSpl_FilterARFastQ12'; /home/abuild/rpmbuild/BUILD/obj/toolkit/library/build/../../../third_party/libwebrtc/common_audio/common_audio_c_arm_asm_gn/filter_ar_fast_q12_armv7.o:(.text+0x0): first defined here
[18958s] 312:01.82 /usr/lib/gcc/armv7hl-suse-linux-gnueabi/11/../../../../armv7hl-suse-linux-gnueabi/bin/ld: /home/abuild/rpmbuild/BUILD/obj/toolkit/library/build/../../../third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor_gn/spl_sqrt_floor_arm.o: in function `WebRtcSpl_SqrtFloor':
[18958s] 312:01.82 (.text+0x0): multiple definition of `WebRtcSpl_SqrtFloor'; /home/abuild/rpmbuild/BUILD/obj/toolkit/library/build/../../../third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor_gn/Unified_c_spl_sqrt_floor_gn0.o:Unified_c_spl_sqrt_floor_gn0.c:(.text.WebRtcSpl_SqrtFloor+0x0): first defined here
[18962s] 312:05.90 /usr/lib/gcc/armv7hl-suse-linux-gnueabi/11/../../../../armv7hl-suse-linux-gnueabi/bin/ld: cannot find -landroid_support
[18962s] 312:05.90 /usr/lib/gcc/armv7hl-suse-linux-gnueabi/11/../../../../armv7hl-suse-linux-gnueabi/bin/ld: cannot find -lunwind
[18978s] 312:21.30 collect2: error: ld returned 1 exit status

Expected results:

Build should succeed.

The Bugbug bot thinks this bug should belong to the 'Firefox Build System::General' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → General
Product: Firefox → Firefox Build System
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.