GNU bug report logs - #14498
Failure with MSVC in t/yacc-bison-skeleton.sh

Previous Next

Package: automake;

Reported by: Peter Rosin <peda <at> lysator.liu.se>

Date: Wed, 29 May 2013 05:51:02 UTC

Severity: minor

Tags: patch

Done: Stefano Lattarini <stefano.lattarini <at> gmail.com>

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 14498 in the body.
You can then email your comments to 14498 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-automake <at> gnu.org:
bug#14498; Package automake. (Wed, 29 May 2013 05:51:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Peter Rosin <peda <at> lysator.liu.se>:
New bug report received and forwarded. Copy sent to bug-automake <at> gnu.org. (Wed, 29 May 2013 05:51:02 GMT) Full text and rfc822 format available.

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

From: Peter Rosin <peda <at> lysator.liu.se>
To: bug-automake <at> gnu.org
Subject: Failure with MSVC in t/yacc-bison-skeleton.sh
Date: Wed, 29 May 2013 07:48:41 +0200
Hi!

With the master branch (baf8a1c22acce0908) bison generates code with
a bunch of inline functions, but inline is spelled __inline with
MSVC, and the test fails spectacularly.

An example error message:
zardoz.c(873) : error C2054: expected '(' to follow 'inline'

$ bison --version
bison (GNU Bison) 2.4.2
Written by Robert Corbett and Richard Stallman.
...

Cheers,
Peter




Information forwarded to bug-automake <at> gnu.org:
bug#14498; Package automake. (Wed, 29 May 2013 09:03:01 GMT) Full text and rfc822 format available.

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

From: Peter Rosin <peda <at> lysator.liu.se>
To: 14498 <at> debbugs.gnu.org
Subject: Re: bug#14498: Failure with MSVC in t/yacc-bison-skeleton.sh
Date: Wed, 29 May 2013 11:00:44 +0200
On 2013-05-29 07:48, Peter Rosin wrote:
> Hi!
> 
> With the master branch (baf8a1c22acce0908) bison generates code with
> a bunch of inline functions, but inline is spelled __inline with
> MSVC, and the test fails spectacularly.

The problem is the same on the micro branch (87e49f4f040c8ab).

Cheers,
Peter





Information forwarded to bug-automake <at> gnu.org:
bug#14498; Package automake. (Wed, 29 May 2013 09:56:01 GMT) Full text and rfc822 format available.

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

From: Peter Rosin <peda <at> lysator.liu.se>
To: 14498 <at> debbugs.gnu.org
Subject: Re: bug#14498: Failure with MSVC in t/yacc-bison-skeleton.sh
Date: Wed, 29 May 2013 11:54:22 +0200
On 2013-05-29 07:48, Peter Rosin wrote:
> Hi!
> 
> With the master branch (baf8a1c22acce0908) bison generates code with
> a bunch of inline functions, but inline is spelled __inline with
> MSVC, and the test fails spectacularly.
> 
> An example error message:
> zardoz.c(873) : error C2054: expected '(' to follow 'inline'
> 
> $ bison --version
> bison (GNU Bison) 2.4.2
> Written by Robert Corbett and Richard Stallman.
> ...

The below change makes the test pass for me. Ok to push such a change?

Cheers,
Peter

diff --git a/t/yacc-bison-skeleton.sh b/t/yacc-bison-skeleton.sh
index b89d44c..3dfc83f 100644
--- a/t/yacc-bison-skeleton.sh
+++ b/t/yacc-bison-skeleton.sh
@@ -22,6 +22,7 @@ required='cc bison'

 cat >> configure.ac << 'END'
 AC_PROG_CC
+AC_C_INLINE
 AC_PROG_YACC
 AC_OUTPUT
 END





Information forwarded to bug-automake <at> gnu.org:
bug#14498; Package automake. (Wed, 29 May 2013 09:59:01 GMT) Full text and rfc822 format available.

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

