pkgsrc-Users archive

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

Re: Base clang builds after 2022-07-05 mk: Add support for newer C standards.



On Thu, Jul 7, 2022 at 8:59 AM Jonathan Perkin <jperkin%joyent.com@localhost> wrote:
>
> * On 2022-07-07 at 16:54 BST, David Shao wrote:
>
> >Commenting out the recent change in
> >pkgsrc/mk/compiler/clang.mk
> >
> >+.for _version_ in ${_C_STD_VERSIONS}
> >+_C_STD_FLAG.${_version_}?=     -std=${_version_}
> >+.endfor
> >
> >allowed xf86-video-nouveau to build successfully.
>
> Interesting.  What about if you duplicate the hack from gcc.mk:
>
>    _C_STD_FLAG.c99=        -std=gnu99
>
> inserted after those settings?

Unfortunately, while xf86-video-nouveau with typeof(x) seems to build,
pkgsrc/graphics/cairo still fails according to config.log with

error: invalid argument '-std=gnu99'  not allowed with 'C++'

in a sanity test using
clang -E

I am curious whether you or someone else has a NetBSD with base compiler
clang to see if this is a general clang issue, or whether it is a
FreeBSD specific issue.

NetBSD amd64 current with gcc is so far not exhibiting any issues
building pkgsrc packages for me.


Home | Main Index | Thread Index | Old Index