This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [MinGW-w64]Build gdb/ctf.c failed
- From: Yao Qi <yao at codesourcery dot com>
- To: asmwarrior <asmwarrior at gmail dot com>
- Cc: Tom Tromey <tromey at redhat dot com>, Eli Zaretskii <eliz at gnu dot org>, <gdb-patches at sourceware dot org>
- Date: Mon, 25 Mar 2013 15:37:58 +0800
- Subject: Re: [MinGW-w64]Build gdb/ctf.c failed
- References: <83ip4s4ixc dot fsf at gnu dot org> <1363407692-18959-1-git-send-email-yao at codesourcery dot com> <1363407692-18959-4-git-send-email-yao at codesourcery dot com> <CADPb22RwSq0iv_gQu5PSGezQoUy0ve16M2hmL51HvM19v0M5Ow at mail dot gmail dot com> <51492077 dot 30307 at codesourcery dot com> <83sj3qyogk dot fsf at gnu dot org> <87vc8m7z1d dot fsf at fleche dot redhat dot com> <514FA117 dot 9030604 at gmail dot com>
On 03/25/2013 08:57 AM, asmwarrior wrote:
'_mkdir' [-Werror=implicit-function-declaration]
cc1.exe: all warnings being treated as errors
make[2]: *** [ctf.o] Error 1
I installed mingw-w64-bin_i686-linux_20121031.tar.bz2 on my box and is
able to reproduce this failure.
I found that _mkdir was declared in the file: direct.h in MinGW-w64 SDKs:
_CRTIMP int __cdecl _mkdir(const char *_Path);
I checked the msdn, and it says that "_mkdir" should be in <direct.h>.
http://msdn.microsoft.com/en-us/library/2fkk4dzw(v=vs.80).aspx
so looks mingw-w64 doesn't do something wrong.
I am not familiar with mingw and mingw-64, and I'd like people familiar
with mingw (Eli?) suggest what is appropriate fix to this issue. Maybe,
we either have to include <direct.h> (with autconf checking) or import
mkdir module in gnulib.
--
Yao (éå)