Hi! My system: FreeBSD toomany.toomany.net 7.0-RELEASE FreeBSD 7.0-RELEASE #1: Thu Mar 20 20:46:21 CET 2008 root@toomany.toomany.net:/usr/obj/usr/src/sys/TOOMANY i386 System csup from today at 13:20 (aprox.). My make.conf flags: CPUTYPE?=prescott CFLAGS= -O -pipe CXXFLAGS+= -O -DNO_MALLOC_EXTRAS COPTFLAGS= -O -pipe #CCACHE CC=/usr/local/libexec/ccache/world-cc CXX=/usr/local/libexec/ccache/world-c++ (I try with and without ccache). Then, when I compile (with or without any CFLAG) the compilation fails with this error (in buildworld part): sh /usr/src/tools/install.sh -o root -g wheel -m 444 crtbegin.o /usr/obj/usr/src/tmp/usr/lib/crtbegin.o sh /usr/src/tools/install.sh -o root -g wheel -m 444 crtend.o /usr/obj/usr/src/tmp/usr/lib/crtend.o sh /usr/src/tools/install.sh -o root -g wheel -m 444 crtbeginT.o /usr/obj/usr/src/tmp/usr/lib/crtbeginT.o sh /usr/src/tools/install.sh -o root -g wheel -m 444 crtbegin.So /usr/obj/usr/src/tmp/usr/lib/crtbeginS.o sh /usr/src/tools/install.sh -o root -g wheel -m 444 crtend.So /usr/obj/usr/src/tmp/usr/lib/crtendS.o ===> lib/csu/i386-elf (obj,depend,all,install) rm -f .depend CC='/usr/local/libexec/ccache/world-cc' mkdep -f .depend -a -I/usr/src/lib/csu/i386-elf/../common -I/usr/src/lib/csu/i386-elf /../../libc/include /usr/src/lib/csu/i386-elf/crt1.c /usr/src/lib/csu/i386-elf/crti.S /usr/src/lib/csu/i386-elf/crtn.S /usr/local/libexec/ccache/world-cc -O -pipe -march=prescott -I/usr/src/lib/csu/i386-elf/../common -I/usr/src/lib/csu/i386-elf/. ./../libc/include -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpoi nter-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winlin e -Wnested-externs -Wredundant-decls -Wno-pointer-sign -c /usr/src/lib/csu/i386-elf/crt1.c cc1: error: unrecognized command line option "-Wchar-subscripts" *** Error code 1 Stop in /usr/src/lib/csu/i386-elf. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Anybody could help me, please? Thank you! -- Have a nice day ;-) TooManySecrets ===========================Dijo Confucio: "Ex?gete mucho a ti mismo y espera poco de los dem?s. As? te ahorrar?s disgustos." ============================
On Sat, Mar 22, 2008 at 02:09:31PM +0100, TooMany Secrets wrote:> System csup from today at 13:20 (aprox.). > > My make.conf flags: > CPUTYPE?=prescott > CFLAGS= -O -pipe > CXXFLAGS+= -O -DNO_MALLOC_EXTRAS > COPTFLAGS= -O -pipe > #CCACHE > CC=/usr/local/libexec/ccache/world-cc > CXX=/usr/local/libexec/ccache/world-c++ > (I try with and without ccache).> CC='/usr/local/libexec/ccache/world-cc' mkdep -f .depend -a > -I/usr/src/lib/csu/i386-elf/../common -I/usr/src/lib/csu/i386-elf > /../../libc/include /usr/src/lib/csu/i386-elf/crt1.c > /usr/src/lib/csu/i386-elf/crti.S /usr/src/lib/csu/i386-elf/crtn.S > /usr/local/libexec/ccache/world-cc -O -pipe -march=prescott > -I/usr/src/lib/csu/i386-elf/../common -I/usr/src/lib/csu/i386-elf/. > ./../libc/include -Wsystem-headers -Wall -Wno-format-y2k -W > -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpoi > nter-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow > -Wcast-align -Wunused-parameter -Wchar-subscripts -Winlin > e -Wnested-externs -Wredundant-decls -Wno-pointer-sign -c > /usr/src/lib/csu/i386-elf/crt1.c > cc1: error: unrecognized command line option "-Wchar-subscripts"There haven't been any changes to src/lib/csu/i386-elf in 2-4 years: http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/csu/i386-elf/ I'm willing to bet that the compiler tinkering you've done is causing said problem. It would indicate whatever compiler is being used ("world-cc") is acting as if it doesn't understand the compiler flag specified. I can assure you that gcc does support this option. It would be useful to see see the buildworld output with CXXFLAGS, COPTFLAGS, CC, and CXX disabled in your make.conf. I realise you said "I get the same error without this stuf", but you should've sent *that* buildworld output. :-) Also, you really should be using "?=" operators on those optimisation flags, in case something else overrides them. Yes, I know what the documentation in share/examples/etc/make.conf says, but I still recommend doing what I said. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |