Re: git: eb36006fdb70 - main - net/mpich: Unbreak on CURRENT with base clang 17

From: Thierry Thomas <thierry_at_pompo.net>
Date: Fri, 29 Dec 2023 09:22:30 UTC
Le jeu. 28 déc. 23 à 22:21:33 +0100, Antoine Brodin <antoine@freebsd.org>
 écrivait :

> On Tue, Dec 19, 2023 at 8:57 PM Rainer Hurling <rhurlin@freebsd.org> wrote:
> >
> > The branch main has been updated by rhurlin:
> >
> > URL: https://cgit.FreeBSD.org/ports/commit/?id=eb36006fdb707f3f8c9df41d465cc5b89addcf78
> >
> > commit eb36006fdb707f3f8c9df41d465cc5b89addcf78
> > Author:     Rainer Hurling <rhurlin@FreeBSD.org>
> > AuthorDate: 2023-12-19 20:53:31 +0000
> > Commit:     Rainer Hurling <rhurlin@FreeBSD.org>
> > CommitDate: 2023-12-19 20:53:31 +0000
> >
> >     net/mpich: Unbreak on CURRENT with base clang 17
> >
> >     clang version 17.0.6 causes linker errors that break the build on
> >     15.0-CURRENT.  Work around this by building with an older llvm from
> >     ports. This patch is same as commit f25b169ac895.
> >
> >     Thanks to thierry@ for the hint.
> 
> Hello,

Hello,

> This doesn't seem to be the right fix,  a lot of mpich consumers are
> broken with this.
> Maybe LDFLAGS+= -Wl,--undefined-version  would be better?

The problem is that the default compiler (clang-17) has issues with
linking. Rainer’s patch sets USES+=llvm, and by default this means
USES+=llvm,build, but really the choosen compiler should be kept for
run.

The following should work:
USES+=    llvm:lib,max=16

Anyways, this is just a work-around, untill clang-17 is clean…
-- 
Th. Thomas.