Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* [Build failure] Cygwin GDB multibuild failure
@ 2009-06-22 22:36 Pierre Muller
  2009-06-22 23:02 ` Dave Korn
  2009-06-23  1:37 ` Hui Zhu
  0 siblings, 2 replies; 7+ messages in thread
From: Pierre Muller @ 2009-06-22 22:36 UTC (permalink / raw)
  To: binutils; +Cc: gdb

When I try to build GDB
with --enable-targets=all --enable-64bit-bfd
I get the following error:


/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../../purecv
s/bfd -I. -I. -I../../purecvs/bfd -I../../purecvs/bfd/../include
-DBINDIR='"/u
sr/local/bin"'  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror
-gstab
s+ -O0 -c -o plugin.lo ../../purecvs/bfd/plugin.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../purecvs/bfd -I. -I.
-I../../p
urecvs/bfd -I../../purecvs/bfd/../include -DBINDIR=\"/usr/local/bin\" -W
-Wall -
Wstrict-prototypes -Wmissing-prototypes -Werror -gstabs+ -O0 -c
../../purecvs/bf
d/plugin.c -o plugin.o
../../purecvs/bfd/plugin.c: In function `load_plugin':
../../purecvs/bfd/plugin.c:206: error: structure has no member named
`d_type'
../../purecvs/bfd/plugin.c:206: error: `DT_REG' undeclared (first use in
this fu
nction)
../../purecvs/bfd/plugin.c:206: error: (Each undeclared identifier is
reported o
nly once
../../purecvs/bfd/plugin.c:206: error: for each function it appears in.)
../../purecvs/bfd/plugin.c:206: error: structure has no member named
`d_type'
../../purecvs/bfd/plugin.c:206: error: `DT_LNK' undeclared (first use in
this fu
nction)
make[2]: *** [plugin.lo] Error 1
make[2]: Leaving directory `/usr/local/src/gdbcvs/multibuild/bfd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/gdbcvs/multibuild/bfd'
make: *** [all] Error 2


There is no d_type field for dirent structure on the currently distributed 
cygwin. It seems that this field has been added recently
in winsup directory, but is it possible to fix that build failure
nonetheless?


Pierre Muller
Pascal language support maintainer for GDB




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

* Re: [Build failure] Cygwin GDB multibuild failure
  2009-06-22 22:36 [Build failure] Cygwin GDB multibuild failure Pierre Muller
@ 2009-06-22 23:02 ` Dave Korn
  2009-06-23  1:37 ` Hui Zhu
  1 sibling, 0 replies; 7+ messages in thread
From: Dave Korn @ 2009-06-22 23:02 UTC (permalink / raw)
  To: Pierre Muller; +Cc: binutils, gdb

Pierre Muller wrote:
> When I try to build GDB
> with --enable-targets=all --enable-64bit-bfd
> I get the following error:

> ../../purecvs/bfd/plugin.c: In function `load_plugin':
> ../../purecvs/bfd/plugin.c:206: error: structure has no member named
> `d_type'

> There is no d_type field for dirent structure on the currently distributed 
> cygwin. It seems that this field has been added recently
> in winsup directory, but is it possible to fix that build failure
> nonetheless?

  As far as I can see, POSIX guarantees nothing beyond the presence of d_ino
and d_name[], so use of d_type should probably be protected by some kind of
autoconf test.  I don't know if there already is a suitable one or not.

    cheers,
      DaveK


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

* Re: [Build failure] Cygwin GDB multibuild failure
  2009-06-22 22:36 [Build failure] Cygwin GDB multibuild failure Pierre Muller
  2009-06-22 23:02 ` Dave Korn
@ 2009-06-23  1:37 ` Hui Zhu
  2009-06-25  9:20   ` Rafael Espindola
  1 sibling, 1 reply; 7+ messages in thread
From: Hui Zhu @ 2009-06-23  1:37 UTC (permalink / raw)
  To: Pierre Muller, Nick Clifton, Rafael Avila de Espindola; +Cc: binutils, gdb

On Tue, Jun 23, 2009 at 06:36, Pierre Muller<muller@ics.u-strasbg.fr> wrote:
> When I try to build GDB
> with --enable-targets=all --enable-64bit-bfd
> I get the following error:
>
>
> /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
> -I../../purecv
> s/bfd -I. -I. -I../../purecvs/bfd -I../../purecvs/bfd/../include
> -DBINDIR='"/u
> sr/local/bin"'  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror
> -gstab
> s+ -O0 -c -o plugin.lo ../../purecvs/bfd/plugin.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../purecvs/bfd -I. -I.
> -I../../p
> urecvs/bfd -I../../purecvs/bfd/../include -DBINDIR=\"/usr/local/bin\" -W
> -Wall -
> Wstrict-prototypes -Wmissing-prototypes -Werror -gstabs+ -O0 -c
> ../../purecvs/bf
> d/plugin.c -o plugin.o
> ../../purecvs/bfd/plugin.c: In function `load_plugin':
> ../../purecvs/bfd/plugin.c:206: error: structure has no member named
> `d_type'
> ../../purecvs/bfd/plugin.c:206: error: `DT_REG' undeclared (first use in
> this fu
> nction)
> ../../purecvs/bfd/plugin.c:206: error: (Each undeclared identifier is
> reported o
> nly once
> ../../purecvs/bfd/plugin.c:206: error: for each function it appears in.)
> ../../purecvs/bfd/plugin.c:206: error: structure has no member named
> `d_type'
> ../../purecvs/bfd/plugin.c:206: error: `DT_LNK' undeclared (first use in
> this fu
> nction)
> make[2]: *** [plugin.lo] Error 1
> make[2]: Leaving directory `/usr/local/src/gdbcvs/multibuild/bfd'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/src/gdbcvs/multibuild/bfd'
> make: *** [all] Error 2
>
>
> There is no d_type field for dirent structure on the currently distributed
> cygwin. It seems that this field has been added recently
> in winsup directory, but is it possible to fix that build failure
> nonetheless?
>

I got this issue too.

http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/plugin.c?cvsroot=src

Thanks,
Hui


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

* Re: [Build failure] Cygwin GDB multibuild failure
  2009-06-23  1:37 ` Hui Zhu
