From nobody@FreeBSD.org  Tue Nov 20 08:47:10 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id D919F16A41B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 20 Nov 2007 08:47:10 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id CBF9313C4CC
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 20 Nov 2007 08:47:10 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id lAK8kSY9042632
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 20 Nov 2007 08:46:28 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id lAK8kSup042631;
	Tue, 20 Nov 2007 08:46:28 GMT
	(envelope-from nobody)
Message-Id: <200711200846.lAK8kSup042631@www.freebsd.org>
Date: Tue, 20 Nov 2007 08:46:28 GMT
From: Yuri <yuri@tsoft.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 7.0-BETA2 buildworld fails when CFLAGS is set to '' before build
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         118146
>Category:       misc
>Synopsis:       7.0-BETA2 buildworld fails when CFLAGS is set to '' before build
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 20 08:50:01 UTC 2007
>Closed-Date:    Wed Nov 21 14:40:04 UTC 2007
>Last-Modified:  Wed Nov 21 14:40:04 UTC 2007
>Originator:     Yuri
>Release:        7.0-BETA2
>Organization:
n/a
>Environment:
>Description:
Compilation failure occurred on 7.0-BETA2 system during buildworld.

cc -fpic -DPIC -I/usr/local/include  -DTERMIOS -DANSI_SOURCE -I/usr/src/secure/l
ib/libcrypto/../../../crypto/openssl -I/usr/src/secure/lib/libcrypto/../../../cr
ypto/openssl/crypto -I/usr/obj/usr/src/secure/lib/libcrypto -DOPENSSL_THREADS -D
DSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_IDEA -DL_ENDIAN -DNO_IDEA -std=gnu89  -c /
usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/engine/eng_openssl.c
 -o eng_openssl.So
cc -fpic -DPIC -I/usr/local/include  -DTERMIOS -DANSI_SOURCE -I/usr/src/secure/l
ib/libcrypto/../../../crypto/openssl -I/usr/src/secure/lib/libcrypto/../../../cr
ypto/openssl/crypto -I/usr/obj/usr/src/secure/lib/libcrypto -DOPENSSL_THREADS -D
DSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_IDEA -DL_ENDIAN -DNO_IDEA -std=gnu89  -c /
usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/engine/eng_padlock.c
 -o eng_padlock.So
/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/engine/eng_padlock.
c: In function 'padlock_xcrypt_ecb':
/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/engine/eng_padlock.
c:445: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm
'
/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/engine/eng_padlock.
c:445: error: 'asm' operand has impossible constraints
*** Error code 1 
>How-To-Repeat:
/etc/make.conf has a line "CFLAGS="
>Fix:
make sure CFLAGS either empty or has some -Ox options before buildworld.
But compile should be successful even with CFLAGS="".

>Release-Note:
>Audit-Trail:

From: Yuri <yuri@rawbw.com>
To: bug-followup@FreeBSD.org
Cc: Yuri <yuri@tsoft.com>
Subject: Re: misc/118146: 7.0-BETA2 buildworld fails when CFLAGS is set to '' before build
Date: Tue, 20 Nov 2007 10:19:55 -0800

 My CFLAGS when the problem occurred was set in /etc/make.conf as
 CFLAGS=-I/usr/local/include
 
 Yuri

From: Yuri <yuri@rawbw.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: misc/118146: 7.0-BETA2 buildworld fails when CFLAGS is set to '' before build
Date: Tue, 20 Nov 2007 18:20:00 -0800

 I confirm that after deleting and re-downloading the sources this problem still
 exists.
 
 Please investigate.
 
 Yuri
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Wed Nov 21 14:37:37 UTC 2007 
State-Changed-Why:  
It's documented in make.conf(5) that we don't support optimization 
levels other than -O and -O2, and specifying an empty CFLAGS is 
equivalent to -O0, which breaks the i386 build in this case. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118146 
>Unformatted:
