This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v3 10/13] don't check for unistd.h
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Pierre Muller <pierre dot muller at ics-cnrs dot unistra dot fr>
- Cc: tromey at redhat dot com, gdb-patches at sourceware dot org
- Date: Tue, 19 Nov 2013 23:07:12 +0200
- Subject: Re: [PATCH v3 10/13] don't check for unistd.h
- Authentication-results: sourceware.org; auth=none
- References: <1384806318-12231-1-git-send-email-tromey at redhat dot com> <1384806318-12231-11-git-send-email-tromey at redhat dot com> <"00ee01cee569$bcb52d00$361f8700$ at muller"@ics-cnrs.unistra.fr>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
> Date: Tue, 19 Nov 2013 18:55:47 -0200
>
> 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?
It's a real problem, and comes with gnulib, see
gdb/gnulib/import/unistd.in.h. (Isn't the error message
self-explanatory enough?)