GNU bug report logs - #21700
new snapshot available: grep-2.21.78-7da30

Previous Next

Package: grep;

Reported by: Jim Meyering <jim <at> meyering.net>

Date: Sun, 18 Oct 2015 05:27:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 21700 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Aaron Davies <aaron.davies <at> gmail.com>
Cc: Pádraig Brady <P <at> draigBrady.com>,
 Gnulib bugs <bug-gnulib <at> gnu.org>,
 "21700 <at> debbugs.gnu.org" <21700 <at> debbugs.gnu.org>
Subject: Re: bug#21700: new snapshot available: grep-2.21.78-7da30
Date: Sun, 18 Oct 2015 10:10:36 -0700
[Message part 1 (text/plain, inline)]
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.
[0001-fts-port-to-C11-alignof.patch (text/plain, attachment)]

This bug report was last modified 9 years and 142 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.