This is the mail archive of the gdb-patches@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: [PATCH v3 10/13] don't check for unistd.h


  Hi,

  I am not totally sure this is related,
but I got a new error when trying to cross compile
for i686-w64-mingw32 using cygwin.
m32r-rom.o: dans la fonction « m32r_upload_command »:
/home/Pierre/git/build/binu-gdb-mingw32/gdb/../../../binutils-gdb/gdb/m32r-r
om.c:472: référence indéfinie vers «
_imp__gethostname_used_without_requesting_gnulib_module_gethostname@8 »
collect2: erreur: ld a retourné 1 code d'état d'exécution

I tried to run ./config.status --recheck; make
but that did not solve the problem...

To double check, I completely erased the build directory
and reran the "../build/XXX/configure" with required options
and  "make all-gdb": Same error...

Could someone double-check if this is a general problem
with mingw target?

How could this problem be solved?

Pierre Muller





i686-w64-mingw32-gcc -gstabs+ -O0 -D__USE_MINGW_ACCESS   -static-libstdc++
-static-libgcc -static -Wl,--stack,12582912   \
        -o gdb.exe gdb.o armbsd-tdep.o arm-linux-tdep.o arm-symbian-tdep.o
armnbsd-tdep.o armobsd-tdep.o arm-tdep.o arm-wince-tdep.o avr-tdep.o
bfin-linux-tdep.o bfin-tdep.o cris-linux-tdep.o cris-tdep.o dicos-tdep.o
frv-linux-tdep.o frv-tdep.o h8300-tdep.o hppabsd-tdep.o hppanbsd-tdep.o
hppaobsd-tdep.o hppa-hpux-tdep.o hppa-linux-tdep.o hppa-tdep.o
i386bsd-tdep.o i386-cygwin-tdep.o i386fbsd-tdep.o i386gnu-tdep.o
i386-linux-tdep.o i386nbsd-tdep.o i386-nto-tdep.o i386obsd-tdep.o
i386-sol2-tdep.o i386-tdep.o i387-tdep.o i386-dicos-tdep.o
i386-darwin-tdep.o iq2000-tdep.o linux-tdep.o lm32-tdep.o m32c-tdep.o
m32r-linux-tdep.o m32r-tdep.o m68hc11-tdep.o m68kbsd-tdep.o m68klinux-tdep.o
m68k-tdep.o m88k-tdep.o mep-tdep.o microblaze-tdep.o microblaze-linux-tdep.o
mips-irix-tdep.o mips-linux-tdep.o mipsnbsd-tdep.o mips-tdep.o
mn10300-linux-tdep.o mn10300-tdep.o moxie-tdep.o msp430-tdep.o mt-tdep.o
nios2-tdep.o nios2-linux-tdep.o nto-tdep.o ppc-linux-tdep.o ppcfbsd-tdep.o
ppcnbsd-tdep.o ppcobsd-tdep.o ppc-sysv-tdep.o ppc64-tdep.o rl78-tdep.o
rs6000-aix-tdep.o rs6000-tdep.o solib-aix.o ppc-ravenscar-thread.o
rs6000-lynx178-tdep.o rx-tdep.o s390-linux-tdep.o score-tdep.o sh64-tdep.o
sh-linux-tdep.o shnbsd-tdep.o sh-tdep.o sparc-linux-tdep.o sparcnbsd-tdep.o
sparcobsd-tdep.o sparc-sol2-tdep.o sparc-tdep.o sparc-ravenscar-thread.o
spu-tdep.o spu-multiarch.o solib-spu.o tic6x-tdep.o tic6x-linux-tdep.o
tilegx-tdep.o tilegx-linux-tdep.o v850-tdep.o vaxnbsd-tdep.o vaxobsd-tdep.o
vax-tdep.o xstormy16-tdep.o xtensa-config.o xtensa-tdep.o
xtensa-linux-tdep.o glibc-tdep.o bsd-uthread.o nbsd-tdep.o obsd-tdep.o
sol2-tdep.o solib-frv.o solib-irix.o solib-svr4.o solib-som.o solib-pa64.o
solib-darwin.o solib-dsbt.o dbug-rom.o dink32-rom.o ppcbug-rom.o m32r-rom.o
dsrec.o monitor.o remote-m32r-sdi.o remote-mips.o xcoffread.o symfile-mem.o
windows-tdep.o linux-record.o ravenscar-thread.o aarch64-tdep.o
aarch64-linux-tdep.o aarch64-newlib-tdep.o alphabsd-tdep.o alphafbsd-tdep.o
alpha-linux-tdep.o alpha-mdebug-tdep.o alphanbsd-tdep.o alphaobsd-tdep.o
alpha-osf1-tdep.o alpha-tdep.o amd64fbsd-tdep.o amd64-darwin-tdep.o
amd64-dicos-tdep.o amd64-linux-tdep.o amd64nbsd-tdep.o amd64obsd-tdep.o
amd64-sol2-tdep.o amd64-tdep.o amd64-windows-tdep.o ia64-hpux-tdep.o
ia64-linux-tdep.o ia64-vms-tdep.o ia64-tdep.o mips64obsd-tdep.o
sparc64fbsd-tdep.o sparc64-linux-tdep.o sparc64nbsd-tdep.o
sparc64obsd-tdep.o sparc64-sol2-tdep.o sparc64-tdep.o ser-base.o ser-tcp.o
ser-mingw.o i386-nat.o windows-nat.o i386-windows-nat.o remote.o dcache.o
tracepoint.o ax-general.o ax-gdb.o remote-fileio.o remote-notif.o ctf.o
cli-dump.o cli-decode.o cli-script.o cli-cmds.o cli-setshow.o cli-logging.o
cli-interp.o cli-utils.o mi-out.o mi-console.o mi-cmds.o mi-cmd-catch.o
mi-cmd-env.o mi-cmd-var.o mi-cmd-break.o mi-cmd-stack.o mi-cmd-file.o
mi-cmd-disas.o mi-symbol-cmds.o mi-cmd-target.o mi-cmd-info.o mi-interp.o
mi-main.o mi-parse.o mi-getopt.o windows-termcap.o python.o py-value.o
py-prettyprint.o py-auto-load.o elfread.o stap-probe.o machoread.o somread.o
mingw-hdep.o c-exp.o cp-name-parser.o ada-exp.o jv-exp.o f-exp.o go-exp.o
m2-exp.o p-exp.o version.o annotate.o addrmap.o auto-load.o auxv.o agent.o
bfd-target.o blockframe.o breakpoint.o break-catch-sig.o break-catch-throw.o
findvar.o regcache.o cleanups.o charset.o continuations.o corelow.o disasm.o
dummy-frame.o dfp.o source.o value.o eval.o valops.o valarith.o valprint.o
printcmd.o block.o symtab.o psymtab.o symfile.o symfile-debug.o symmisc.o
linespec.o dictionary.o infcall.o infcmd.o infrun.o expprint.o environ.o
stack.o thread.o exceptions.o filesystem.o filestuff.o inf-child.o interps.o
minidebug.o main.o macrotab.o macrocmd.o macroexp.o macroscope.o mi-common.o
event-loop.o event-top.o inf-loop.o completer.o gdbarch.o arch-utils.o
gdbtypes.o gdb_bfd.o gdb_obstack.o osabi.o copying.o memattr.o mem-break.o
target.o parse.o language.o build-id.o buildsym.o findcmd.o std-regs.o
signals.o exec.o reverse.o bcache.o objfiles.o observer.o minsyms.o maint.o
demangle.o dbxread.o coffread.o coff-pe-read.o dwarf2read.o mipsread.o
stabsread.o corefile.o dwarf2expr.o dwarf2loc.o dwarf2-frame.o
dwarf2-frame-tailcall.o ada-lang.o c-lang.o d-lang.o f-lang.o objc-lang.o
ada-tasks.o ada-varobj.o c-varobj.o ui-out.o cli-out.o varobj.o vec.o
go-lang.o go-valprint.o go-typeprint.o jv-lang.o jv-valprint.o
jv-typeprint.o jv-varobj.o m2-lang.o opencl-lang.o p-lang.o p-typeprint.o
p-valprint.o sentinel-frame.o complaints.o typeprint.o ada-typeprint.o
c-typeprint.o f-typeprint.o m2-typeprint.o ada-valprint.o c-valprint.o
cp-valprint.o d-valprint.o f-valprint.o m2-valprint.o serial.o mdebugread.o
top.o utils.o ui-file.o user-regs.o frame.o frame-unwind.o doublest.o
frame-base.o inline-frame.o gnu-v2-abi.o gnu-v3-abi.o cp-abi.o cp-support.o
cp-namespace.o reggroups.o regset.o trad-frame.o tramp-frame.o solib.o
solib-target.o prologue-value.o memory-map.o memrange.o xml-support.o
xml-syscall.o xml-utils.o target-descriptions.o target-memory.o xml-tdesc.o
xml-builtin.o inferior.o osdata.o gdb_usleep.o record.o record-full.o
gcore.o gdb_vecs.o jit.o progspace.o skip.o probe.o common-utils.o buffer.o
ptid.o gdb-dlfcn.o common-agent.o format.o registry.o btrace.o
record-btrace.o waitstatus.o inflow.o    init.o \
           ../readline/libreadline.a ../opcodes/libopcodes.a ../bfd/libbfd.a
