Kris Kennaway wrote: > On Sat, Apr 08, 2006 at 03:49:08PM +0200, V??clav Haisman wrote: >> Hi, >> today I tried to update to MySQL server 5.0.19 but GCC failed with ICE >> on one file. The FreeBSD is version 6.0. The error is reproducible with >> the linked preprocessed source and the command line bellow. This is a >> base GCC bug. >> >> Preprocessed source: http://logout.sh.cvut.cz/~wilx/item_subselect.ii.bz2 >> >> The command line: /usr/libexec/cc1plus -fpreprocessed item_subselect.ii >> -quiet -dumpbase item_subselect.cc -march=pentium3 -march=pentium3 >> -auxbase-strip item_subselect.o -O2 -O3 -O2 -O3 -version >> -fno-strict-aliasing -fno-omit-frame-pointer -fno-gcse >> -fno-strict-aliasing -fno-omit-frame-pointer -fno-gcse >> -felide-constructors -fno-rtti -fno-exceptions -fno-implicit-templates >> -fno-exceptions -fno-rtti -o item_subselect.s > > What CFLAGS are you using? All those optimizations look suspicious. My /etc/make.conf contains only CPUTYPE=p3 with respect to optimizations and the following for MySQL:
.if ${.CURDIR:M*/databases/mysql50-server} WITH_XCHARSET=all WITH_OPENSSL=yes WITH_PROC_SCOPE_PTH=yes WITH_ARCHIVE=yes WITH_NDB=yes BUILD_OPTIMIZED=yes .endif While the error is still reproducible I have a suspicion that faulty memory could be the cause. It could help me confirm/exclude that possibility if somebody could try to compile the preprocessed source with the pasted command. > > Kris Vaclav Haisman
signature.asc
Description: OpenPGP digital signature