bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] tar 1.27.1 compile error on AIX 7.1 TL2 SP3 and AIX 6.1 TL


From: Paul Eggert
Subject: Re: [Bug-tar] tar 1.27.1 compile error on AIX 7.1 TL2 SP3 and AIX 6.1 TL8 SP3 with IBM XL C/C++
Date: Wed, 25 Dec 2013 15:15:44 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

Yannick Y Bergeron wrote:
> If it's a compiler issue, I can open a ticket to IBM XL C/C++ but I would 
> need to understand why it should works (other than "it works with gcc"), 
> what would be the normal behavior and why this should be considered a 
> compiler issue.

Simply put, the program declares an identifier SYSINT_BUFSIZE,
but cc -qlanglvl=extc99 later incorrectly reports that this
identifier is not declared.

I'll attach a small sample.c file that attempts to take your
tar.output file and discard everything except what's needed
to illustrate the bug.  If your 'cc -qlanglvl=extc99 -g -c sample.c'
fails, the compiler is clearly buggy.  If cc accepts the program,
you may have to restore some of the stuff I've removed (indicated by
/* ... */) to make the bug reappear.  Either way, you can
use the program as part of your trouble ticket.  The simplest
thing for you would be to submit the full foo.c, which you've already
got, but it may help the IBM maintainers to have a smaller test
case that illustrates the bug.  I also suggest mentioning this email
thread

http://lists.gnu.org/archive/html/bug-tar/2013-12/msg00025.html

as part of your trouble ticket.

It would be helpful to come up with a way to work around the bug,
so that 'tar' can be built even with a buggy compiler.  But we may
need to know what the compiler bug is, before we can do that.

Attachment: sample.c
Description: Text Data


reply via email to

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