This is the mail archive of the 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]

Re: Question on -Werror usage in Makefiles...

Eric Botcazou wrote:

We now can add also the -Werror patch from Kaveh to the Makefile...


./xgcc -B./ -B/opt/build/eric/gcc34/sparc-sun-solaris2.5.1/bin/ -isystem /opt/build/eric/gcc34/sparc-sun-solaris2.5.1/include -isystem /opt/build/eric/gcc34/sparc-sun-solaris2.5.1/sys-include -L/opt/build/eric/gcc/gcc/../ld -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Werror -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../src/gcc -I../src/gcc/. -I../src/gcc/../include -I../intl -DL_trampoline -c ../src/gcc/libgcc2.c -o libgcc/./_trampoline.o
../src/gcc/libgcc2.c: In function `__enable_execute_stack':

../src/gcc/libgcc2.c:1607: warning: implicit declaration of function `mprotect'
gmake[3]: *** [libgcc/./_trampoline.o] Error 1

mprotect is in sys/mman.h on Solaris 2 but take a look at the comment at the end of config/sol2.h


./xgcc -B./ -B/opt/build/eric/gcc34/sparc-sun-solaris2.5.1/bin/ -isystem /opt/build/eric/gcc34/sparc-sun-solaris2.5.1/include -isystem /opt/build/eric/gcc34/sparc-sun-solaris2.5.1/sys-include -L/opt/build/eric/gcc/gcc/../ld -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Werror -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../src/gcc -I../src/gcc/. -I../src/gcc/../include -I../intl -fexceptions -c ../src/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
../src/gcc/unwind-dw2.c: In function `uw_init_context_1':

../src/gcc/unwind-dw2.c:1286: warning: missing braces around initializer
../src/gcc/unwind-dw2.c:1286: warning: (near initialization for `once_regsizes.pthread_once_pad')
gmake[3]: *** [libgcc/./unwind-dw2.o] Error 1

How can such a patch have been accepted during stage3?

For reference see

I couldn't find an easy way to complete. Shheeesh.

Well, once more where solaris bootstrap is broken.


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