From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2071 invoked by alias); 22 Nov 2011 15:26:28 -0000 Received: (qmail 2026 invoked by uid 22791); 22 Nov 2011 15:26:26 -0000 X-SWARE-Spam-Status: No, hits=-0.1 required=5.0 tests=AWL,BAYES_50,MSGID_MULTIPLE_AT X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.151) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 22 Nov 2011 15:26:11 +0000 Received: from md2.u-strasbg.fr (md2.u-strasbg.fr [IPv6:2001:660:2402::187]) by mailhost.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id pAMFQ8GH000985 for ; Tue, 22 Nov 2011 16:26:09 +0100 (CET) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from mailserver.u-strasbg.fr (ms6.u-strasbg.fr [130.79.204.15]) by md2.u-strasbg.fr (8.14.4/jtpda-5.5pre1) with ESMTP id pAMFQ8Ij008118 for ; Tue, 22 Nov 2011 16:26:08 +0100 (CET) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from E6510Muller (gw-ics.u-strasbg.fr [130.79.210.225]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.4/jtpda-5.5pre1) with ESMTP id pAMFQ80j006157 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Tue, 22 Nov 2011 16:26:08 +0100 (CET) (envelope-from pierre.muller@ics-cnrs.unistra.fr) From: "Pierre Muller" To: References: <48683.3413750448$1288971470@news.gmane.org> <001c01cb9791$bc506ab0$34f14010$@muller@ics-cnrs.unistra.fr> <001f01cb979c$33b54080$9b1fc180$@muller@ics-cnrs.unistra.fr> In-Reply-To: <001f01cb979c$33b54080$9b1fc180$@muller@ics-cnrs.unistra.fr> Subject: [RFC] 2.22 release: Compilation failure for mingw32 target with --enable-targets=all Date: Tue, 22 Nov 2011 15:26:00 -0000 Message-ID: <001201cca92b$0e9fbfe0$2bdf3fa0$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-11/txt/msg00192.txt.bz2 This problem is still present in binutis-2.22 sources compilation with --enable-targets=all for mingw32 target fails due to a warning: gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.22/ld -I. -I../../binutils-2.22/ld - I../bfd -I../../binutils-2.22/ld/../bfd -I../../binutils-2.22/ld/../include -g -O0 -D__USE_MINGW_ACCESS -DENABLE_PLUGINS -DLOCALEDIR="\"/usr/local/share/locale \"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wno-format -Wer ror -g -O0 -D__USE_MINGW_ACCESS -MT eelf32_spu.o -MD -MP -MF .deps/eelf32_spu.Tp o -c -o eelf32_spu.o \ -DEMBEDSPU="\"`echo embedspu | sed 's/^ld-new$/ld.bfd/;s,y,y,'`\"" eel f32_spu.c cc1.exe: warnings being treated as errors eelf32_spu.c: In function 'spu_elf_relink': eelf32_spu.c:594:3: error: passing argument 2 of 'execvp' from incompatible poin ter type e:\msys\mingw32\bin\../lib/gcc/mingw32/4.5.2/../../../../include/process.h:1 20:4 2: note: expected 'const char * const*' but argument is of type 'char * const*' make[3]: *** [eelf32_spu.o] Error 1 >From http://sourceware.org/ml/binutils/2010-12/msg00337.html > I got one second problem for compilation of ld > for mingw with --enable-targets=all > also in emultempl/spuelf.em > about the type of execvp argument #2 > (char *const *) > type is given line 399, but > mingw process.h header > gives > (const char *const *) > > which results in a warning, turned into an error > because -Werror is the default. > > I tried to look up what the correct type should be, > but didn't find any real unambiguous definition of that > function. > > Pierre Muller I got no comment on that part of the email back then, and I still don't know if this should be considered as an error in mingw32 declarations or if it should be fixed in Binutils sources. I would like to know if this warning should be corrected or not... To be honest, I don't understand the difference between 'const char * const *' and 'char * const *' types anyway... Pierre Muller GDB pascal language maintainer