bug-bison
[Top][All Lists]
Advanced

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

Re: bison-1.75: test failure on SGI IRIX 6.5


From: Paul Eggert
Subject: Re: bison-1.75: test failure on SGI IRIX 6.5
Date: Wed, 13 Nov 2002 00:06:43 -0800 (PST)

> From: "Nelson H. F. Beebe" <address@hidden>
> Date: Tue, 12 Nov 2002 17:11:55 -0700 (MST)

> 30. synclines.at:91: testing Prologue synch line...
> synclines.at:91: $CC $CFLAGS $CPPFLAGS -c syncline.c || (exit 1)
> stderr:
> cc-1035 cc: WARNING File = syncline.c, Line = 1
>   #error directive:  "1"
> 
>   #error "1"
>    ^
> 
> synclines.at:91: exit code was 0, expected 1

Most of the things that you reported in that message are bugs in Bison
that have been fixed in CVS as of today, but the above message doesn't
appear to be a Bison bug.  Bison can no longer be built by a K&R C
compiler; it requires C89 or later to be built.  The compiler 'cc
-mips3 -O2' on SGI IRIX 6.5 apparently treats "#error" as a
non-serious error (exit status 0).  I don't think the C standard
allows this.

Perhaps you can fix the problem by passing an option to 'cc' that
tells cc that '#error' should cause a nonzero exit status.

Thanks for your bug reports, by the way; they've helped with Bison
porting.




reply via email to

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