LLVM error when building www/firefox 107.0_2,2
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 19 Nov 2022 13:10:15 UTC
hello, while building www/firefox with poudriere, following error occurred. Should I report it to LLVM project as the error message says? Or is this just a bug in firefox or the combination of options I chose? The system is: FreeBSD 13.1-STABLE #7 stable/13-af3ccd7b6d: Thu Nov 10 08:00:43 JST 2022 and the llvm suite is LLVM 13.0.1 from ports. /usr/local/bin/clang++13 -std=gnu++17 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fst ack-protector-strong -fstack-clash-protection -Qunused-arguments -DLIBICONV_PLUG -isystem /usr/local/include -Qunused-arguments -Wall -Wbitfield-enum-conversion -Wdeprecated-this-capture -Wempty-body -Wformat-type-confusion -Wignored-qualif iers -Wpointer-arith -Wshadow-field-in-constructor-modified -Wsign-compare -Wtyp e-limits -Wno-error=tautological-type-limit-compare -Wunreachable-code -Wunreach able-code-return -Wunused-but-set-parameter -Wno-invalid-offsetof -Wclass-vararg s -Wempty-init-stmt -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wloop-a nalysis -Wno-range-loop-analysis -Wc++2a-compat -Wenum-compare-conditional -Wno- ambiguous-reversed-operator -Wno-error=deprecated -Wno-error=deprecated-anon-enu m-enum-conversion -Wno-error=deprecated-enum-enum-conversion -Wno-error=deprecat ed-enum-float-conversion -Wno-error=deprecated-this-capture -Wno-error=deprecate d-volatile -Wcomma -Wimplicit-fallthrough -Wstring-conversion -Wno-inline-new-de lete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free- nonheap-object -Wno-error=atomic-alignment -Wformat -Wformat-security -Wno-psabi -Wthread-safety -Wno-unknown-warning-option -fno-sized-deallocation -fno-aligne d-new -O2 -pipe -O3 -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local /include -fno-strict-aliasing -DLIBICONV_PLUG -isystem /usr/local/include -fno-e xceptions -fPIC -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -f no-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 lib xul.so /wrkdirs/usr/ports/www/firefox/work/.build/toolkit/library/build/libxul_s o.list -flto=thin -Wl,-plugin-opt=-import-instr-limit=10 -Wl,-plugin-opt=-impor t-hot-multiplier=30 -pthread -Wl,--as-needed -fstack-protector-strong -Wl,-z,noe xecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions -W l,--build-id=sha1 -fstack-protector-strong -fstack-clash-protection -Wl,-rpath-l ink,/wrkdirs/usr/ports/www/firefox/work/.build/dist/bin -Wl,-rpath-link,/usr/loc al/lib ../../../js/src/build/libjs_static.a /wrkdirs/usr/ports/www/firefox/work /.build/x86_64-unknown-freebsd/release/libgkrust.a ../../../config/external/lgpl libs/liblgpllibs.so ../../../config/external/sqlite/libmozsqlite3.so ../../../wi dget/gtk/mozgtk/libmozgtk.so ../../../widget/gtk/mozwayland/libmozwayland.so - L/usr/local/lib -licui18n -L/usr/local/lib -licuuc -licudata -laom -ldav1d -lX11 -lXcomposite -lXdamage -lXext -lXfixes -lXrandr -lXrender -lXtst -lpthread -lff i -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 -lgl ib-2.0 -lintl -lutil -lpng16 -lwebpdemux -lwebp -lgraphite2 -levent -lvpx -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 -Bshareable --hash-style=both --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=mcpu=x86-64 -plugin-opt=O3 -plugin-opt=thinlto -plugin-opt=-function-sections -plugin-opt=-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=-import-instr-limit=10 -plugin-opt=-import-hot-multiplier=30 --as-needed -z noexecstack -z text -z relro -z nocopyreloc -Bsymbolic-functions --build-id=sha1 -rpath-link /wrkdirs/usr/ports/www/firefox/work/.build/dist/bin -rpath-link /usr/local/lib ../../../js/src/build/libjs_static.a /wrkdirs/usr/ports/www/firefox/work/.build/x86_64-unknown-freebsd/release/libgkrust.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 -lXrender -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 -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 0x00000008263c40c9 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/local/llvm13/lib/libLLVM-13.so+0x2bc40c9) #1 0x00000008263c2375 llvm::sys::RunSignalHandlers() (/usr/local/llvm13/lib/libLLVM-13.so+0x2bc2375) #2 0x00000008263c48a1 (/usr/local/llvm13/lib/libLLVM-13.so+0x2bc48a1) #3 0x00000008224aebc0 handle_signal /usr/local/poudriere/jails/s13amd64/usr/src/lib/libthr/thread/thr_sig.c:0:3 #4 0x00000008224ae17f thr_sighandler /usr/local/poudriere/jails/s13amd64/usr/src/lib/libthr/thread/thr_sig.c:247:1 #5 0x00007ffffffff2d3 ([vdso]+0x2d3) #6 0x000000082b142c7a __sys_thr_kill /usr/obj/usr/local/poudriere/jails/s13amd64/usr/src/amd64.amd64/lib/libc/thr_kill.S:4:0 #7 0x000000082b0bbde4 __raise /usr/local/poudriere/jails/s13amd64/usr/src/lib/libc/gen/raise.c:0:10 #8 0x000000082b16cac9 abort /usr/local/poudriere/jails/s13amd64/usr/src/lib/libc/stdlib/abort.c:73:17 #9 0x0000000826306c9d (/usr/local/llvm13/lib/libLLVM-13.so+0x2b06c9d) #10 0x0000000826306ad9 (/usr/local/llvm13/lib/libLLVM-13.so+0x2b06ad9) #11 0x0000000826d1d28e (/usr/local/llvm13/lib/libLLVM-13.so+0x351d28e) #12 0x0000000826cf940e (/usr/local/llvm13/lib/libLLVM-13.so+0x34f940e) #13 0x0000000826d01536 (/usr/local/llvm13/lib/libLLVM-13.so+0x3501536) #14 0x0000000826cea4a3 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+0x34ea4a3) #15 0x0000000826ceab74 llvm::BitcodeModule::getLazyModule(llvm::LLVMContext&, bool, bool) (/usr/local/llvm13/lib/libLLVM-13.so+0x34eab74) #16 0x0000000827850af9 (/usr/local/llvm13/lib/libLLVM-13.so+0x4050af9) #17 0x0000000827850847 llvm::irsymtab::readBitcode(llvm::BitcodeFileContents const&) (/usr/local/llvm13/lib/libLLVM-13.so+0x4050847) #18 0x000000082784e0bb llvm::object::readIRSymtab(llvm::MemoryBufferRef) (/usr/local/llvm13/lib/libLLVM-13.so+0x404e0bb) #19 0x00000008276e3e77 llvm::lto::InputFile::create(llvm::MemoryBufferRef) (/usr/local/llvm13/lib/libLLVM-13.so+0x3ee3e77) #20 0x0000000000494857 lld::elf::BitcodeFile::BitcodeFile(llvm::MemoryBufferRef, llvm::StringRef, unsigned long) (/usr/local/llvm13/bin/ld+0x494857) #21 0x0000000000495770 lld::elf::BitcodeFile* lld::make<lld::elf::BitcodeFile, llvm::MemoryBufferRef&, llvm::StringRef&, unsigned long&>(llvm::MemoryBufferRef&, llvm::StringRef&, unsigned long&) (/usr/local/llvm13/bin/ld+0x495770) #22 0x0000000000493336 lld::elf::createObjectFile(llvm::MemoryBufferRef, llvm::StringRef, unsigned long) (/usr/local/llvm13/bin/ld+0x493336) #23 0x00000000004930ba lld::elf::ArchiveFile::fetch(llvm::object::Archive::Symbol const&) (/usr/local/llvm13/bin/ld+0x4930ba) #24 0x0000000000558a75 lld::elf::SymbolTable::addSymbol(lld::elf::Symbol const&) (/usr/local/llvm13/bin/ld+0x558a75) #25 0x0000000000492d8d lld::elf::ArchiveFile::parse() (/usr/local/llvm13/bin/ld+0x492d8d) #26 0x0000000000490d44 lld::elf::parseFile(lld::elf::InputFile*) (/usr/local/llvm13/bin/ld+0x490d44) #27 0x00000000004647ee void lld::elf::LinkerDriver::link<llvm::object::ELFType<(llvm::support::endianness)1, true> >(llvm::opt::InputArgList&) (/usr/local/llvm13/bin/ld+0x4647ee) #28 0x00000000004599ec lld::elf::LinkerDriver::linkerMain(llvm::ArrayRef<char const*>) (/usr/local/llvm13/bin/ld+0x4599ec) #29 0x0000000000457b17 lld::elf::link(llvm::ArrayRef<char const*>, bool, llvm::raw_ostream&, llvm::raw_ostream&) (/usr/local/llvm13/bin/ld+0x457b17) #30 0x00000000003a3dbf (/usr/local/llvm13/bin/ld+0x3a3dbf) clang-13: error: unable to execute command: Abort trap (core dumped) clang-13: error: linker command failed due to signal (use -v to see invocation)