Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Feb 2023 17:50:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        gecko@FreeBSD.org
Subject:   [Bug 269664] www/firefox: can't build Firefox 110.0.3 on FreeBSD 13.2 STABLE
Message-ID:  <bug-269664-21738-biLEQpCGaC@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-269664-21738@https.bugs.freebsd.org/bugzilla/>
References:  <bug-269664-21738@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269664

Soe Tun <soelinn@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |soelinn@gmail.com

--- Comment #4 from Soe Tun <soelinn@gmail.com> ---
(In reply to Oleg Sidorkin from comment #3)

Like you said, I get LLVM errors with LTO (Link-Time Optimization) option.
I tried building www/firefox with two approaches -- (1) Ports (2) Poudriere
Both approaches fail with the same LLVM error near the very end for FreeBSD
13.1-RELEASE.

What "version mismatches" can there be to result in these LLVM errors?=20=20
Isn't using Poudriere to build it in isolation good enough?
Why would it fail to build using LTO option in Poudriere?


=3D=3D=3D=3D APPROACH 1: Ports =3D=3D=3D=3D
$ cd /usr/ports/www/firefox
$ make config-recursive
$ make install clean

=3D=3D=3D=3D APPROACH 2: Poudriere =3D=3D=3D=3D

I simply followed instructions to setup Poudriere.
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-poudriere-=
build-system-to-create-packages-for-your-freebsd-servers

$ poudriere jail -c -j 131Ramd64 -v 13.1-RELEASE
$ poudriere ports -c -p 2023Q1



The following is the Makefile config options I set for www/firefox.

---Begin OPTIONS List---
=3D=3D=3D> The following configuration options are available for firefox-11=
0.0_3,2:
     CANBERRA=3Doff: Sound theme alerts
     DBUS=3Don: D-Bus IPC system support
     DEBUG=3Doff: Build with debugging support
     FFMPEG=3Don: FFmpeg support (WMA, AIFF, AC3, APE...)
     LIBPROXY=3Doff: Proxy support via libproxy
     LTO=3Don: Use Link-Time Optimization
     OPTIMIZED_CFLAGS=3Don: Use extra compiler optimizations
     PROFILE=3Don: Build with profiling support
     TEST=3Doff: Build and/or run tests
=3D=3D=3D=3D> Extra cubeb audio backends (OSS is always available)
     ALSA=3Doff: ALSA audio architecture support
     JACK=3Don: JACK audio server support
     PULSEAUDIO=3Don: PulseAudio sound server support
     SNDIO=3Don: Sndio audio support
=3D=3D=3D> Use 'make config' to modify these settings
---End OPTIONS List---





This is the same LLVM error I get for both approaches.

/usr/local/bin/clang++13 -Qunused-arguments -std=3Dgnu++17 -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=3D2 -fstack-protector-strong -fstack-clash-protection
-DLIBICONV_PLUG -isystem /usr/local/include -fno-sized-deallocation
-fno-aligned-new -O2 -pipe -O3 -DLIBICONV_PLUG -fstack-protector-strong
-isystem /usr/local/include -fno-strict-aliasing -DLIBICONV_PLUG -isystem
/usr/local/include -fno-exceptions -fPIC -fno-rtti -ffunction-sections
-fdata-sections -fno-exceptions -fno-math-errno -pipe -O2 -O3
-fno-omit-frame-pointer -funwind-tables  -shared -Wl,-z,defs
-Wl,--warn-unresolved-symbols -Wl,--gc-sections -Wl,-h,libxul.so -o libxul.=
so
/wrkdirs/usr/ports/www/firefox/work/.build/toolkit/library/build/libxul_so.=
list
 -flto=3Dthin -Wl,-plugin-opt=3D-import-instr-limit=3D10
-Wl,-plugin-opt=3D-import-hot-multiplier=3D30 -pthread -Wl,--as-needed
-fstack-protector-strong -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro
-Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions -Wl,--build-id=3Dsha1
-fstack-protector-strong -fstack-clash-protection
-Wl,-rpath-link,/wrkdirs/usr/ports/www/firefox/work/.build/dist/bin
-Wl,-rpath-link,/usr/local/lib  ../../../js/src/build/libjs_static.a
/wrkdirs/usr/ports/www/firefox/work/.build/x86_64-unknown-freebsd/release/l=
ibgkrust.a
../../../config/external/lgpllibs/liblgpllibs.so
../../../config/external/sqlite/libmozsqlite3.so
../../../widget/gtk/mozgtk/libmozgtk.so
../../../widget/gtk/mozwayland/libmozwayland.so   -L/usr/local/lib -licui18n
-L/usr/local/lib -licuuc -licudata -laom -ldav1d -lX11 -lXcomposite -lXdama=
ge
-lXext -lXfixes -lXrandr -lXrender -lXtst -lpthread -lffi -lplds4 -lplc4
-lnspr4 -pthread -ldl -lz -lm -lnss3 -lsmime3 -lssl3 -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
-lintl -lutil -lpng16 -lwebpdemux -lwebp -lsharpyuv -lgraphite2 -levent -lv=
px
-lpixman-1 -ldbus-glib-1 -ldbus-1 -lxcb-shm -lX11-xcb -lxcb -lXcursor -lXi
LLVM ERROR: Type mismatch in constant table!
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0.      Program arguments: /usr/local/llvm13/bin/ld --eh-frame-hdr -Bsharea=
ble
--hash-style=3Dboth --enable-new-dtags -o libxul.so /usr/lib/crti.o
/usr/lib/crtbeginS.o -L/usr/local/lib -L/usr/local/lib -L/usr/lib -plugin
/usr/local/llvm13/bin/../lib/LLVMgold.so -plugin-opt=3Dmcpu=3Dx86-64 -plugi=
n-opt=3DO3
-plugin-opt=3Dthinlto -plugin-opt=3D-function-sections -plugin-opt=3D-data-=
sections
-z defs --warn-unresolved-symbols --gc-sections -h libxul.so
/wrkdirs/usr/ports/www/firefox/work/.build/toolkit/library/build/libxul_so.=
list
-plugin-opt=3D-import-instr-limit=3D10 -plugin-opt=3D-import-hot-multiplier=
=3D30
--as-needed -z noexecstack -z text -z relro -z nocopyreloc -Bsymbolic-funct=
ions
--build-id=3Dsha1 -rpath-link /wrkdirs/usr/ports/www/firefox/work/.build/di=
st/bin
-rpath-link /usr/local/lib ../../../js/src/build/libjs_static.a
/wrkdirs/usr/ports/www/firefox/work/.build/x86_64-unknown-freebsd/release/l=
ibgkrust.a
../../../config/external/lgpllibs/liblgpllibs.so
../../../config/external/sqlite/libmozsqlite3.so
../../../widget/gtk/mozgtk/libmozgtk.so
../../../widget/gtk/mozwayland/libmozwayland.so -licui18n -licuuc -licudata
-laom -ldav1d -lX11 -lXcomposite -lXdamage -lXext -lXfixes -lXrandr -lXrend=
er
-lXtst -lpthread -lffi -lplds4 -lplc4 -lnspr4 -ldl -lz -lm -lnss3 -lsmime3
-lssl3 -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 -lintl -lutil -lpng16 -lwebpdemux -lwebp
-lsharpyuv -lgraphite2 -levent -lvpx -lpixman-1 -ldbus-glib-1 -ldbus-1
-lxcb-shm -lX11-xcb -lxcb -lXcursor -lXi -lc++ -lm -lgcc --as-needed -lgcc_s
--no-as-needed -lpthread -lc -lgcc --as-needed -lgcc_s --no-as-needed
/usr/lib/crtendS.o /usr/lib/crtn.o
 #0 0x0000000825db08f8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(/usr/local/llvm13/lib/libLLVM-13.so+0x2bb08f8)
 #1 0x0000000825daec25 llvm::sys::RunSignalHandlers()
(/usr/local/llvm13/lib/libLLVM-13.so+0x2baec25)
 #2 0x0000000825db10c1 (/usr/local/llvm13/lib/libLLVM-13.so+0x2bb10c1)
 #3 0x0000000822917580 (/lib/libthr.so.3+0x1a580)
 #4 0x0000000822916b3f (/lib/libthr.so.3+0x19b3f)
 #5 0x00007ffffffff8a3 ([vdso]+0x2d3)
 #6 0x000000082a0b033a thr_kill (/lib/libc.so.7+0x13733a)
 #7 0x000000082a028c74 _raise (/lib/libc.so.7+0xafc74)
 #8 0x000000082a0da109 abort (/lib/libc.so.7+0x161109)
 #9 0x0000000825cf3f1d (/usr/local/llvm13/lib/libLLVM-13.so+0x2af3f1d)
#10 0x0000000825cf3d59 (/usr/local/llvm13/lib/libLLVM-13.so+0x2af3d59)
#11 0x000000082674756e (/usr/local/llvm13/lib/libLLVM-13.so+0x354756e)
#12 0x000000082672367e (/usr/local/llvm13/lib/libLLVM-13.so+0x352367e)
#13 0x000000082672c0e8 (/usr/local/llvm13/lib/libLLVM-13.so+0x352c0e8)
#14 0x00000008267147d3 llvm::BitcodeModule::getModuleImpl(llvm::LLVMContext=
&,
bool, bool, bool,
llvm::function_ref<llvm::Optional<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > > (llvm::StringRef=
)>)
(/usr/local/llvm13/lib/libLLVM-13.so+0x35147d3)
#15 0x0000000826714e94 llvm::BitcodeModule::getLazyModule(llvm::LLVMContext=
&,
bool, bool) (/usr/local/llvm13/lib/libLLVM-13.so+0x3514e94)
#16 0x00000008272fb1b9 (/usr/local/llvm13/lib/libLLVM-13.so+0x40fb1b9)
#17 0x00000008272faee7 llvm::irsymtab::readBitcode(llvm::BitcodeFileContents
const&) (/usr/local/llvm13/lib/libLLVM-13.so+0x40faee7)
#18 0x00000008272f875b llvm::object::readIRSymtab(llvm::MemoryBufferRef)
(/usr/local/llvm13/lib/libLLVM-13.so+0x40f875b)
#19 0x0000000827158a57 llvm::lto::InputFile::create(llvm::MemoryBufferRef)
(/usr/local/llvm13/lib/libLLVM-13.so+0x3f58a57)
#20 0x0000000000497a55
lld::elf::BitcodeFile::BitcodeFile(llvm::MemoryBufferRef, llvm::StringRef,
unsigned long) (/usr/local/llvm13/bin/ld+0x497a55)
#21 0x0000000000498930 lld::elf::BitcodeFile* lld::make<lld::elf::BitcodeFi=
le,
llvm::MemoryBufferRef&, llvm::StringRef&, unsigned
long&>(llvm::MemoryBufferRef&, llvm::StringRef&, unsigned long&)
(/usr/local/llvm13/bin/ld+0x498930)
#22 0x0000000000496656 lld::elf::createObjectFile(llvm::MemoryBufferRef,
llvm::StringRef, unsigned long) (/usr/local/llvm13/bin/ld+0x496656)
#23 0x00000000004963da
lld::elf::ArchiveFile::fetch(llvm::object::Archive::Symbol const&)
(/usr/local/llvm13/bin/ld+0x4963da)
#24 0x000000000055da95 lld::elf::SymbolTable::addSymbol(lld::elf::Symbol
const&) (/usr/local/llvm13/bin/ld+0x55da95)
#25 0x0000000000496093 lld::elf::ArchiveFile::parse()
(/usr/local/llvm13/bin/ld+0x496093)
#26 0x00000000004943f4 lld::elf::parseFile(lld::elf::InputFile*)
(/usr/local/llvm13/bin/ld+0x4943f4)
#27 0x000000000046700c void
lld::elf::LinkerDriver::link<llvm::object::ELFType<(llvm::support::endianne=
ss)1,
true> >(llvm::opt::InputArgList&) (/usr/local/llvm13/bin/ld+0x46700c)
#28 0x000000000045bd43 lld::elf::LinkerDriver::linkerMain(llvm::ArrayRef<ch=
ar
const*>) (/usr/local/llvm13/bin/ld+0x45bd43)
#29 0x0000000000459ea7 lld::elf::link(llvm::ArrayRef<char const*>, bool,
llvm::raw_ostream&, llvm::raw_ostream&) (/usr/local/llvm13/bin/ld+0x459ea7)
#30 0x00000000003a0558 (/usr/local/llvm13/bin/ld+0x3a0558)
clang-13: error: unable to execute command: Abort trap (core dumped)
clang-13: error: linker command failed due to signal (use -v to see invocat=
ion)
gmake[4]: ***
[/wrkdirs/usr/ports/www/firefox/work/firefox-110.0/config/rules.mk:540:
libxul.so] Error 254
gmake[4]: Leaving directory
'/wrkdirs/usr/ports/www/firefox/work/.build/toolkit/library/build'
gmake[3]: ***
[/wrkdirs/usr/ports/www/firefox/work/firefox-110.0/config/recurse.mk:72:
toolkit/library/build/target] Error 2
gmake[3]: Leaving directory '/wrkdirs/usr/ports/www/firefox/work/.build'
gmake[2]: ***
[/wrkdirs/usr/ports/www/firefox/work/firefox-110.0/config/recurse.mk:34:
compile] Error 2
gmake[2]: Leaving directory '/wrkdirs/usr/ports/www/firefox/work/.build'
gmake[1]: ***
[/wrkdirs/usr/ports/www/firefox/work/firefox-110.0/config/rules.mk:361: all]
Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/www/firefox/work/.build'
*** Error code 1

Stop.
make: stopped in /usr/ports/www/firefox
=3D>> Cleaning up wrkdir
=3D=3D=3D>  Cleaning for firefox-110.0_3,2
build of www/firefox | firefox-110.0_3,2 ended at Sun Feb 19 11:29:09 EST 2=
023
build time: 02:42:09
!!! build failure encountered !!!

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269664-21738-biLEQpCGaC>