This is the mail archive of the gdb@sourceware.org mailing list for the GDB 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: gdb build error


Hello Joel,

-Yes, I agree that the file probably existed.

- I am not sure what mirror site I downloaded the file from, but the
name of 
the tar is: insight-6.5.tar.bz2.

- I followed the list of configure and build command that I found on the
eCos
page for installing GNU tools. My final application is to use eCos on an
ARM.
 
*********************************************
Configure Insight:


mkdir -p /tmp/build/gdb
cd /tmp/build/gdb
/src/insight-5.3/configure --target=TARGET \
  --prefix=/gnutools -v 2>&1 | tee configure.out 


Build and install Insight:


make -w all install 2>&1 | tee make.out 

*********************************************

With my target= arm-elf

- I say that this is insight only because the name of the TAR. It may
very well be
gdb.

Thank you very much for your time and attention,

-Ray

-----Original Message-----
From: Joel Brobecker [mailto:brobecker@adacore.com] 
Sent: Thursday, September 07, 2006 9:15 AM
To: Ray Duran
Cc: gdb@sourceware.org
Subject: Re: gdb build error


> However, I have done a search of ada-lex.c and cannot find anywhere.
> That in fact make the message a bit of an anomaly, since the warning
> says that ada-lex.c is older but it does not exist.

I'm pretty sure it used to exist at the time you unpacked the sources.
It must has been deleted somehow. The makefile says:

.l.c:
        if [ "$(FLEX)" ] && $(FLEX) --version >/dev/null 2>&1; then \
            $(FLEX) -o$@ $< && \
            rm -f $@.new && \
            sed -e '/extern.*malloc/d' \ 
                -e '/extern.*realloc/d' \
                -e '/extern.*free/d' \
                -e '/include.*malloc.h/d' \
                -e 's/\([^x]\)malloc/\1xmalloc/g' \
                -e 's/\([^x]\)realloc/\1xrealloc/g' \
                -e 's/yy_flex_xrealloc/yyxrealloc/g' \
              < $@ > $@.new && \
            rm -f $@ && \
            mv $@.new $@; \
        elif [ -f $@ ]; then \
            echo "Warning: $*.c older than $*.l and flex not
available."; \
        else \
            echo "$@ missing and flex not available."; \
            false; \
        fi

so the file MUST have existed for the warning you mentioned to be
printed (the -f test).

I can't really figure out what happened in your case without more
details. If you start from scratch, and send us the list of commands
you used to build your application, then maybe we'll be able to
understand what happened. Please also tell us exactly what package
you downloaded, and where you got it:

> If I re-downloaded insight tar 6.5 or an earlier version could I
> configure and build Insight over what I have already done? There isn't
> any need for deleting old insight stuff?

Are you sure you mean insight? The last releases only included GDB,
not insight.

-- 
Joel


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