Re: max_align_t fails with clang 6.1 on OS X 10.10

2017-09-10 Thread Werner LEMBERG
> OK, here's what I'm committing: the same idiom as we use for > wint_t. [...] Thanks! Werner

Re: max_align_t fails with clang 6.1 on OS X 10.10

2017-09-08 Thread Bruno Haible
Paul Eggert wrote: > Bruno Haible wrote: > > +} _gl_max_align_t; > > +#define max_align_t _gl_max_align_t > > #endif > > > > # endif /* _@GUARD_PREFIX@_STDDEF_H */ > > > > > > This one is not brittle and is not a big change. If Paul agrees, I would > > commit > > this, and you (Werner) w

Re: max_align_t fails with clang 6.1 on OS X 10.10

2017-09-05 Thread Werner LEMBERG
>> +} _gl_max_align_t; >> +#define max_align_t _gl_max_align_t >> #endif >> # endif /* _@GUARD_PREFIX@_STDDEF_H */ >> This one is not brittle and is not a big change. If Paul agrees, I >> would commit this, and you (Werner) would not need to reorganize >> your package's configuration. > >

Re: max_align_t fails with clang 6.1 on OS X 10.10

2017-09-04 Thread Paul Eggert
Bruno Haible wrote: +} _gl_max_align_t; +#define max_align_t _gl_max_align_t #endif # endif /* _@GUARD_PREFIX@_STDDEF_H */ This one is not brittle and is not a big change. If Paul agrees, I would commit this, and you (Werner) would not need to reorganize your package's configuration.

Re: max_align_t fails with clang 6.1 on OS X 10.10

2017-09-03 Thread Bruno Haible
Werner, Paul, I wrote: > The other approaches are brittle: If we/you change something regarding > the max_align_t problem, you will continue to see issues > - on other platforms, > - when you request additional gnulib modules, > - when the C standard features change, > - when the C++ stand

Re: max_align_t fails with clang 6.1 on OS X 10.10

2017-09-03 Thread Bruno Haible
Hello Werner, > Is there an example package with automake and gnulib that uses both C > and C++ similar to ttfautohint, and that I could use as a template? I don't know of such an example package. Basically, the steps are to 1) Create a lib/configure.ac that contains everything relevant to the

Re: max_align_t fails with clang 6.1 on OS X 10.10

2017-09-03 Thread Werner LEMBERG
>> > Could you try incorporating the std-gnu11 module into your >> > package, and see whether that fixes things? If so, perhaps we >> > could fix this problem for everybody by having stddef depend on >> > std-gnu11. >> >> This approach worked > > Nevertheless, I don't agree that this is the solu

Re: max_align_t fails with clang 6.1 on OS X 10.10

2017-09-03 Thread Bruno Haible
Werner LEMBERG wrote: > > Could you try incorporating the std-gnu11 module into your package, > > and see whether that fixes things? If so, perhaps we could fix this > > problem for everybody by having stddef depend on std-gnu11. > > This approach worked Nevertheless, I don't agree that this is

Re: max_align_t fails with clang 6.1 on OS X 10.10

2017-09-02 Thread Werner LEMBERG
> Could you try incorporating the std-gnu11 module into your package, > and see whether that fixes things? If so, perhaps we could fix this > problem for everybody by having stddef depend on std-gnu11. This approach worked, cf. https://travis-ci.org/source-foundry/ttfautohint-build/builds/271

Re: max_align_t fails with clang 6.1 on OS X 10.10

2017-08-30 Thread Chris Simpkins
Full gnulib stddef.h header file requested by Werner available here:  https://gist.github.com/chrissimpkins/6e76999d84ca6ff36cf8f7ef047997f4 max_align_t definition from `cat /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.1.0/include/stddef.h` on Tr

Re: max_align_t fails with clang 6.1 on OS X 10.10

2017-08-30 Thread Bruno Haible
Werner LEMBERG wrote: > Shall I simply add > > AC_LANG_PUSH([C++]) > > right before the call to > > gl_INIT > > in my `configure.ac' file? It's worth a try, yes. If it creates other problems, we can look into these. Bruno

Re: max_align_t fails with clang 6.1 on OS X 10.10

2017-08-29 Thread Paul Eggert
Werner LEMBERG wrote: Shall I simply add AC_LANG_PUSH([C++]) right before the call to gl_INIT in my `configure.ac' file? Sorry, I don't use C++, so I'm not a good source of advice for it. That being said, Libc-1158.50.2/include/stddef.h defines max_align_t if (__STDC_VERSION__ >= 20

Re: max_align_t fails with clang 6.1 on OS X 10.10

2017-08-29 Thread Werner LEMBERG
>> configure:17517: gcc -c >> -I/Users/travis/ttfautohint-build/local/include -g -O2 conftest.c >&5 >> conftest.c:145:13: error: use of undeclared identifier 'max_align_t' > > Evidently the stddef.h found by the above command does not define > max_align_t, whereas the stddef.h found by the comman

Re: max_align_t fails with clang 6.1 on OS X 10.10

2017-08-29 Thread Paul Eggert
Werner LEMBERG wrote: configure:17517: gcc -c -I/Users/travis/ttfautohint-build/local/include -g -O2 conftest.c >&5 conftest.c:145:13: error: use of undeclared identifier 'max_align_t' Evidently the stddef.h found by the above command does not define max_align_t, whereas the stddef.h found b

Re: max_align_t fails with clang 6.1 on OS X 10.10

2017-08-29 Thread Werner LEMBERG
>>checking for max_align_t... no > > Why did this say "no" even though stddef.h evidently defines > max_align_t? Please look for details in config.log. Below. For reference you can also find the complete `config.log' file attached. Werner =

Re: max_align_t fails with clang 6.1 on OS X 10.10

2017-08-28 Thread Paul Eggert
Werner LEMBERG wrote: checking for max_align_t... no Why did this say "no" even though stddef.h evidently defines max_align_t? Please look for details in config.log.

max_align_t fails with clang 6.1 on OS X 10.10

2017-08-27 Thread Werner LEMBERG
Building ttfautohint (http://repo.or.cz/ttfautohint.git/) on OS X 10.10 (XCode 6.4) fails. The data below is taken from a travis build (https://travis-ci.org/source-foundry/ttfautohint-build/jobs/269031319#L3401). Here's the list of the gnulib modules I use in ttfautohint: dirname fcntl-h