From nobody Tue Oct 05 06:03:13 2021 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 E5CAF12DE999 for ; Tue, 5 Oct 2021 06:03:13 +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 4HNn7j5h7sz3lpP for ; Tue, 5 Oct 2021 06:03:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 A45B226E5C for ; Tue, 5 Oct 2021 06:03:13 +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 19563DZ3028496 for ; Tue, 5 Oct 2021 06:03:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 19563D15028495 for ports-bugs@FreeBSD.org; Tue, 5 Oct 2021 06:03:13 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 258820] Multiple ports fail to build with USE_LTO: libffi.a strip: file format not recognized (propose: disable building static library) Date: Tue, 05 Oct 2021 06:03:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: koobs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? maintainer-feedback? X-Bugzilla-Changed-Fields: see_also cc flagtypes.name 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: 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=3D258820 Kubilay Kocak changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://github.com/InBetwee | |nNames/gentooLTO/issues/49 CC| |dim@FreeBSD.org, | |emaste@freebsd.org Flags| |maintainer-feedback?(emaste | |@freebsd.org), | |maintainer-feedback?(dim@Fr | |eeBSD.org) --- Comment #8 from Kubilay Kocak --- (In reply to Daniel Engberg from comment #7) Separating packages is orthogonal to addressing the root problem, sweeping = the issue/question to a -static subpackage/flavor build. The root issue appears to be elftoolchain strip not understanding LLVM IR f= rom LTO builds in or for static libraries. It may turn out that strip tools 'shouldnt' need to support stripping LTO-d static libraries, but I haven't found evidence that this is the case. So far I've additionally tried: - llvm-strip / llvm-objcopy --strip-debug (14.0-CURRENT #2 main-n249859-248682a5891) error: '/var/tmp/tmpfs0/usr/ports/devel/libuv/work/stage/usr/local/lib/libuv.a(lib= uv_la-fs-poll.o)': The file was not recognized as a valid object file - binutils: strip*:=20 Unable to recognise the format of file: file format not recognized (Note: this error is not fatal.) - Notable also, llvm-nm reports no errors on the same file. I've been hunting authoritative upstream (llvm) references for bug reports = or commits that hint at this issue, or how one should handle it, but haven't q= uite identified anything precisely on target. Feedback from Ed (for elftoolchain), and Dim (for LLVM) would be great for leads here. The ideal outcome here is the ability to strip debug symbols from static libraries built with LTO(thin), and ideally with the toolchain FreeBSD expe= cts to have in the long-term (llvm's). If that turns out to require some tweaks to upstream LLVM/Clang tools, then= we may be able to separately port llvm-strip (with the fixes) until all suppor= ted LLVM/Clang releases in base contain the appropriately fixed versions. Alternatively, have elftoolchain's strip support it in the short term, and = have that in ports, if its not there already. Failing that, and down the list of desired partial resolutions, we could us= e a STRIP_MASK style setup for the strip framework mechanism, that supports excluding static libraries. Gentoo did this in the past when GNU strip was mangling static libraries [1] and its probably useful for us for other reas= ons too. [1] https://github.com/InBetweenNames/gentooLTO/issues/49 --=20 You are receiving this mail because: You are on the CC list for the bug.=