pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gcc12 incompatible with ctfconvert?



* On 2023-10-02 at 17:15 BST, Rhialto wrote:

On Mon 02 Oct 2023 at 16:19:13 +0100, Jonathan Perkin wrote:
* On 2023-10-02 at 13:50 BST, Martin Husemann wrote:

> On Mon, Oct 02, 2023 at 01:45:13PM +0200, Rhialto wrote:
> > Hmmm so somehow I need to enforce that ctwm is built with the base
> > system compiler; how could I do that?
>
> I would instead add a "-gdwarf-version 4" to CFLAGS if gcc 12 is in use.

We already specify -gdwarf-2 when CTF is enabled.  This is at least correct
for illumos, if NetBSD should use a later version then we'll need to add
more logic.

The package doesn't declare that it uses CTF; I wasn't aware of this.
When I set "PKGSRC_USE_CTF=yes" in its ctwm/Makefile, I get
_PKGSRC_USE_CTF=no . CTF_SUPPORTED is empty/undefined. (from make
show-var).  And the same build failure. So indeed some logic may still
be missing.

Ok, looks like nobody has added CTF support for NetBSD yet, there's no _OPSYS_SUPPORTS_CTF=yes in mk/platform/NetBSD.mk, etc.

If I also (or instead) add -gdwarf-4 to CFLAGS, it builds ok. So far
thats sounds as the best solution.

The best solution would be to add proper CTF support for NetBSD.

--
Jonathan Perkin   -   mnx.io   -   pkgsrc.smartos.org
Open Source Complete Cloud   www.tritondatacenter.com


Home | Main Index | Thread Index | Old Index