Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Building snapshot on Linux
@ 2007-09-03 10:15 Arne Steinarson
  2007-09-03 14:52 ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Arne Steinarson @ 2007-09-03 10:15 UTC (permalink / raw)
  To: gdb

I've downloaded GDB snapshot (gdb-weekly-CVS-6.6.50.20070828.tar) and
want to build it on Ubuntu Linux. Gcc version is 4.1.2.

After adding texinfo, flex & bison packages I make some progress with the build:

  ./configure --disable-werror
  make

(without --disable-werror the build terminates rather quickly).

Then I get the following linker error:

ar: creating libgdb.a
ranlib libgdb.a
rm -f gdb
gcc -g -O2       \
                -o gdb gdb.o libgdb.a \
                   ../readline/libreadline.a ../opcodes/libopcodes.a
../bfd/libbfd.a  ../libiberty/libiberty.a     -lncurses -lm  -lexpat
../libiberty/libiberty.a  -ldl -rdynamic
libgdb.a(c-lang.o): In function `c_preprocess_and_parse':
/usr/src/gdb/src/gdb/c-lang.c:482: undefined reference to `c_parse'
libgdb.a(c-lang.o):(.rodata+0x284): undefined reference to `c_error'
libgdb.a(c-lang.o):(.rodata+0x304): undefined reference to `c_error'

Any suggestion on how to make it work?

Regards
// Arne Steinarson


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Building snapshot on Linux
  2007-09-03 10:15 Building snapshot on Linux Arne Steinarson
@ 2007-09-03 14:52 ` Daniel Jacobowitz
  2007-09-03 20:06   ` Arne Steinarson
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2007-09-03 14:52 UTC (permalink / raw)
  To: Arne Steinarson; +Cc: gdb

On Mon, Sep 03, 2007 at 12:15:14PM +0200, Arne Steinarson wrote:
> ar: creating libgdb.a
> ranlib libgdb.a
> rm -f gdb
> gcc -g -O2       \
>                 -o gdb gdb.o libgdb.a \
>                    ../readline/libreadline.a ../opcodes/libopcodes.a
> ../bfd/libbfd.a  ../libiberty/libiberty.a     -lncurses -lm  -lexpat
> ../libiberty/libiberty.a  -ldl -rdynamic
> libgdb.a(c-lang.o): In function `c_preprocess_and_parse':
> /usr/src/gdb/src/gdb/c-lang.c:482: undefined reference to `c_parse'
> libgdb.a(c-lang.o):(.rodata+0x284): undefined reference to `c_error'
> libgdb.a(c-lang.o):(.rodata+0x304): undefined reference to `c_error'

It looks to me like you have some version of a tool (bison maybe?)
that doesn't work with GDB.  I don't know why, I haven't had this problem.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Building snapshot on Linux
  2007-09-03 14:52 ` Daniel Jacobowitz
@ 2007-09-03 20:06   ` Arne Steinarson
  0 siblings, 0 replies; 3+ messages in thread
From: Arne Steinarson @ 2007-09-03 20:06 UTC (permalink / raw)
  To: Arne Steinarson, gdb

There were some remains from trying to build when flex/bison was half
installed. make clean didn't clear that. Extracting tar file again and
restarting from scratch solved it.

Compiled fine and works fine from inside Eclipse CDT.

Reason to compile this was to get support for virtual thunks in C++.
And it works.

Regards
// ATS



On 9/3/07, Daniel Jacobowitz <drow@false.org> wrote:
> On Mon, Sep 03, 2007 at 12:15:14PM +0200, Arne Steinarson wrote:
> > ar: creating libgdb.a
> > ranlib libgdb.a
> > rm -f gdb
> > gcc -g -O2       \
> >                 -o gdb gdb.o libgdb.a \
> >                    ../readline/libreadline.a ../opcodes/libopcodes.a
> > ../bfd/libbfd.a  ../libiberty/libiberty.a     -lncurses -lm  -lexpat
> > ../libiberty/libiberty.a  -ldl -rdynamic
> > libgdb.a(c-lang.o): In function `c_preprocess_and_parse':
> > /usr/src/gdb/src/gdb/c-lang.c:482: undefined reference to `c_parse'
> > libgdb.a(c-lang.o):(.rodata+0x284): undefined reference to `c_error'
> > libgdb.a(c-lang.o):(.rodata+0x304): undefined reference to `c_error'
>
> It looks to me like you have some version of a tool (bison maybe?)
> that doesn't work with GDB.  I don't know why, I haven't had this problem.
>
> --
> Daniel Jacobowitz
> CodeSourcery
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-09-03 20:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-03 10:15 Building snapshot on Linux Arne Steinarson
2007-09-03 14:52 ` Daniel Jacobowitz
2007-09-03 20:06   ` Arne Steinarson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox