The error also appeared without optimizations. So far compiling with optimizations has never caused any trouble for me. Now it is working without problems. I suspect that it was a cooling problem of my RAM. Adi Pircalabu wrote:> On Tue, 06 Dec 2005 15:48:30 +0100 > "[LoN]Kamikaze" <LoN_Kamikaze@gmx.de> wrote: > > >>Gcc segfaults for me during a buildworld. >> >>In my make.conf: >>CPUTYPE?= pentium-m >>CFLAGS= -O2 -pipe > > > Hi, you probably know it's not recommended to use optimization flags > when building the base system. Please comment CFLAGS in /etc/make.conf > and retry with the same source tree.
Gcc segfaults for me during a buildworld. In my make.conf: CPUTYPE?= pentium-m CFLAGS= -O2 -pipe My last successful build was: FreeBSD 6.0-STABLE (TPR40-6) #0: Sat Nov 26 23:13:30 CET 2005 # make update was run right before building. Here's a tail of the buildworld log. ------------------------------------------------ building profiled panel library ranlib libpanel_p.a cat /usr/src/lib/libpanel/../../contrib/ncurses/man/panel.3x > panel.3 gzip -cn panel.3 > panel.3.gz ===> lib/libpcap (all) cc -pg -O2 -pipe -march=pentium-m -DHAVE_CONFIG_H -Dyylval=pcapyylval -I/usr/src/lib/libpcap -I. -D_U_="__attribute__((unused))" -DHAVE_SNPRINTF -DHAVE_VSNPRINTF -DINET6 -I/usr/src/lib/libpcap/../../contrib/libpcap -c grammar.c -o grammar.po cc -pg -O2 -pipe -march=pentium-m -DHAVE_CONFIG_H -Dyylval=pcapyylval -I/usr/src/lib/libpcap -I. -D_U_="__attribute__((unused))" -DHAVE_SNPRINTF -DHAVE_VSNPRINTF -DINET6 -I/usr/src/lib/libpcap/../../contrib/libpcap -c /usr/src/lib/libpcap/../../contrib/libpcap/pcap-bpf.c -o pcap-bpf.po cc -pg -O2 -pipe -march=pentium-m -DHAVE_CONFIG_H -Dyylval=pcapyylval -I/usr/src/lib/libpcap -I. -D_U_="__attribute__((unused))" -DHAVE_SNPRINTF -DHAVE_VSNPRINTF -DINET6 -I/usr/src/lib/libpcap/../../contrib/libpcap -c /usr/src/lib/libpcap/../../contrib/libpcap/pcap.c -o pcap.po cc -pg -O2 -pipe -march=pentium-m -DHAVE_CONFIG_H -Dyylval=pcapyylval -I/usr/src/lib/libpcap -I. -D_U_="__attribute__((unused))" -DHAVE_SNPRINTF -DHAVE_VSNPRINTF -DINET6 -I/usr/src/lib/libpcap/../../contrib/libpcap -c /usr/src/lib/libpcap/../../contrib/libpcap/inet.c -o inet.po cc -pg -O2 -pipe -march=pentium-m -DHAVE_CONFIG_H -Dyylval=pcapyylval -I/usr/src/lib/libpcap -I. -D_U_="__attribute__((unused))" -DHAVE_SNPRINTF -DHAVE_VSNPRINTF -DINET6 -I/usr/src/lib/libpcap/../../contrib/libpcap -c /usr/src/lib/libpcap/../../contrib/libpcap/fad-getad.c -o fad-getad.po cc -pg -O2 -pipe -march=pentium-m -DHAVE_CONFIG_H -Dyylval=pcapyylval -I/usr/src/lib/libpcap -I. -D_U_="__attribute__((unused))" -DHAVE_SNPRINTF -DHAVE_VSNPRINTF -DINET6 -I/usr/src/lib/libpcap/../../contrib/libpcap -c /usr/src/lib/libpcap/../../contrib/libpcap/gencode.c -o gencode.po cc -pg -O2 -pipe -march=pentium-m -DHAVE_CONFIG_H -Dyylval=pcapyylval -I/usr/src/lib/libpcap -I. -D_U_="__attribute__((unused))" -DHAVE_SNPRINTF -DHAVE_VSNPRINTF -DINET6 -I/usr/src/lib/libpcap/../../contrib/libpcap -c /usr/src/lib/libpcap/../../contrib/libpcap/optimize.c -o optimize.po /usr/src/lib/libpcap/../../contrib/libpcap/optimize.c: In function `convert_code_r': /usr/src/lib/libpcap/../../contrib/libpcap/optimize.c:2213: internal compiler error: Segmentation fault: 11 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. *** Error code 1 Stop in /usr/src/lib/libpcap. *** Error code 1 Stop in /usr/src/lib. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. ------------------------------------------------