This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

3.2.1 warnings are treated like errors?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]