From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 72365 invoked by alias); 3 Nov 2015 12:24:58 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 72348 invoked by uid 89); 3 Nov 2015 12:24:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wm0-f54.google.com Received: from mail-wm0-f54.google.com (HELO mail-wm0-f54.google.com) (74.125.82.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 03 Nov 2015 12:24:56 +0000 Received: by wmff134 with SMTP id f134so13347423wmf.0 for ; Tue, 03 Nov 2015 04:24:53 -0800 (PST) X-Received: by 10.28.217.130 with SMTP id q124mr18001982wmg.92.1446553493171; Tue, 03 Nov 2015 04:24:53 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.227.130 with HTTP; Tue, 3 Nov 2015 04:24:13 -0800 (PST) Reply-To: fracting@gmail.com In-Reply-To: References: <1446492970-21432-1-git-send-email-palves@redhat.com> <5637C1FA.2060708@redhat.com> From: Qian Hong Date: Tue, 03 Nov 2015 12:24:00 -0000 Message-ID: Subject: Re: [PATCH 00/11] C++/MinGW patches To: Pedro Alves Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00069.txt.bz2 Hi Pedro, I found the below error when cross compile with `./configure --host=3Di686-w64-mingw32 --enable-build-with-cxx`: objcopy.c: In function =E2=80=98parse_symflags=E2=80=99: objcopy.c:792:7: error: implicit declaration of function =E2=80=98strndup= =E2=80=99 [-Werror=3Dimplicit-function-declaration] PARSE_OTHER ("before=3D", *other); ^ objcopy.c:774:9: error: incompatible implicit declaration of built-in function =E2=80=98strndup=E2=80=99 [-Werror] fval =3D strndup (s + sizeof fname - 1, len - sizeof fname + 1) ^ objcopy.c:792:7: note: in expansion of macro =E2=80=98PARSE_OTHER=E2=80=99 PARSE_OTHER ("before=3D", *other); ^ objcopy.c: In function =E2=80=98copy_main=E2=80=99: objcopy.c:4085:23: error: incompatible implicit declaration of built-in function =E2=80=98strndup=E2=80=99 [-Werror] newsym->symdef =3D strndup (optarg, s - optarg); ^ cc1: all warnings being treated as errors Makefile:939: recipe for target 'objcopy.o' failed make[4]: *** [objcopy.o] Error 1