./../intl/libintl.a -liconv ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a    -ldl -lm   -liconv -lexpat
../libiberty/libiberty.a -lws2_32 build-gnulib/import/libgnu.a
m32r-rom.o: dans la fonction « m32r_upload_command »:
/home/Pierre/git/build/binu-gdb-mingw32/gdb/../../../binutils-gdb/gdb/m32r-r
om.c:472: référence indéfinie vers «
_imp__gethostname_used_without_requesting_gnulib_module_gethostname@8 »
collect2: erreur: ld a retourné 1 code d'état d'exécution
Makefile:1227: recipe for target 'gdb.exe' failed
make: *** [gdb.exe] Error 1

> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Tom Tromey
> Envoyé : lundi 18 novembre 2013 18:25
> À : gdb-patches@sourceware.org
> Cc : Tom Tromey
> Objet : [PATCH v3 10/13] don't check for unistd.h
> 
> We don't use the result of checking for unistd.h, so this removes the
> check.
> 
> 2013-11-18  Tom Tromey  <tromey@redhat.com>
> 
> 	* configure: Rebuild.
> 	* configure.ac: Don't check for unistd.h.
> ---
>  gdb/ChangeLog    | 5 +++++
>  gdb/configure    | 2 +-
>  gdb/configure.ac | 2 +-
>  3 files changed, 7 insertions(+), 2 deletions(-)
> 
> diff --git a/gdb/configure b/gdb/configure
> index 9739195..23e533d 100755
> --- a/gdb/configure
> +++ b/gdb/configure
> @@ -8762,7 +8762,7 @@ for ac_header in nlist.h machine/reg.h poll.h
> sys/poll.h proc_service.h \
>  		  sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
>  		  sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
>  		  termios.h termio.h \
> -		  sgtty.h unistd.h elf_hp.h \
> +		  sgtty.h elf_hp.h \
>  		  dlfcn.h
>  do :
>    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
> diff --git a/gdb/configure.ac b/gdb/configure.ac
> index 74d56e4..d2b5d29 100644
> --- a/gdb/configure.ac
> +++ b/gdb/configure.ac
> @@ -1081,7 +1081,7 @@ AC_CHECK_HEADERS([nlist.h machine/reg.h poll.h
> sys/poll.h proc_service.h \
>  		  sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
>  		  sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
>  		  termios.h termio.h \
> -		  sgtty.h unistd.h elf_hp.h \
> +		  sgtty.h elf_hp.h \
>  		  dlfcn.h])
>  AC_CHECK_HEADERS(sys/proc.h, [], [],
>  [#if HAVE_SYS_PARAM_H
> --
> 1.8.1.4


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