From nobody Tue May 23 05:56:50 2023 X-Original-To: desktop@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 4QQNqk62pzz4T5h5 for ; Tue, 23 May 2023 05:56:50 +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 4QQNqk3vjSz416b for ; Tue, 23 May 2023 05:56:50 +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=1684821410; 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=n/DgwAMtApfXSh0hqCeWlqb9wijLllE1Mah/4eCSlJ4=; b=D/+UIT/QZvaELwA5mcA6sdQTV7FYm0lFuIvm0kgFmuHXUR1t2Fsvv1IDpTu8JEwruu9vHe nq0tDaeuHneAuM36f+fZ7Z8ZZqUrQKvIdXwD3ibGgx25+t1ZX1TaM8d132/ZLhV5fTdnS4 QhBo6LrlECuhktxTUfab9T9lPAuQ2V780kxtc4xg12qnBEncl7CQYKd2bnQCRq348astQp t/Ta7tOA0VDi3LB8wIsp/6vnq7ls9sz5UX+y6hlHmRsgLmEPA2Z2FcawGYTRz8he6ZBpRL c/PXiqHiGJf7daLML+h2VWdHnmQaPmddAa+GcTUp3b3QfgaLLgfz/MJ5f5ddxA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684821410; a=rsa-sha256; cv=none; b=IBUSiCsofcdESOo1VwXpwTdKk7b/TI1mUSxMp/mfzTSx03AL/QG2XPqcwCHStclkxkCxPF y+wsTRk4C1eGjKy5TWtz8i9DB6vs191cXsPTYz9OginSs8j24K+A6KtLD6I0uyavSeu77s Eo61BVUKuwfN0ToFpNFR/j+fKt+UPjasm4bVlZ6jfk3yKF98+O9XbA6M6/yM0DfyD5mZtu mufGlJewlnmkaYVNpDy3jfE37DpX9rwqJUvlpfZRjLhESUmItwiB3lQNL0xi0dswaDaJv+ SexdPNl3cdSw4Ngcc5eRVWUtJg0Kg4wdrCLfv84LZSoWy/GN7JfLF1p6BHdqZw== 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 4QQNqk2zkGzpJj for ; Tue, 23 May 2023 05:56:50 +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 34N5uoxV030569 for ; Tue, 23 May 2023 05:56:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34N5uoeN030568 for desktop@FreeBSD.org; Tue, 23 May 2023 05:56:50 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: desktop@FreeBSD.org Subject: [Bug 270421] graphics/librsvg2-rust: 2.56.0 Fails to compile because of LLVM version mismatch Date: Tue, 23 May 2023 05:56:50 +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: throwaway_vthgwq4@protonmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: desktop@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: Using and improving FreeBSD on the desktop List-Archive: https://lists.freebsd.org/archives/freebsd-desktop List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-desktop@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270421 throwaway_vthgwq4@protonmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |throwaway_vthgwq4@protonmai | |l.com --- Comment #4 from throwaway_vthgwq4@protonmail.com --- I have similar here with -CURRENT (base LLVM 15) and Rust using LLVM 16: [...] cargo --locked build --verbose --release --bin rsvg-convert libtool: link: /usr/bin/nm -B ./.libs/librsvg_c_api.a | /usr/bin/sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za- z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | /usr/bin/sed '/ __gnu_lto/d' | /usr/bin/sed 's/.* //' | sort | uniq > .libs/librsvg-2.exp /usr/bin/nm: error: ./.libs/librsvg_c_api.a(rsvg-6aae7815bd5a5a95.rsvg.f7c38f4e-cgu.0.rcgu.o): Unknown attribute kind (86) (Producer: 'LLVM16.0.3' Reader: 'LLVM 15.0.7') [...] /usr/bin/nm is detected in configure script: [...] checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm [...] To avoid Rust LLVM and nm version match, try (adjust 16 for Rust LLVM versi= on in use): diff --git a/graphics/librsvg2-rust/Makefile b/graphics/librsvg2-rust/Makef= ile --- a/graphics/librsvg2-rust/Makefile +++ b/graphics/librsvg2-rust/Makefile @@ -13,7 +13,8 @@ WWW=3D https://live.gnome.org/LibRsvg LICENSE=3D LGPL20 -BUILD_DEPENDS=3D rst2man:textproc/py-docutils +BUILD_DEPENDS=3D rst2man:textproc/py-docutils \ + llvm-nm16:devel/llvm16 LIB_DEPENDS=3D libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 \ libharfbuzz.so:print/harfbuzz \ @@ -30,7 +31,7 @@ CONFIGURE_ARGS=3D --disable-Bsymbolic \ --disable-dependency-tracking \ --disable-static \ --enable-vala -CONFIGURE_ENV=3D ${CARGO_ENV} +CONFIGURE_ENV=3D ${CARGO_ENV} NM=3D/usr/local/bin/llvm-nm16 MAKE_ENV=3D ${CARGO_ENV} CARGO_ENV=3D RUST_TARGET=3D${CARGO_BUILD_TARGET} CARGO_BUILD=3D no Alternatively, investigate if parts of librsvg2-rust invoking cargo directly (rg 'CARGO_RELEASE_ARGS' in WRKDIR) could opt-out either from LTO (maybe ThinLTO is partly used, and switching to fat LTO would help) or build. --=20 You are receiving this mail because: You are the assignee for the bug.=