[Bug 294613] www/firefox: build failed Unknown attribute kind (102) (Producer: 'LLVM21.1.8-rust-1.94.0-stable' Reader: 'LLVM 19.1.7')

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 18 Apr 2026 10:49:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294613

            Bug ID: 294613
           Summary: www/firefox: build failed Unknown attribute kind (102)
                    (Producer: 'LLVM21.1.8-rust-1.94.0-stable' Reader:
                    'LLVM 19.1.7')
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: gecko@FreeBSD.org
          Reporter: freebsd@sysctl.cz
             Flags: maintainer-feedback?(gecko@FreeBSD.org)
          Assignee: gecko@FreeBSD.org

Hi,
I have an issue in build firefox with enabled LTO. I built in
/usr/ports/www/firefox tree. FreeBSD 15.0 amd64.

/usr/local/bin/clang++19 -std=gnu++20 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
-fstack-protector-strong -fstack-clash-protection -fstrict-flex-arrays=1
-DLIBICONV_PLUG -isystem /usr/local/include -fno-rtti -pthread
-fno-sized-deallocation -fno-aligned-new -ffunction-sections -fdata-sections
-fno-math-errno -fno-exceptions -fPIC -O2 -pipe -O3 -DLIBICONV_PLUG
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing
-DLIBICONV_PLUG -isystem /usr/local/include -O2 -O3 -fno-omit-frame-pointer
-funwind-tables -shared -Wl,-z,defs -Wl,--warn-unresolved-symbols
-Wl,--gc-sections -Wl,-h,libxul.so -o ../../../dist/bin/libxul.so
-Wl,@/usr/ports/www/firefox/work/.build/toolkit/library/build/libxul_so.list  
-flto=thin -Wl,-plugin-opt=-import-instr-limit=10
-Wl,-plugin-opt=-import-hot-multiplier=30 -Wl,--as-needed
-Wl,--undefined-version -Wl,--icf=safe -Wl,--build-id=sha1 -Wl,-z,noexecstack
-Wl,-z,text -Wl,-z,relro -Wl,-z,now -Wl,-z,nocopyreloc -fuse-ld=lld
-fstack-protector-strong -fstack-clash-protection
-Wl,-rpath-link,/usr/ports/www/firefox/work/.build/dist/bin -O2 -O3 
../../../js/src/build/libjs_static.a
../../../build/pure_virtual/libpure_virtual.a
../../../x86_64-unknown-freebsd/release/libgkrust.a
../../../dist/bin/libgkcodecs.so ../../../dist/bin/liblgpllibs.so
../../../dist/bin/libmozsqlite3.so ../../../dist/bin/libmozgtk.so
../../../dist/bin/libmozwayland.so -Wl,--version-script,libxul.so.symbols  -ldl
-lX11 -lXcomposite -lXdamage -lXext -lXfixes -lXrandr -lXrender -lpthread
-L/usr/local/lib -lffi -lplds4 -lplc4 -lnspr4 -pthread -L/lib -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 -ljpeg
-lpng16 -lwebpdemux -lwebp -lgraphite2 -levent -lvpx -lpixman-1
-L/usr/local/libdata/pkgconfig/../../lib -ldbus-1 -lxcb-shm -lX11-xcb -lXcursor
-lXi -lxcb
ld.lld: error:
../../../x86_64-unknown-freebsd/release/libgkrust.a(gkrust_shared-958495f7b6eb7fa4.gkrust_shared.d99c7b3c2e54b485-cgu.0.rcgu.o):
Unknown attribute kind (102) (Producer: 'LLVM21.1.8-rust-1.94.0-stable' Reader:
'LLVM 19.1.7')
clang++: error: linker command failed with exit code 1 (use -v to see
invocation)
gmake[3]: *** [/usr/ports/www/firefox/work/firefox-149.0.2/config/rules.mk:533:
../../../dist/bin/libxul.so] Error 1
gmake[3]: Leaving directory
'/usr/ports/www/firefox/work/.build/toolkit/library/bu

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