This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ld testsuite failures


On Mon, Oct 28, 2002 at 05:38:20PM +1100, Greg Schafer wrote:
> On Mon, Oct 28, 2002 at 04:51:54PM +1100, Greg Schafer wrote:
> > Hi
> > 
> > Testing the branch on i686-pc-linux-gnu and getting a stack of failures
> > in ld.
> 
> False alarm!
> 
> It was bison-1.75 causing the grief. Reverting to bison-1.35 makes it work.
> 
> Someone may want to look into this.

The problem is, the branch has ldgram.h on it.  This file is generated
by Bison 1.35, because that's what I was using when I spun 2.13.  Then
configure finds bison, and regenerates ldgram.h in the build directory.

There's no way to override the first directory searched by #include "". 
It's always the directory containing the source file.

Thus ldgram.c ends up thinking that NAME is defined as 259, and the
rest of ld ends up thinking it is 258.

The normal response to this appears to be to generate bison-generated
source files in the srcdir instead of the objdir.  I don't want to go
there.  Does anyone have a better idea?

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]