pkgsrc-Users archive

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

Re: gcc12 incompatible with ctfconvert?



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.

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

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert                            <rhialto/at/falu.nl>
\X/ There is no AI. There is just someone else's work.           --I. Rose

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index