@ 2009-06-25  9:20   ` Rafael Espindola
  2009-06-25 11:39     ` Dave Korn
  0 siblings, 1 reply; 7+ messages in thread
From: Rafael Espindola @ 2009-06-25  9:20 UTC (permalink / raw)
  To: Hui Zhu; +Cc: Pierre Muller, Nick Clifton, binutils, gdb

> I got this issue too.
>
> http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/plugin.c?cvsroot=src

This should be fixed by

http://sourceware.org/ml/binutils/2009-06/msg00111.html

which was approved at

http://sourceware.org/ml/binutils/2009-06/msg00135.html

Unfortunately I don't have write access.

> Thanks,
> Hui
>


Cheers,
-- 
Rafael Avila de Espindola

Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047


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

* Re: [Build failure] Cygwin GDB multibuild failure
  2009-06-25  9:20   ` Rafael Espindola
@ 2009-06-25 11:39     ` Dave Korn
  2009-06-25 12:33       ` Dave Korn
  0 siblings, 1 reply; 7+ messages in thread
From: Dave Korn @ 2009-06-25 11:39 UTC (permalink / raw)
  To: Rafael Espindola; +Cc: Hui Zhu, Pierre Muller, Nick Clifton, binutils, gdb

Rafael Espindola wrote:
>> I got this issue too.
>>
>> http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/plugin.c?cvsroot=src
> 
> This should be fixed by
> 
> http://sourceware.org/ml/binutils/2009-06/msg00111.html
> 
> which was approved at
> 
> http://sourceware.org/ml/binutils/2009-06/msg00135.html
> 
> Unfortunately I don't have write access.

  I'll check it in for you shortly.

    cheers,
      DaveK


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

* Re: [Build failure] Cygwin GDB multibuild failure
  2009-06-25 11:39     ` Dave Korn
@ 2009-06-25 12:33       ` Dave Korn
  2009-06-25 15:28         ` Pierre Muller
  0 siblings, 1 reply; 7+ messages in thread
From: Dave Korn @ 2009-06-25 12:33 UTC (permalink / raw)
  To: Dave Korn
  Cc: Rafael Espindola, Hui Zhu, Pierre Muller, Nick Clifton, binutils, gdb

Dave Korn wrote:
> Rafael Espindola wrote:
>> This should be fixed by
>>
>> http://sourceware.org/ml/binutils/2009-06/msg00111.html
>>
>> which was approved at
>>
>> http://sourceware.org/ml/binutils/2009-06/msg00135.html
>>
>> Unfortunately I don't have write access.
> 
>   I'll check it in for you shortly.

  Committed.  Thanks for helping!

    cheers,
      DaveK


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

* RE: [Build failure] Cygwin GDB multibuild failure
  2009-06-25 12:33       ` Dave Korn
@ 2009-06-25 15:28         ` Pierre Muller
  0 siblings, 0 replies; 7+ messages in thread
From: Pierre Muller @ 2009-06-25 15:28 UTC (permalink / raw)
  To: 'Dave Korn'
  Cc: 'Rafael Espindola', 'Hui Zhu',
	'Nick Clifton',
	binutils, gdb

Just a small answer to confirm that
I was able to compile again successfully a
GDB with "--enable-targets=all --enable-64bit-bfd" options.

  Thanks to everyone,


Pierre Muller
Pascal language support maintainer for GDB


> -----Message d'origine-----
> De : Dave Korn [mailto:dave.korn.cygwin@googlemail.com]
> Envoyé : Thursday, June 25, 2009 2:46 PM
> À : Dave Korn
> Cc : Rafael Espindola; Hui Zhu; Pierre Muller; Nick Clifton;
> binutils@sourceware.org; gdb@sourceware.org
> Objet : Re: [Build failure] Cygwin GDB multibuild failure
> 
> Dave Korn wrote:
> > Rafael Espindola wrote:
> >> This should be fixed by
> >>
> >> http://sourceware.org/ml/binutils/2009-06/msg00111.html
> >>
> >> which was approved at
> >>
> >> http://sourceware.org/ml/binutils/2009-06/msg00135.html
> >>
> >> Unfortunately I don't have write access.
> >
> >   I'll check it in for you shortly.
> 
>   Committed.  Thanks for helping!
> 
>     cheers,
>       DaveK


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

end of thread, other threads:[~2009-06-25 15:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-22 22:36 [Build failure] Cygwin GDB multibuild failure Pierre Muller
2009-06-22 23:02 ` Dave Korn
2009-06-23  1:37 ` Hui Zhu
2009-06-25  9:20   ` Rafael Espindola
2009-06-25 11:39     ` Dave Korn
2009-06-25 12:33       ` Dave Korn
2009-06-25 15:28         ` Pierre Muller

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