This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 3.2.1 warnings are treated like errors?
- From: Brian Ford <ford at vss dot fsi dot com>
- To: gcc-bugs at gcc dot gnu dot org, <gcc at gcc dot gnu dot org>
- Date: Thu, 5 Dec 2002 18:37:32 -0600 (CST)
- Subject: Re: 3.2.1 warnings are treated like errors?
In case anyone else was wondering, this was an ultrasparc optimizer bug.
I re-bootstrapped without --with-cpu=ultrasparc and the problem went away.
As for the CONFIG_SHELL problem, it went away if I not only defined it
with env before the initial configure, but defined it also on the make
bootstrap command line.
FYI
On Wed, 4 Dec 2002, Brian Ford wrote:
> I didn't get any response on the main gcc list, so I thought I would try
> here. Any help would be deeply appreciated. Thanks
>
> I just installed 3.2.1 and found that most warnings are now treated
> like errors (ie. fatal), yet they are still labeled as warnings. Any idea
> what is going on here? See below.
>
> 3.2.1:
> gcc -DPACKAGE=\"visual\" -DVERSION=\"6.5\ alpha\" -DHAVE_PTHREAD=1
> -DSTDC_HEADERS=1 -DV9=1 -D_POSIX_C_SOURCE=199506 -D__EXTENSIONS__=1 -I.
> -I../../../visual/lib/libmmm -I../../../visual/include
> -I../../../visual/util/irutil -pthreads -D_POSIX_THREAD_SEMANTICS -g
> -O2 -mcpu=v8 -mtune=ultrasparc -c ../../../visual/lib/libmmm/create_pal.c
> In file included from ../../../visual/lib/libmmm/create_pal.c:33:
> ../../../visual/lib/libmmm/octree.h:28: warning: redefinition of `uint'
> /usr/local/sparc-sun-solaris2.8/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/sys/types.h:509:
> warning: `uint' previously declared here
> ../../../visual/lib/libmmm/octree.h:29: warning: redefinition of `ulong'
> /usr/local/sparc-sun-solaris2.8/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/sys/types.h:510:
> warning: `ulong' previously declared here
> make[2]: *** [create_pal.o] Error 1
>
> 2.95.2:
> /usr/local/bin/gcc -DPACKAGE=\"visual\" -DVERSION=\"6.5\ alpha\"
> -DHAVE_PTHREAD=1 -DSTDC_HEADERS=1 -DV9=1 -D_POSIX_C_SOURCE=199506
> -D__EXTENSIONS__=1 -I. -I../../../visual/lib/libmmm
> -I../../../visual/include -I../../../visual/util/irutil -pthreads
> -D_POSIX_THREAD_SEMANTICS -g -O2 -mcpu=v8 -mtune=ultrasparc -c
> ../../../visual/lib/libmmm/create_pal.c
> In file included from ../../../visual/lib/libmmm/create_pal.c:33:
> ../../../visual/lib/libmmm/octree.h:28: warning: redefinition of `uint'
> /usr/include/sys/types.h:484: warning: `uint' previously declared here
> ../../../visual/lib/libmmm/octree.h:29: warning: redefinition of `ulong'
> /usr/include/sys/types.h:485: warning: `ulong' previously declared here
> ...
>
> I also had an installation problem with libtool and CONFIG_SHELL. INSTALL
> was getting set to "/bin/ksh install-sh" and that made libtool's argument
> parsing get off. Has anyone else seen this?
>
> make INSTALL=install-sh worked for Solaris 2.6, but it was not sufficient
> for sparcv9 multilibs on Solaris 8. I had to do more Makefile hacking to
> work around it there.
>
> Thanks.
>
>
--
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax: 314-551-8444