From nobody Thu Mar 21 01:01:35 2024 X-Original-To: freebsd-ports@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 4V0RxH04TTz5FNhS for ; Thu, 21 Mar 2024 01:01:39 +0000 (UTC) (envelope-from agh@riseup.net) Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) (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 (2048 bits) client-digest SHA256) (Client CN "mx1.riseup.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V0RxG2Bvwz428m for ; Thu, 21 Mar 2024 01:01:38 +0000 (UTC) (envelope-from agh@riseup.net) Authentication-Results: mx1.freebsd.org; none Received: from fews01-sea.riseup.net (fews01-sea-pn.riseup.net [10.0.1.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4V0RxD2XnqzDqZN; Thu, 21 Mar 2024 01:01:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1710982896; bh=Tl1q11kPSQ+7kLDvbht6w8WPdyDKv1H+ZXn0RWVBsxY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=EX1nXk+emueKf0WPlt20fvu4j3Lx38Mnyb3unkdtJpnoqT1Mpx8g2CZ1L96CnLJfL RE6tn37/PEnb0PaUxwJpGq61BpPyJPaIQxdNNugp7JGjcaUld3VOYpiJyC41ZafMtj 45mi6ijjolfyj4RXsjwSmWnQbZ/5p/JGCpCfsDY0= X-Riseup-User-ID: 49320E4346A02D2CD1CB727C513413220C1D3E74BD247C55E1FB42F5212758E1 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews01-sea.riseup.net (Postfix) with ESMTPSA id 4V0RxD16wdzJrSm; Thu, 21 Mar 2024 01:01:36 +0000 (UTC) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Date: Thu, 21 Mar 2024 01:01:35 +0000 From: Alastair Hogge To: Jussi Korkala Cc: Freebsd Ports Subject: Re: [277823 ] devel/matreshka: Build fails in package phase In-Reply-To: <2355B4B6-C24B-4255-BEDF-892D1BDA92D4@icloud.com> References: <275d8c987d63c42682e3cff27cddb754@riseup.net> <2355B4B6-C24B-4255-BEDF-892D1BDA92D4@icloud.com> Message-ID: <4978909444ff8358adcc073329df19bc@riseup.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16652, ipnet:198.252.153.0/24, country:US] X-Rspamd-Queue-Id: 4V0RxG2Bvwz428m On 2024-03-21 07:35, Jussi Korkala wrote: Hi, > Is the compiler intentionally padded with crap like GCC? I do not know what you mean, so I made some guesses, and maybe below will help or not. ${MAKE_ENV} is populated with: CC="gcc13" CFLAGS="-O2 -pipe -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -fno-strict-aliasing " CPP="cpp13" CPPFLAGS="" LDFLAGS=" -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -L/usr/local/lib/gcc13 " LIBS="" CXX="g++13" CXXFLAGS="-O2 -pipe -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -Wl,-rpath=/usr/local/lib/gcc13 " Deeper into the build, where Ada's GRRBuild directs the compilation, ${PATH} contains: /usr/local/gnat12 And a number of other gnat12 prefixes. The compiler is eventually invoked: /usr/local/gnat12/bin/gcc -c -x ada [...] grep'ing ${build.log} for GCC returns 0. Thanks > Best regards, > Jussi Korkala > >> On 21. Mar 2024, at 1.25, Alastair Hogge wrote: >> >> Hello, >> >> Regarding the mentioned Port, and Problem Report[1], Matreshka currently >> installs shared libraries with the compiler version hard-coded in the >> filename, example: >> >> lib/matreshka/xml/libmatreshka-xml-12.2.so.20.0 >> >> The 12.2 in the above corresponds to the Free Software Foundation's Ada >> compiler, GNAT-12. Currently I am testing the following addition to the >> Makefile: >> >>> PLIST_SUB=GNAT_VERSION= ${_GNAT_VERSION} >>> [...] >>> _GNAT_VERSION= 12.3 >> >> And have made the required changes to the pkg-plist, that is, replacing >> all occurences of "12.2" with %%GNAT_VERSION%%, however, I am left >> wondering if there is another way to obtain the version of GCC used, >> instead of volunteers hard coding the version manually in the Makefile, >> every time the tool chain is updated... >> >> Summary: >> How can I get the version number of the tool chain used to compile a >> Port? >> >> 1: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277823 >> >> Thanks, >> Alastair >>