GNU bug report logs - #19184
coreutils-8.23 Compile Error on Solaris 8 - Sun Studio 11

Previous Next

Package: coreutils;

Reported by: Ted Carr <edward.w.carr <at> gsk.com>

Date: Tue, 25 Nov 2014 23:56:01 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19184 in the body.
You can then email your comments to 19184 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#19184; Package coreutils. (Tue, 25 Nov 2014 23:56:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ted Carr <edward.w.carr <at> gsk.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Tue, 25 Nov 2014 23:56:02 GMT) Full text and rfc822 format available.

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

From: Ted Carr <edward.w.carr <at> gsk.com>
To: "bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>
Subject: coreutils-8.23 Compile Error on Solaris 8 - Sun Studio 11
Date: Tue, 25 Nov 2014 21:21:04 +0000
[Message part 1 (text/plain, inline)]
Hello All,

Apologies for accidentally sending this to the "general questions list", meant to send it here.

I have a need to compile Coreutils for Solaris 8...  I am using Sun Studio 11 (cc: Sun C 5.8 Patch 121015-07 2009/04/22) to try and compile the source and I am getting the following error:


bash-2.03$ make

  GEN      man/dynamic-deps.mk

  GEN      lib/c++defs.h

  GEN      lib/warn-on-use.h

  GEN      lib/arg-nonnull.h

  GEN      lib/arpa/inet.h

  GEN      lib/configmake.h

  GEN      lib/ctype.h

  GEN      lib/dirent.h

  GEN      lib/fcntl.h

  GEN      lib/fnmatch.h

  GEN      lib/getopt.h

  GEN      lib/iconv.h

  GEN      lib/inttypes.h

  GEN      lib/langinfo.h

  GEN      lib/locale.h

  GEN      lib/math.h

  GEN      lib/netdb.h

  GEN      lib/pthread.h

  GEN      lib/unused-parameter.h

  GEN      lib/selinux/selinux.h

  GEN      lib/selinux/context.h

  GEN      lib/signal.h

  GEN      lib/stdalign.h

  GEN      lib/stdbool.h

  GEN      lib/stdint.h

  GEN      lib/stdio.h

  GEN      lib/stdlib.h

  GEN      lib/string.h

  GEN      lib/sys/ioctl.h

  GEN      lib/sys/resource.h

  GEN      lib/sys/select.h

  GEN      lib/sys/socket.h

  GEN      lib/sys/stat.h

  GEN      lib/sys/time.h

  GEN      lib/sys/types.h

  GEN      lib/sys/uio.h

  GEN      lib/sys/utsname.h

  GEN      lib/sys/wait.h

  GEN      lib/termios.h

  GEN      lib/time.h

  GEN      lib/unistd.h

  GEN      lib/unistr.h

  GEN      lib/unitypes.h

  GEN      lib/uniwidth.h

  GEN      lib/wchar.h

  GEN      lib/wctype.h

  GEN      src/coreutils.h

bash: -c: line 1: syntax error near unexpected token `;'

*** Error code 2

make: Fatal error: Command failed for target `src/coreutils.h'

bash-2.03$

Any help would be much appreciated.

Cheers,
Ted

