opts.sh breaks compile on mingw

Andrew Pinski pinskia@physics.uc.edu
Sat Jun 28 05:46:00 GMT 2003


What version of gawk do you have, the lasted one without a patch had 
bugs in it.

Thanks,
Andrew Pinski


On Friday, Jun 27, 2003, at 23:09 US/Eastern, AWLaFramboise@aol.com 
wrote:

> Hi,
>
> I'm trying to compile mainline on i686-pc-mingw.
>
> I'm getting this error:
>
> AWK=gawk /bin/sh ../../gcc/gcc/opts.sh options.c options.h \
>         ../../gcc/gcc/c.opt ../../gcc/gcc/common.opt
> gcc -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings 
> -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long 
> -fno-common   -DHAVE_CONFIG_H    -I. -I. -I../../gcc/gcc 
> -I../../gcc/gcc/. -I../../gcc/gcc/config -I../../gcc/gcc/../include \
>         ../../gcc/gcc/c-opts.c -o c-opts.o
> ../../gcc/gcc/c-opts.c: In function `c_common_handle_option':
> ../../gcc/gcc/c-opts.c:414: `OPT_Wcomment' undeclared (first use in 
> this function)
> ../../gcc/gcc/c-opts.c:414: (Each undeclared identifier is reported 
> only once
> ../../gcc/gcc/c-opts.c:414: for each function it appears in.)
> ../../gcc/gcc/c-opts.c:547: `OPT_Wnon_virtual_dtor' undeclared (first 
> use in this function)
> make[1]: *** [c-opts.o] Error 1
> make[1]: Leaving directory 
> `/mingw/local/share/testenv/collect2/src/gcc/gccobj/gcc'
> make: *** [all-gcc] Error 2
>
>
> I've looked over the related files, and nothing looks
> seriously out-of-place.  However, I have trouble reading
> /bin/sh stuff, and whatever opts.sh is doing seems quite
> complicated (why?), so I really have no idea.  Perhaps
> the code to combine identical switches isn't working correctly?
>
> Just to comment on something I don't know anything about:
> It seems like it might be more reasonable for opts.sh
> to be written in C so people like me are able
> to work with it when there are problems.  Not everyone
> is a shell guru :)
>
> Aaron
>
>
>
>



More information about the Gcc mailing list