Re: Trouble with 4.3-RELEASE compiler
On Fri, Apr 27, 2001 at 05:15:31PM -0700, David O'Brien wrote: > On Fri, Apr 27, 2001 at 07:40:22PM -0300, Joao Carlos Mendes Luis wrote: > > I was installing a squid server with 4.3-RELEASE, and found that > > FreeBSD has now a bug in the compiler that affects squid. The default > > compilation of squid is with CFLAGS=-g -O2 -Wall, and this setup > > triggers the bug. > ... > > Should this be a reason to roll back the compiler to version > > 2.95.2, as it was before Tue Apr 10 19:23:19 2001 UTC, when it > > changed to 2.95.3? What to do with the upcoming CDs? > > No. It means the squid maintainer didn't do a proper job and make it so > that the system CFLAGS were used. Granted most don't know to export > CFLAGS to GNU configure when they run the configure script. (directed more at the original poster, despite replying to David) The www/squid* ports do a great job of using the system CFLAGS. And yes, there is an explicit warning in /etc/defaults/make.conf (which you should read, before setting your system-wide CFLAGS in /etc/make.conf) that using -O2 can trigger bugs. So.. why did you not use the port? :) And yes, -O2 bugs in gcc are a known issue.. :( G'luck, Peter -- This sentence claims to be an Epimenides paradox, but it is lying. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Trouble with 4.3-RELEASE compiler
On Fri, Apr 27, 2001 at 07:40:22PM -0300, Joao Carlos Mendes Luis wrote: > I was installing a squid server with 4.3-RELEASE, and found that > FreeBSD has now a bug in the compiler that affects squid. The default > compilation of squid is with CFLAGS=-g -O2 -Wall, and this setup > triggers the bug. ... > Should this be a reason to roll back the compiler to version > 2.95.2, as it was before Tue Apr 10 19:23:19 2001 UTC, when it > changed to 2.95.3? What to do with the upcoming CDs? No. It means the squid maintainer didn't do a proper job and make it so that the system CFLAGS were used. Granted most don't know to export CFLAGS to GNU configure when they run the configure script. -- -- David ([EMAIL PROTECTED]) To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Trouble with 4.3-RELEASE compiler
Hi, I was installing a squid server with 4.3-RELEASE, and found that FreeBSD has now a bug in the compiler that affects squid. The default compilation of squid is with CFLAGS=-g -O2 -Wall, and this setup triggers the bug. I've left a trimmed down copy of the problem files at ftp://ftp.jonny.eng.br/hidden/jonny/trouble.tgz, compile it with gcc -g -O2 -Wall teste.c rfc1035.c, and see the bug happening. Remove the -O2 or change it for -O, and see it going away. Should this be a reason to roll back the compiler to version 2.95.2, as it was before Tue Apr 10 19:23:19 2001 UTC, when it changed to 2.95.3? What to do with the upcoming CDs? Jonny -- João Carlos Mendes Luís [EMAIL PROTECTED] Networking Engineer [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message