gcc-3.02 build failure on Mac OS 10.1.1 in function.c

Andrew Pinski pinskia@physics.uc.edu
Thu Dec 13 14:47:00 GMT 2001


gcc-3.0.x is not for Mac OS X.
You have to get a snapshot of the gcc 3.1 or use cvs to download the
mainline of gcc or from Apple's Darwin's source.

Thanks,
Andrew Pinski


PS you can build a cross-compiler with gcc-3.0.x on Mac OS X though.
On Thursday, December 13, 2001, at 12:47 , Ed Lazarus wrote:

> Machine is
> cx155198-a>uname -a
> Darwin cx155198-a.dt1.sdca.home.com 5.1 Darwin Kernel Version 5.1: Tue 
> Oct 30 00:06:34 PST 2001; root:xnu/xnu-201.5.obj~1/RELEASE_PPC Power 
> Macintosh powerpc
>
> I configure with no arguments.
> Get Links are now set up to build a native compiler for 
> powerpc-apple-darwin5.1
> see in the configure:
> checking host system type... powerpc-apple-darwin5.1
> checking target system type... powerpc-apple-darwin5.1
> checking build system type... powerpc-apple-darwin5.1
> and
>
> Using `/usr/local/gcc-3.0.2/gcc/config/rs6000/rs6000.c' for 
> machine-specific logic.
> Using `/usr/local/gcc-3.0.2/gcc/config/rs6000/rs6000.md' as machine 
> description file.
> Using `/usr/local/gcc-3.0.2/gcc/config/rs6000/rs6000.h' as target 
> machine macro file.
> Using the following host machine macro files:
>         /usr/local/gcc-3.0.2/gcc/config/rs6000/xm-rs6000.h
>         /usr/local/gcc-3.0.2/gcc/config/rs6000/xm-darwin.h
> Then
> make | tee make.log
> proceeds until function.c where the make dies:
> gcc -c  -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes 
> -Wmissin
> g-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H    
> -I. -I.
> -I/usr/local/gcc-3.0.2/gcc -I/usr/local/gcc-3.0.2/gcc/. 
> -I/usr/local/gcc-3.0.2/g
> cc/config -I/usr/local/gcc-3.0.2/gcc/../include 
> /usr/local/gcc-3.0.2/gcc/functio
> n.c -o function.o
> /usr/local/gcc-3.0.2/gcc/toplev.h:48: illegal function definition, 
> found `__attr
> ibute__'
> /usr/local/gcc-3.0.2/gcc/toplev.h:51: illegal function definition, 
> found `__attr
> ibute__'
> cpp-precomp: warning: errors during smart preprocessing, retrying in 
> basic mode
> In file included from /usr/local/gcc-3.0.2/gcc/function.c:42:
> /usr/local/gcc-3.0.2/gcc/system.h:320: warning: ANSI C forbids const or 
> volatile
>  functions
> In file included from /usr/local/gcc-3.0.2/gcc/system.h:494,
>                  from /usr/local/gcc-3.0.2/gcc/function.c:42:
> /usr/local/gcc-3.0.2/gcc/../include/libiberty.h:91: warning: ANSI C 
> forbids cons
> t or volatile functions
> /usr/local/gcc-3.0.2/gcc/../include/libiberty.h:101: warning: ANSI C 
> forbids con
> st or volatile functions
> /usr/local/gcc-3.0.2/gcc/../include/libiberty.h:126: warning: ANSI C 
> forbids con
> st or volatile functions
> In file included from /usr/local/gcc-3.0.2/gcc/function.c:43:
> /usr/local/gcc-3.0.2/gcc/rtl.h:1207: warning: ANSI C forbids const or 
> volatile f
> unctions
> /usr/local/gcc-3.0.2/gcc/rtl.h:1439: warning: ANSI C forbids const or 
> volatile f
> unctions
> In file included from /usr/local/gcc-3.0.2/gcc/function.c:44:
> In file included from /usr/local/gcc-3.0.2/gcc/function.c:44:
> /usr/local/gcc-3.0.2/gcc/tree.h:2456: warning: ANSI C forbids const or 
> volatile
> functions
> /usr/local/gcc-3.0.2/gcc/tree.h:2510: warning: ANSI C forbids const or 
> volatile
> functions
> /usr/local/gcc-3.0.2/gcc/tree.h:2646: warning: ANSI C forbids const or 
> volatile
> functions
> In file included from /usr/local/gcc-3.0.2/gcc/function.c:53:
> /usr/local/gcc-3.0.2/gcc/output.h:128: warning: ANSI C forbids const or 
> volatile
>  functions
> In file included from /usr/local/gcc-3.0.2/gcc/function.c:56:
> /usr/local/gcc-3.0.2/gcc/toplev.h:45: warning: ANSI C forbids const or 
> volatile
> functions
> In file included from /usr/local/gcc-3.0.2/gcc/function.c:58:
> /usr/local/gcc-3.0.2/gcc/ggc.h:136: warning: ANSI C forbids const or 
> volatile fu
> nctions
> /usr/local/gcc-3.0.2/gcc/function.c: In function `assign_stack_local_1':
> /usr/local/gcc-3.0.2/gcc/function.c:596: `DEFAULT_ABI' undeclared 
> (first use in
> this function)
> /usr/local/gcc-3.0.2/gcc/function.c:596: (Each undeclared identifier is 
> reported
>  only once
> /usr/local/gcc-3.0.2/gcc/function.c:596: for each function it appears 
> in.)
> /usr/local/gcc-3.0.2/gcc/function.c: In function `fixup_memory_subreg':
> /usr/local/gcc-3.0.2/gcc/function.c:2519: warning: comparison between 
> signed and
>  unsigned
> /usr/local/gcc-3.0.2/gcc/function.c:2520: warning: comparison between 
> signed and
>  unsigned
> /usr/local/gcc-3.0.2/gcc/function.c: In function `optimize_bit_field':
> /usr/local/gcc-3.0.2/gcc/function.c:2716: warning: comparison between 
> signed and
>  unsigned
> /usr/local/gcc-3.0.2/gcc/function.c:2718: warning: comparison between 
> signed and
>  unsigned
> /usr/local/gcc-3.0.2/gcc/function.c:2764: warning: comparison between 
> signed and
>  unsigned
> /usr/local/gcc-3.0.2/gcc/function.c: In function `purge_addressof_1':
> /usr/local/gcc-3.0.2/gcc/function.c:3074: warning: comparison between 
> signed and
>  unsigned
> /usr/local/gcc-3.0.2/gcc/function.c: In function 
> `instantiate_virtual_regs':
> /usr/local/gcc-3.0.2/gcc/function.c:3514: `DEFAULT_ABI' undeclared 
> (first use in
>  this function)
> /usr/local/gcc-3.0.2/gcc/function.c: In function `instantiate_decls':
> /usr/local/gcc-3.0.2/gcc/function.c: In function `instantiate_decls':
> /usr/local/gcc-3.0.2/gcc/function.c:3581: warning: comparison between 
> signed and
>  unsigned
> /usr/local/gcc-3.0.2/gcc/function.c: In function `aggregate_value_p':
> /usr/local/gcc-3.0.2/gcc/function.c:4201: `DEFAULT_ABI' undeclared 
> (first use in
>  this function)
> /usr/local/gcc-3.0.2/gcc/function.c: In function `assign_parms':
> /usr/local/gcc-3.0.2/gcc/function.c:4554: `DEFAULT_ABI' undeclared 
> (first use in
>  this function)
> /usr/local/gcc-3.0.2/gcc/function.c: In function `locate_and_pad_parm':
> /usr/local/gcc-3.0.2/gcc/function.c:5192: `DEFAULT_ABI' undeclared 
> (first use in
>  this function)
> make[1]: *** [function.o] Error 1
> make: *** [all-gcc] Error 2
>
>
>
> Ed Lazarus
> 3009 Union St. #8
> San Diego, CA 92103
> 619/688-3909
> 509/271-5595 (efax)
> elaz@home.com
>



More information about the Gcc-bugs mailing list