List Info

Thread: gdb build error




gdb build error
user name
2006-09-07 17:40:57
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:brobeckeradacore.com] 
Sent: Thursday, September 07, 2006 9:15 AM
To: Ray Duran
Cc: gdbsourceware.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
gdb build error
user name
2006-09-19 05:37:17
Ray,

(sorry about the delay - work suddenly became crazy)

> -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.

Have you been able to build GDB since then?

> - 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.

That may be where you got the sources from. I don't know
what this
package contains, so it's going to be difficult for me to
help you
further. Maybe the people who actually created the tarball
might be
able to help you further.

Otherwise, check before doing the configure that this file
exists.
Then do the configure, and check again. Then do the build,
and check
again. If it disappears during the build as I suspect, then
grep
for that filename in the build output - that should give you
a good
clue as to what is happening.

As a workaround, you may want to retrieve that file and copy
it back
right after the build failed, and then restart the build.
That should
work.

Another approach, of course, is to install flex, check out
www.gnu.org.

-- 
Joel
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )