Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Mar 2024 01:01:35 +0000
From:      Alastair Hogge <agh@riseup.net>
To:        Jussi Korkala <jussi.korkala@icloud.com>
Cc:        Freebsd Ports <freebsd-ports@freebsd.org>
Subject:   Re: [277823 ] devel/matreshka: Build fails in package phase
Message-ID:  <4978909444ff8358adcc073329df19bc@riseup.net>
In-Reply-To: <2355B4B6-C24B-4255-BEDF-892D1BDA92D4@icloud.com>
References:  <275d8c987d63c42682e3cff27cddb754@riseup.net> <2355B4B6-C24B-4255-BEDF-892D1BDA92D4@icloud.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <agh@riseup.net> 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
>>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4978909444ff8358adcc073329df19bc>