From: Stefano Lattarini <stefano.lattarini <at> gmail.com>
To: Peter Rosin <peda <at> lysator.liu.se>
Cc: 14498 <at> debbugs.gnu.org
Subject: Re: bug#14498: Failure with MSVC in t/yacc-bison-skeleton.sh
Date: Wed, 29 May 2013 11:56:48 +0200
On 05/29/2013 11:54 AM, Peter Rosin wrote:
> On 2013-05-29 07:48, Peter Rosin wrote:
>> Hi!
>>
>> With the master branch (baf8a1c22acce0908) bison generates code with
>> a bunch of inline functions, but inline is spelled __inline with
>> MSVC, and the test fails spectacularly.
>>
>> An example error message:
>> zardoz.c(873) : error C2054: expected '(' to follow 'inline'
>>
>> $ bison --version
>> bison (GNU Bison) 2.4.2
>> Written by Robert Corbett and Richard Stallman.
>> ...
> 
> The below change makes the test pass for me. Ok to push such a change?
> 
> Cheers,
> Peter
> 
> diff --git a/t/yacc-bison-skeleton.sh b/t/yacc-bison-skeleton.sh
> index b89d44c..3dfc83f 100644
> --- a/t/yacc-bison-skeleton.sh
> +++ b/t/yacc-bison-skeleton.sh
> @@ -22,6 +22,7 @@ required='cc bison'
> 
>  cat >> configure.ac << 'END'
>  AC_PROG_CC
> +AC_C_INLINE
>  AC_PROG_YACC
>  AC_OUTPUT
>  END
> 
ACK.  Extra points if you add an explicative comment, like:

  AC_C_INLINE  dnl Required by MSVC.

Thanks,
  Stefano




Information forwarded to bug-automake <at> gnu.org:
bug#14498; Package automake. (Wed, 29 May 2013 10:12:01 GMT) Full text and rfc822 format available.

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

From: Peter Rosin <peda <at> lysator.liu.se>
To: "automake-patches <at> gnu.org" <automake-patches <at> gnu.org>
Cc: 14498 <at> debbugs.gnu.org
Subject: Re: bug#14498: Failure with MSVC in t/yacc-bison-skeleton.sh
Date: Wed, 29 May 2013 12:10:12 +0200
On 2013-05-29 11:56, Stefano Lattarini wrote:
> On 05/29/2013 11:54 AM, Peter Rosin wrote:
>> diff --git a/t/yacc-bison-skeleton.sh b/t/yacc-bison-skeleton.sh
>> index b89d44c..3dfc83f 100644
>> --- a/t/yacc-bison-skeleton.sh
>> +++ b/t/yacc-bison-skeleton.sh
>> @@ -22,6 +22,7 @@ required='cc bison'
>>
>>  cat >> configure.ac << 'END'
>>  AC_PROG_CC
>> +AC_C_INLINE
>>  AC_PROG_YACC
>>  AC_OUTPUT
>>  END
>>
> ACK.  Extra points if you add an explicative comment, like:
> 
>   AC_C_INLINE  dnl Required by MSVC.

Pushing this:

From d817a68e133f5bf41e1b5926d64ece7bc43ca8c3 Mon Sep 17 00:00:00 2001
From: Peter Rosin <peda <at> lysator.liu.se>
Date: Wed, 29 May 2013 12:06:17 +0200
Subject: [PATCH 2/2] tests: avoid a spurious failure with MSVC

Fixes automake bug#14498.

* t/yacc-bison-skeleton.sh: inline was not standardized prior to C99.

Signed-off-by: Peter Rosin <peda <at> lysator.liu.se>
---
 t/yacc-bison-skeleton.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/t/yacc-bison-skeleton.sh b/t/yacc-bison-skeleton.sh
index b89d44c..4553f7e 100644
--- a/t/yacc-bison-skeleton.sh
+++ b/t/yacc-bison-skeleton.sh
@@ -22,6 +22,7 @@ required='cc bison'
 
 cat >> configure.ac << 'END'
 AC_PROG_CC
+AC_C_INLINE    dnl Required by some pre-C99 compilers such as MSVC.
 AC_PROG_YACC
 AC_OUTPUT
 END
-- 
1.7.9






Added tag(s) patch. Request was from Stefano Lattarini <stefano.lattarini <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 30 May 2013 21:08:02 GMT) Full text and rfc822 format available.

Severity set to 'minor' from 'normal' Request was from Stefano Lattarini <stefano.lattarini <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 30 May 2013 21:08:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 14498 <at> debbugs.gnu.org and Peter Rosin <peda <at> lysator.liu.se> Request was from Stefano Lattarini <stefano.lattarini <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 30 May 2013 21:08:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 28 Jun 2013 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 52 days ago.

Previous Next


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