What is the correct way to require a specific version of clang?

Brooks Davis brooks at freebsd.org
Wed Nov 15 19:58:19 UTC 2017


On Wed, Nov 15, 2017 at 10:37:37AM -0800, Yuri wrote:
> There is no such thing as USES=clang:38, for example.
> 
> When I try this:
> 
> .include <bsd.port.options.mk>
> 
> .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100000
> BUILD_DEPENDS=?? clang38:lang/clang38
> RUN_DEPENDS=?????? clang38:lang/clang38
> CC=???????????????????????? clang38
> CXX=?????????????????????? clang++38
> 
> .endif
> 
> 
> It prints warnings in pourdriere 10i386 machine:
> 
> clang38: not found
> make: "/usr/ports/Mk/Uses/compiler.mk" line 69: warning: "clang38 
> --version" returned non-zero status
> make: "/usr/ports/Mk/Uses/compiler.mk" line 112: warning: "clang++38 
> -### /dev/null 2>&1" returned non-zero status
> 
> 
> How to do this without such messages?

You'll need to start a shell in your poudreire instance and see what is
failing.  I'd expect that to work.

Note that it is possible to misconfigure the llvm38 port such that this
config is broken by disabling the CLANG option.

-- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20171115/13c5252f/attachment.sig>


More information about the freebsd-ports mailing list