From nobody Thu Aug 1 00:04:45 2024 X-Original-To: gecko@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WZ8NF2vzDz5RcYY for ; Thu, 01 Aug 2024 00:04:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WZ8NF1dX0z506r for ; Thu, 1 Aug 2024 00:04:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722470685; a=rsa-sha256; cv=none; b=w8Y3DcOBkufSfcys/WtfnO1mzKABmCi3OAevdSpWxvy9/grB4EbJ7z+7Hgdl2f3JUw9pgk TBZ22j3AQQlBX6Z6o9fv7nIBqF3Ac13zKLpff/Hd0U4/ziHNf0CBamEh7p4/n/tCvlgHR2 NgWyqf5ltmFNgWbME/NrLvuUgE4W5/rtdaTXOe1GBdqNQkk+HAqzgfjnyOvaYQjINdfxj8 /j1mzfoWb/3+dUevmv64eMJhzUqFPhvxn0ZWnNXD2vYrJ7DoA3MqWcGbz3IQMz1O34AX2A KtNz8yPKt1zQBaZXaDa6GM9TVdHKr6FasHS2A3j6T5jeov5uz5dvuF7+AywoIQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722470685; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GbUmeAZkFB5Y8Y/5phRS+ixVpuRpVX7mw6FJkdaZ1yQ=; b=rBJgIuLbLy+R4HGHCUqN3PAJmGW9qkqDwWs1+8fXag9oGH77uYWIY/i0WahIQtENtcBIbV vC8NX1J5hHjpmeUguW8RP2B07MwIA0ztM2Kfe+SssuEDd7yWPV9u97kH3L/OtEeHWKGm0O NUHxWGOvnOF3yOBrSJ+SkmkDCkC1YmnY2VI5irg2PIaYa/HWW6YraYeFvfXFpLmFoYy1Oz 0cD6ZGJ6KYXBWkyrLzwDiwwwDambJiHnjs/Kfo6ZgajtYcIw9IzDosSSTwGMQuBjF+bOzv 47xGzl9xo7G/AKdgOg4MYzNf/Ng8C4PzdQHcxxYhc02z7/A9mt+eTsM88eyyTw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WZ8NF19pCzMXc for ; Thu, 1 Aug 2024 00:04:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 47104jhV072887 for ; Thu, 1 Aug 2024 00:04:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 47104jVS072886 for gecko@FreeBSD.org; Thu, 1 Aug 2024 00:04:45 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: gecko@FreeBSD.org Subject: [Bug 268328] www/firefox fails to build with LTO enabled Date: Thu, 01 Aug 2024 00:04:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: vishwin@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Gecko Rendering Engine issues List-Archive: https://lists.freebsd.org/archives/freebsd-gecko List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-gecko@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268328 robbak@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |robbak@gmail.com --- Comment #8 from robbak@gmail.com --- (In reply to Nuno Teixeira from comment #7) I'm experiencing it, The error is happens fairly far back, and looks like t= his: security/manager/ssl/builtins/dynamic-library/libnssckbi.so rm -f ../../../../../dist/bin/libnssckbi.so /usr/local/bin/clang17 -std=3Dgnu99 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3D2 -fstack-protector-strong -fstack-clash-protection -DLIBICONV_PLUG -isystem /usr/local/include -pthread -ffunction-sections -fdata-sections -fno-math-e= rrno -fPIC -O2 -pipe -march=3Dcore2 -O3 -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -O2 -O3 -fomit-frame-point= er -funwind-tables -shared -Wl,-z,defs -Wl,--warn-unresolved-symbols -Wl,--gc-sections -Wl,-h,libnssckbi.so -o ../../../../../dist/bin/libnssckb= i.so stub.o -flto=3Dthin -Wl,-plugin-opt=3D-import-instr-limit=3D10 -Wl,-plugin-opt=3D-import-hot-multiplier=3D30 -Wl,--as-needed -Wl,--undefined-version -fstack-protector-strong -fuse-ld=3Dlld -Wl,--icf= =3Dsafe -Wl,--build-id=3Dsha1 -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,now -Wl,-z,nocopyreloc -fstack-protector-strong -fstack-clash-protection -Wl,-rpath-link,/usr/home/obj/ports/usr/ports/www/firefox/work/.build/dist/= bin -O2 -O3 ../../../../../x86_64-unknown-freebsd/release/libbuiltins_static.a= =20 -Wl,--version-script,libnssckbi.so.symbols -ldl ld.lld: error: ../../../../../x86_64-unknown-freebsd/release/libbuiltins_static.a(builtins= _static-3fc9a9f4a8be076d.builtins_static.91ec9682c27a3d0c-cgu.0.rcgu.o): Unknown attribute kind (91) (Producer: 'LLVM18.1.7-rust-1.79.0-stable' Read= er: 'LLVM 17.0.6') clang: error: linker command failed with exit code 1 (use -v to see invocat= ion) gmake[3]: *** [/usr/home/obj/ports/usr/ports/www/firefox/work/firefox-129.0/config/rules.= mk:539: ../../../../../dist/bin/libnssckbi.so] Error 1 gmake[3]: Leaving directory '/usr/home/obj/ports/usr/ports/www/firefox/work/.build/security/manager/ssl= /builtins/dynamic-library' gmake[2]: *** [/usr/home/obj/ports/usr/ports/www/firefox/work/firefox-129.0/config/recurs= e.mk:72: security/manager/ssl/builtins/dynamic-library/target] Error 2 gmake[2]: *** Waiting for unfinished jobs.... I'll turn off LTO and build again. --- Comment #9 from Charlie Li --- (In reply to robbak from comment #8) You must use the same LLVM version (from ports) building the C/C++ bits as = the LLVM in Rust. Right now you are indicating a version mismatch: port LLVM 17= and Rust LLVM 18. --=20 You are receiving this mail because: You are the assignee for the bug.=