From nobody Mon Dec 12 11:26:47 2022 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 4NVzqD49nBz4kBTy for ; Mon, 12 Dec 2022 11:26:48 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NVzqC4hTwz43J4 for ; Mon, 12 Dec 2022 11:26:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670844407; 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=H3SKlMXVRolY26u0xfJARQPK+vdIv/GkJLODlSJwTB8=; b=tPH5O7OVnhutX8Fh3NeD/czXlrXUnvRGVTqBM1vGZxJEdUYB0aiQzSDRaEKn7+wtJkHjCX 0zSg+Vr2q6PxRx57lgws529BQEEbYCniXvUVCwb8ydy6XLHrE6dhVcyK5+JCuG0XFhj+TZ 3LE/6EdC9VtGZRlR8FyXetxvum/Ww2uvVQhzJ5iqQ3cWUddw2WqOmQ2nSfyAHKxn0V9f3p 1JbfzPzXET7q41JN2jVtWHttdN14MVbwZKNsZBEWLLNlzo2JOBli1Vzw23/iyCGWBBOtMj Ke3VUuBpLgnswvSqrqM/bB2plVR9Ng/UGuFXZBJT10okt7jBSCrwN92ng6BLIA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670844407; a=rsa-sha256; cv=none; b=P1xCs3XPhBjRK70aX7m35EeZm68oA6W7mYnmt3wtoQE1j2AHEKLuV0cNhF5Yg46M4wqyN5 jvRwQsAlg8IexZBA3nWmDMlwC8mHz+KiRBBGx7scPK57RIGblNA2dUx9LA77515UTcwknR uB2K5eClYch4uWDflxnM+QCIvZAiawtv0H3QmLcv4PDgRmYzTDZHW8dOAR7H+03ZEHu4Ia tYYvvKzajVoHGR20EYbXObd4NBeKBghkmJylBNTMaSsC39EhJABbg8PP3k9/3FMT9i3I7Z /E2a0EFQ+OLrA9A/vwsUDLFmbZZmjW95Iyq76eXeyLkV4sxRWF4ExcMFcDVFuw== 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 4NVzqC3TJLzXbZ for ; Mon, 12 Dec 2022 11:26:47 +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 2BCBQlPX018053 for ; Mon, 12 Dec 2022 11:26:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2BCBQlNQ018052 for gecko@FreeBSD.org; Mon, 12 Dec 2022 11:26:47 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: gecko@FreeBSD.org Subject: maintainer-feedback requested: [Bug 268328] www/firefox fails to build with LTO enabled Date: Mon, 12 Dec 2022 11:26:47 +0000 X-Bugzilla-Type: request 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: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: 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 X-ThisMailContainsUnwantedMimeParts: N Bugzilla Automation has asked freebsd-gecko (Nobody) for maintainer-feedback: Bug 268328: www/firefox fails to build with LTO enabled https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268328 --- Description --- On FreeBSD/amd64 13.1-RELEASE-p5, when I built www/firefox with LTO option enabled (because I built it for updating before ports tree fc0a979a30ea24c8d28d8a3893bb5ac0549e56cb , which was enabled by default), it failed with: ... /usr/local/bin/clang13 -Qunused-arguments -std=3Dgnu99 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3D2 -fstack-protector-strong -fstack-clash-protection -DLIBICONV_PLUG -isystem /usr/local/include -O2 -pipe -O3 -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -= fPIC -ffunction-sections -fdata-sections -fno-math-errno -pipe -O2 -O3 -fomit-frame-pointer -funwind-tables -shared -Wl,-z,defs -Wl,--warn-unresolved-symbols -Wl,--gc-sections -Wl,-h,libnssckbi.so -o libnssckbi.so stub.o -flto=3Dthin -Wl,-plugin-opt=3D-import-instr-limit=3D= 10 -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,/opt/ports/usr/ports/www/firefox/work/.build/dist/bin -Wl,-rpath-link,/usr/local/lib=20 /opt/ports/usr/ports/www/firefox/work/.build/x86_64-unknown-freebsd/release= /lib builtins_static.a -Wl,--version-script,libnssckbi.so.symbols -L/usr/local/lib ld: error: /opt/ports/usr/ports/www/firefox/work/.build/x86_64-unknown-freebsd/release= /lib builtins_static.a(builtins_static-e6f7a98e90c6be5b.1da5sob8z9irceuj.rcgu.o): Unknown attribute kind (82) (Producer: 'LLVM15.0.0-rust-1.65.0-stable' Read= er: 'LLVM 13.0.1') clang-13: error: linker command failed with exit code 1 (use -v to see invocation) It seems it was caused by llvm version missmatch between objects produced by Rust and clang13.=20 And why clang13 is used is the description below in Mk/bsd.gecko.mk. [[[ # if !defined(DEFAULT_VERSIONS) || ! ${DEFAULT_VERSIONS:Mllvm*} || ${PORT_OPT IONS:MLTO} LLVM_DEFAULT=3D 13 # chase bundled LLVM in lang/rust for LTO LLVM_VERSION=3D 13.0.1 # keep in sync with devel/wasi-compiler-rt${LLVM_DEFAULT} # endif ]]] actually after I run 'make config' to unset LTO option, the port was built successfuly.