Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Nov 2023 10:59:48 +0100
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Emmanuel Vadot <manu@FreeBSD.org>
Cc:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   Re: git: fa7309cb976e - main - lang/clover: Restrict llvm to max version 16
Message-ID:  <v89r-h3or-wny@FreeBSD.org>
In-Reply-To: <202311240855.3AO8tOSj096173@gitrepo.freebsd.org> (Emmanuel Vadot's message of "Fri, 24 Nov 2023 08:55:24 GMT")
References:  <202311240855.3AO8tOSj096173@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Emmanuel Vadot <manu@FreeBSD.org> writes:

>     While here clean up a bit the USES=llvm for mesa port, we already set noexport
>     in mesa-dri/Makefile.common so no need to set it in all the ports.
[...]
> diff --git a/graphics/mesa-dri/Makefile b/graphics/mesa-dri/Makefile
> index e309b1adf75f..4e79e3ef500c 100644
> --- a/graphics/mesa-dri/Makefile
> +++ b/graphics/mesa-dri/Makefile
> @@ -8,7 +8,7 @@ WWW=		https://www.mesa3d.org/
>  
>  LIB_DEPENDS+=	libglapi.so:graphics/mesa-libs
>  
> -USES+=		llvm:lib,noexport
> +USES+=		llvm:lib

USES=llvm from Makefile.common has no effect due to bug 199603.
For example, poudriere build now has the following noise:

  sh: /usr/local/llvm15/bin/clang: not found
  make: "/usr/ports/Mk/Uses/compiler.mk" line 80: warning: "/usr/local/llvm15/bin/clang --version" returned non-zero status
  make: "/usr/ports/Mk/Uses/compiler.mk" line 128: warning: "/usr/local/llvm15/bin/clang++ -### /dev/null 2>&1" returned non-zero status

breaks WITH_LTO build (via make.conf or Makefile.local) on FreeBSD 13.2:

  llvm-ar: error: src/c11/impl/libmesa_util_c11.a: Opaque pointers are only supported in -opaque-pointers mode (Producer: 'LLVM15.0.7' Reader: 'LLVM 14.0.5')
  llvm-ar: error: src/util/libmesa_util_sse41.a: Opaque pointers are only supported in -opaque-pointers mode (Producer: 'LLVM15.0.7' Reader: 'LLVM 14.0.5')
  llvm-ar: error: src/util/libxmlconfig.a: Opaque pointers are only supported in -opaque-pointers mode (Producer: 'LLVM15.0.7' Reader: 'LLVM 14.0.5')
  llvm-ar: error: src/util/libmesa_util.a: Opaque pointers are only supported in -opaque-pointers mode (Producer: 'LLVM15.0.7' Reader: 'LLVM 14.0.5')
  [...]

and may pessimize WITH_CCACHE_BUILD due to absolute path in CC/CXX.



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