bug-gnulib
[Top][All Lists]
Advanced

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

Re: bug#21700: new snapshot available: grep-2.21.78-7da30


From: Paul Eggert
Subject: Re: bug#21700: new snapshot available: grep-2.21.78-7da30
Date: Sun, 18 Oct 2015 10:10:36 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

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 <http://www.oracle.com/technetwork/server-storage/solarisstudio/training/index-jsp-141991.html>.

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.

Attachment: 0001-fts-port-to-C11-alignof.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]