GNU bug report logs - #9380
Compilation problems with coreutils-8.9

Previous Next

Package: coreutils;

Reported by: Rob McMahon <Rob.McMahon <at> warwick.ac.uk>

Date: Fri, 26 Aug 2011 16:12:02 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Pádraig Brady <P <at> draigBrady.com>
To: Rob McMahon <Rob.McMahon <at> warwick.ac.uk>
Cc: Paul Eggert <eggert <at> cs.ucla.edu>, 9380 <at> debbugs.gnu.org
Subject: bug#9380: Compilation problems with coreutils-8.9
Date: Tue, 30 Aug 2011 15:42:58 +0100
On 08/30/2011 12:46 PM, Rob McMahon wrote:
> On 26/08/2011 17:29, Paul Eggert wrote:
>> Can't you compile with the -xc99 option?  The Sun documentation says it's
>> supported, even with that old compiler:
>>
>> http://developers.sun.com/sunstudio/support/Ccompare.html#upd2e
>>
>> 'configure' should have deduced the -xc99 option for you; it tries
>> '-xc99=all' early on.  Does that not work for you?  The documentation
>> says '-xc99=%all' is required, but as I recall, the '%' was optional
>> even way back when.
>>
> That doesn't seem to be quite enough unfortunately:
> 
>> cc -V
> cc: Sun WorkShop 6 update 2 C 5.3 Patch 111679-12 2003/05/18
>> dirs
> ~/src/gnu/dist/coreutils-8.9/lib
>> make -n heap.o
> echo "  CC      " heap.o;source='heap.c' object='heap.o' libtool=no \
> DEPDIR=.deps depmode=none /bin/bash ../build-aux/depcomp \
> cc  -I.   -D_REENTRANT   -O -xc99=%all -c -o heap.o heap.c
>> make heap.o
>   CC       heap.o
> "heap.c", line 99: syntax error before or at: void
> "heap.c", line 103: undefined symbol: top
> "heap.c", line 103: warning: improper pointer/integer combination: op "="
> cc: acomp failed for heap.c
> make: *** [heap.o] Error 2
> Exit 2
>> sed -n '96,103p' heap.c
>   if (heap->count == 0)
>     return NULL;
> 
>   void *top = heap->array[1];
>   heap->array[1] = heap->array[heap->count--];
>   heapify_down (heap->array, heap->count, 1, heap->compare);
> 
>   return top;

I've just adjusted that for heap.c as that might
be going to gnulib at some stage.
However you'll need to use your patch
for the rest of coreutils.

http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=683ee76
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8977

cheers,
Pádraig.




This bug report was last modified 13 years and 249 days ago.

Previous Next


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