This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: gcc build is broken on powerpc-apple-darwin
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Mostafa Hagog <MUSTAFA at il dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: 27 Mar 2005 19:31:14 +0200
- Subject: Re: gcc build is broken on powerpc-apple-darwin
- Organization: Integrable Solutions
- References: <OFC3C30E3C.0BF40976-ON42256FD1.005E5455-42256FD1.005EF80A@il.ibm.com>
Mostafa Hagog <MUSTAFA@il.ibm.com> writes:
| I guess its due to the following patch (
| http://gcc.gnu.org/ml/gcc-cvs/2005-03/msg01320.html).
| I get the following error when trying to build gcc on powerpc-apple-darwin:
| gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../gcc/libiberty/../include -W
| -Wall -Wtraditional -pedantic ../../../gcc/libiberty/getopt1.c -o getopt1.o
| ../../../gcc/libiberty/getopt1.c: In function `getopt_long':
| ../../../gcc/libiberty/getopt1.c:71: warning: traditional C rejects ISO C
| style function definitions
| ../../../gcc/libiberty/getopt1.c: At top level:
| ../../../gcc/libiberty/getopt1.c:83: error: conflicting types for
| 'getopt_long_only'
| ../../../gcc/libiberty/../include/getopt.h:125: error: previous declaration
| of 'getopt_long_only' was here
| ../../../gcc/libiberty/getopt1.c: In function `getopt_long_only':
| ../../../gcc/libiberty/getopt1.c:83: warning: traditional C rejects ISO C
| style function definitions
| ../../../gcc/libiberty/getopt1.c:84: warning: passing arg 3 of
| `_getopt_internal' from incompatible pointer type
| make[1]: *** [getopt1.o] Error 1
| make: *** [all-build-libiberty] Error 2
Fixed with this
http://gcc.gnu.org/ml/gcc-patches/2005-03/msg02450.html
Please try again and let me know.
-- Gaby