From nobody Mon Dec 12 11:26:47 2022 X-Original-To: ports-bugs@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 4NVzqD493zz4kBWc 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 4NVzqC6Hs6z43J5 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; bh=pS785jPZIMfsT5gXKEYxZcMjrFdoUZib0hjYcd/RNrU=; b=RwOWFvajV14DR+1Qe/P4VKQU2WX7dmROClwrttW4BWMXfZtpcW0wCV8kjjSdUDoax24fyg uicpzBUOg7F3ipXHpKLgugCf8Si6u5AzbWWzg2bEI7CKNVy7tYR5am9cPWrrLpuN2upxZY QA6neiblBxXkxhFg+P3JLmysDXEH4lOXXuB6xj0uJETcEt89s9U0MyQqRSxbqvJznhY/DL eTfMAlzp5d5IQsKRZe/ClEvIYRetov0L1+Nyh+NveY2yMviitN4eMyt+XFRut8feNvIsNv CkGhoqt7aEXsqX3zQVhjlaJtAcRmu/iYqy1Nt9aYdjVMhvScjdGtHIB/9N969A== 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=FXLA/FOZz4HQDxSUVYTz1M2tZyLRhN/NpB0Ri3SE7T4M6VSGkODxEyqF/dkoOxSqNBN3Yt XbQPGhlNDpFIyqW/xXAy9L8Fc/eCpGrnalMZVVBOBGVxmddjfc4FcDa69U8C8GtYwSjeZ7 TPdYYn0dyYW9GcXEvftKCT5g7SITBQqLe2izjqO2Yk9XaRHNUd8PU2vBX3tWpI+Y9NsT7N G7n2jJPVAqctbVOlN3CsVToJYzH6JDz0lxTOFXSDLE7/pvENc7tEm0noAd/Tx97387Nyf3 MFvaDUlIwuYifW1jDl5Ur17pdjGIyb2gGA7p2vqtEp9vfdPbfuWg01IWXqxH2Q== 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 4NVzqC5HQgzXbc 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 2BCBQlQZ018062 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 2BCBQlUi018061 for ports-bugs@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 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 268328] www/firefox fails to build with LTO enabled Date: Mon, 12 Dec 2022 11:26:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: freebsd-bug-report-yf@yf.bsdclub.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268328 Bug ID: 268328 Summary: www/firefox fails to build with LTO enabled Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: gecko@FreeBSD.org Reporter: freebsd-bug-report-yf@yf.bsdclub.org Assignee: gecko@FreeBSD.org Flags: maintainer-feedback?(gecko@FreeBSD.org) 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= /libbuiltins_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= /libbuiltins_static.a(builtins_static-e6f7a98e90c6be5b.1da5sob8z9irceuj.rcg= u.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. --=20 You are receiving this mail because: You are the assignee for the bug.=