Aaron Davies wrote: > I ran into this trying to build current coreutils on Solaris with sun studio 11 > > the workaround I found was to use sun studio 12 I'm also using Sun Studio 12. That being said, I now see that I was using Sun C 5.9 (Patch 124867-12 2009/11/22), which is the original Sun Studio 12. I earlier reported that I was using Sun C 5.13, i.e., Oracle Solaris Studio 12.4, but I was mistaken. Oracle's compiler versioning is complicated; see . I just now looked at the C11 standard, and it prohibits Pádraig's 2015-06-25 change to fts.c that uses alignof on a structure with a flexible array member. And I now see that IBM's xlc compiler also complains about this. though I didn't notice this earlier. Although the C11 prohibition is arbitrary and perhaps not even intended, it's in the standard, and we should fix fts.c to conform. I installed the attached patch into gnulib, and this will be merged into grep the next time we update its gnulib version. I can see one more gnulib fix that's also needed for grep, and plan to follow up shortly.