DragonFly bugs List (threaded) for 2008-11
DragonFly BSD
DragonFly bugs List (threaded) for 2008-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Compilation warning/error


From: Sascha Wildner <saw@xxxxxxxxx>
Date: Fri, 14 Nov 2008 16:08:13 +0100

Robert Gauthier schrieb:
.
Hi everyone !

With CPUTYPE=p3 in '/etc/make.conf', compilation breaks as such:
[ ... ]
===> usr.bin/uname
===> usr.bin/undo
cc -O -pipe -march=pentium3 -march=pentium3 -I/usr/src/usr.bin/undo/../../sys
-Wsystem-headers -Werror -Wall -W -Wno-unused-parameter -Wstrict-prototypes -Wmi
ssing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswi
tch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested -externs -Wredundant-decls -c /usr/src/usr.bin/undo/undo.c
cc1: warnings being treated as errors
/usr/src/usr.bin/undo/undo.c: In function 'output_history':
/usr/src/usr.bin/undo/undo.c:489: warning: 'hen.unused' may be used uninitialize
d in this function
*** Error code 1


Stop in /usr/src/usr.bin/undo.
*** Error code 1

Stop in /usr/src/usr.bin.
*** Error code 1

Sticking CPUTYPE=i686 instead of CPUTYPE=p3 in '/etc/make.conf' breaks compilation with the same double ( -march=* ):
===> usr.bin/undo
cc -O -pipe -march=pentiumpro -march=pentiumpro -I/usr/src/usr.bin/undo/../../sy


What is the solution to this strangness?

It's some gcc stupidity (generating different warnings if -march is tweaked). I guess we can't do much about that problem.


So I've taken out -Werror for now. Please update and try again.

Sascha

--
http://yoyodyne.ath.cx



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]