Fwd: Breakage on builder Fedora-x86_64-w64-mingw32, revision 79b377b3cf3a0e71e1e4710c4ee1e65e7a27a5d4

Nick Clifton nickc@redhat.com
Tue Jun 4 12:53:00 GMT 2019


Hi Nick,

  Hmm, it looks like there is still a problem building non-ELF based
  targets:

-------- Forwarded Message --------
Subject: Breakage on builder Fedora-x86_64-w64-mingw32, revision 79b377b3cf3a0e71e1e4710c4ee1e65e7a27a5d4
Date: Mon, 03 Jun 2019 12:03:09 -0400
From: gdb-buildbot@sergiodj.net
To: Nick Clifton <nickc@redhat.com>, gdb-patches@sourceware.org

Unfortunately it seems that there is a breakage on GDB.

Commit title: 'Revert patch that disables building libctf for non-ELF based targets.'
Revision: 79b377b3cf3a0e71e1e4710c4ee1e65e7a27a5d4

You can find more details below:

Full Build URL:
	<http://gdb-build.sergiodj.net/builders/Fedora-x86_64-w64-mingw32/builds/4479>

[rest deleted for clarity - full information can be found by following the URL]
-------------------------------------------------------------------



Searching through the build log, it appears that the problem is this:

/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../binutils-gdb/opcodes  -I. -I../../binutils-gdb/opcodes -I../bfd -I../../binutils-gdb/opcodes/../include -I../../binutils-gdb/opcodes/../bfd    -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Wno-format -Werror -g -D_GLIBCXX_DEBUG  -D__USE_MINGW_ACCESS -MT frv-ibld.lo -MD -MP -MF .deps/frv-ibld.Tpo -c -o frv-ibld.lo ../../binutils-gdb/opcodes/frv-ibld.c
libtool: compile:  x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../binutils-gdb/opcodes -I. -I../../binutils-gdb/opcodes -I../bfd -I../../binutils-gdb/opcodes/../include -I../../binutils-gdb/opcodes/../bfd -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Wno-format -Werror -g -D_GLIBCXX_DEBUG -D__USE_MINGW_ACCESS -MT frv-ibld.lo -MD -MP -MF .deps/frv-ibld.Tpo -c ../../binutils-gdb/opcodes/frv-ibld.c -o frv-ibld.o
yes

../../binutils-gdb/libctf/ctf-archive.c:73:54: error: 'O_CLOEXEC' undeclared (first use in this function); did you mean 'S_IEXEC'?
   if ((fd = open (file, O_RDWR | O_CREAT | O_TRUNC | O_CLOEXEC, 0666)) < 0)
                                                      ^~~~~~~~~
                                                      S_IEXEC
../../binutils-gdb/libctf/ctf-archive.c:73:54: note: each undeclared identifier is reported only once for each function it appears in


It looks like you might need a configure test for dup3(), or something similar.
(I chose dup3 because that it what libiberty appears to check when testing for
O_CLOEXEC availability).

Cheers
  Nick



More information about the Binutils mailing list