[Message part 2 (text/html, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#19184; Package coreutils. (Wed, 26 Nov 2014 05:20:02 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Ted Carr <edward.w.carr <at> gsk.com>, 19184 <at> debbugs.gnu.org
Subject: Re: bug#19184: coreutils-8.23 Compile Error on Solaris 8 - Sun Studio
 11
Date: Tue, 25 Nov 2014 21:19:36 -0800
[Message part 1 (text/plain, inline)]
Thanks, this appears to be due to an old Bash bug.  Could you please try the 
attached patch?  Assuming you don't have the autotools installed, please patch 
your top-level Makefile (which you've already built) instead of patching 
src/local.mk.  I've installed this, since it seems pretty obviously needed 
regardless of whether it fixes your bug.
[0001-build-port-new-rule-for-coreutils.h-to-old-Bash.patch (text/x-diff, attachment)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#19184; Package coreutils. (Wed, 26 Nov 2014 14:20:02 GMT) Full text and rfc822 format available.

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

From: Ted Carr <edward.w.carr <at> gsk.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>, "19184 <at> debbugs.gnu.org"
 <19184 <at> debbugs.gnu.org>
Subject: RE: bug#19184: coreutils-8.23 Compile Error on Solaris 8 - Sun
 Studio 11
Date: Wed, 26 Nov 2014 14:19:04 +0000
Paul,

That did the trick!  I really appreciate the help.  Everything seems to compile fine, but I get some errors when running 'make check'.  You have any time to help with those or should I just send in another email?

Cheers,

Ted 


Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Wed, 26 Nov 2014 19:22:02 GMT) Full text and rfc822 format available.

Notification sent to Ted Carr <edward.w.carr <at> gsk.com>:
bug acknowledged by developer. (Wed, 26 Nov 2014 19:22:02 GMT) Full text and rfc822 format available.

Message #16 received at 19184-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Ted Carr <edward.w.carr <at> gsk.com>, 19184-done <at> debbugs.gnu.org
Subject: Re: bug#19184: coreutils-8.23 Compile Error on Solaris 8 - Sun Studio
 11
Date: Wed, 26 Nov 2014 11:21:55 -0800
On 11/26/2014 06:19 AM, Ted Carr wrote:
> I get some errors when running 'make check'.  You have any time to help with those or should I just send in another email?
Can't hurt to email them to bug-coreutils <at> gnu.org.  Can't promise 
anything: Solaris 8 isn't supported any more by Oracle, so it's mostly 
off our radar.  Anyway, I'm marking this bug as done.




Information forwarded to bug-coreutils <at> gnu.org:
bug#19184; Package coreutils. (Wed, 26 Nov 2014 20:38:02 GMT) Full text and rfc822 format available.

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

From: Pádraig Brady <P <at> draigBrady.com>
To: 19184 <at> debbugs.gnu.org, eggert <at> cs.ucla.edu, edward.w.carr <at> gsk.com
Subject: Re: bug#19184: coreutils-8.23 Compile Error on Solaris 8 - Sun Studio
 11
Date: Wed, 26 Nov 2014 20:37:16 +0000
[Message part 1 (text/plain, inline)]
On 26/11/14 19:21, Paul Eggert wrote:
> On 11/26/2014 06:19 AM, Ted Carr wrote:
>> I get some errors when running 'make check'.  You have any time to help with those or should I just send in another email?
> Can't hurt to email them to bug-coreutils <at> gnu.org.  Can't promise anything: Solaris 8 isn't supported any more by Oracle, so it's mostly off our radar.  Anyway, I'm marking this bug as done.

Ted emailed me privately by mistake.

There 2 issues. The first was a weird one with the shell's printf
which the attached patch will hopefully avoid.

The other issue is incorrect prompts output by rm due to its use of %zu
Ted could you give the output of:

  grep gl_cv_func_printf_sizes_c99 config.log

Now coreutils doesn't make use of the fprintf-posix module
to act on the above test.
Jim attempted it for a day in 2007 but reverted due to "too many test failures".
We could easily avoid the use of %zu I suppose in coreutils,
as there are only a few uses really.

thanks,
Pádraig.
[solaris-8-printf.patch (text/x-patch, attachment)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#19184; Package coreutils. (Thu, 27 Nov 2014 01:11:02 GMT) Full text and rfc822 format available.

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

From: Pádraig Brady <P <at> draigBrady.com>
To: 19184 <at> debbugs.gnu.org, eggert <at> cs.ucla.edu, edward.w.carr <at> gsk.com
Subject: Re: bug#19184: coreutils-8.23 Compile Error on Solaris 8 - Sun Studio
 11
Date: Thu, 27 Nov 2014 01:10:45 +0000
[Message part 1 (text/plain, inline)]
On 26/11/14 20:37, Pádraig Brady wrote:
> The other issue is incorrect prompts output by rm due to its use of %zu
> Ted could you give the output of:
> 
>   grep gl_cv_func_printf_sizes_c99 config.log
> 
> Now coreutils doesn't make use of the fprintf-posix module
> to act on the above test.
> Jim attempted it for a day in 2007 but reverted due to "too many test failures".
> We could easily avoid the use of %zu I suppose in coreutils,
> as there are only a few uses really.

I did that in the attached.

thanks,
Pádraig
[solaris-8-fprintf.patch (text/x-patch, attachment)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#19184; Package coreutils. (Thu, 27 Nov 2014 02:36:02 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Pádraig Brady <P <at> draigBrady.com>, 
 19184 <at> debbugs.gnu.org, edward.w.carr <at> gsk.com
Subject: Re: bug#19184: coreutils-8.23 Compile Error on Solaris 8 - Sun Studio
 11
Date: Wed, 26 Nov 2014 18:35:15 -0800
Pádraig Brady wrote:
> I did that in the attached.

I also see uses of %z in dd.c, od.c, and split.c




Information forwarded to bug-coreutils <at> gnu.org:
bug#19184; Package coreutils. (Thu, 27 Nov 2014 14:35:03 GMT) Full text and rfc822 format available.

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

From: Pádraig Brady <P <at> draigBrady.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>, 19184 <at> debbugs.gnu.org, 
 edward.w.carr <at> gsk.com
Subject: Re: bug#19184: coreutils-8.23 Compile Error on Solaris 8 - Sun Studio
 11
Date: Thu, 27 Nov 2014 14:34:49 +0000
On 27/11/14 02:35, Paul Eggert wrote:
> Pádraig Brady wrote:
>> I did that in the attached.
> 
> I also see uses of %z in dd.c, od.c, and split.c

No other uses with fprintf() though.
The od one goes through printf, but that's only debugging.
The error() ones are fine as they go through any printf() replacement.
Hmm, you're right, that dependency is not explicit,
so it's a bit brittle to leave those.
I wonder should the gnulib errno module depend on the [v]fprintf-posix modules?

Anyway it's better to be consistent and remove the remaining
few uses of %zu for now, so I've just pushed a patch to do that.

thanks,
Pádraig.




Information forwarded to bug-coreutils <at> gnu.org:
bug#19184; Package coreutils. (Mon, 01 Dec 2014 13:59:02 GMT) Full text and rfc822 format available.

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

From: Ted Carr <edward.w.carr <at> gsk.com>
To: Pádraig Brady <P <at> draigBrady.com>,
 "19184 <at> debbugs.gnu.org" <19184 <at> debbugs.gnu.org>, "eggert <at> cs.ucla.edu"
 <eggert <at> cs.ucla.edu>
Subject: RE: bug#19184: coreutils-8.23 Compile Error on Solaris 8 - Sun
 Studio 11
Date: Mon, 1 Dec 2014 13:58:28 +0000
Hi All,

Sorry for the delay...

Requested output:

bash-2.03$ grep gl_cv_func_printf_sizes_c99 config.log
gl_cv_func_printf_sizes_c99=no

Cheers,
Ted




Information forwarded to bug-coreutils <at> gnu.org:
bug#19184; Package coreutils. (Mon, 01 Dec 2014 14:06:02 GMT) Full text and rfc822 format available.

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

From: Pádraig Brady <P <at> draigBrady.com>
To: Ted Carr <edward.w.carr <at> gsk.com>, 
 "19184 <at> debbugs.gnu.org" <19184 <at> debbugs.gnu.org>
Subject: Re: bug#19184: coreutils-8.23 Compile Error on Solaris 8 - Sun Studio
 11
Date: Mon, 01 Dec 2014 14:05:06 +0000
On 01/12/14 13:58, Ted Carr wrote:
> Hi All,
> 
> Sorry for the delay...
> 
> Requested output:
> 
> bash-2.03$ grep gl_cv_func_printf_sizes_c99 config.log
> gl_cv_func_printf_sizes_c99=no

Thanks for the confirmation.
Your issue should be address in the upcoming 8.24 release
that contains these changes:

http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=a78d8538
http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=7d1fe886
http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=458c5cbc

cheers,
Pádraig.




Information forwarded to bug-coreutils <at> gnu.org:
bug#19184; Package coreutils. (Mon, 01 Dec 2014 14:47:02 GMT) Full text and rfc822 format available.

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

From: Ted Carr <edward.w.carr <at> gsk.com>
To: Pádraig Brady <P <at> draigBrady.com>,
 "19184 <at> debbugs.gnu.org" <19184 <at> debbugs.gnu.org>
Subject: RE: bug#19184: coreutils-8.23 Compile Error on Solaris 8 - Sun
 Studio 11
Date: Mon, 1 Dec 2014 14:45:36 +0000
Thank You All.  The patches you have supplied have fixed my issues!  

Cheers,
Ted

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 30 Dec 2014 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 180 days ago.

Previous Next


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