ports/76875: security/cryptopp crashes if build with default optimization -O

Thomas Melzer TMelzer at bineo.de
Tue Feb 1 13:00:44 UTC 2005


The following reply was made to PR ports/76875; it has been noted by GNATS.

From: Thomas Melzer <TMelzer at bineo.de>
To: freebsd-gnats-submit at FreeBSD.org, tmelzer at 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
 
 
 



More information about the freebsd-ports-bugs mailing list