Date: Tue, 1 Feb 2005 13:00:43 GMT From: Thomas Melzer <TMelzer@bineo.de> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/76875: security/cryptopp crashes if build with default optimization -O Message-ID: <200502011300.j11D0hwu065048@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/76875; it has been noted by GNATS. From: Thomas Melzer <TMelzer@bineo.de> To: freebsd-gnats-submit@FreeBSD.org, tmelzer@tomesoft.de Cc: Subject: Re: ports/76875: security/cryptopp crashes if build with default optimization -O Date: Tue, 1 Feb 2005 13:51:07 +0100 I've tested the build by supressing the -march=pentium switch. The port build emits the same behaviour. Build with -O crash, build with -O0 cryptest runs fine. Further investigation have shown where the compileswitches -O and -march=pentium come from. In my /etc/make.conf i have the following 2 lines CPUTYPE=i586 CFLAGS= -O -pipe I use CPUTYPE=i586 because my build machine is a Pentium4 2.8 GHz machine and Several of my older servers have only pentium cpus. This line lead to -march=pentium option. CFLAGS is the supported maximum for buildworld and kernel. If i comment out these settings cryptopp port is compiled with -fPIC -msse2 -pipe Cryptest runs as expected. But if you use the CFLAGS setting above You have to apply my patch as cryptest breaks. So I think the save way will be to disable optimization explicit so that optimazation settings in make.conf can not break the port. Regards -- Thomas
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502011300.j11D0hwu065048>