Bug 165850

Summary: [build] 8.3-RC1 (amd64): world doesn't build with CPUTYPE=core2
Product: Base System Reporter: Vladimir Omelchuk <admin>
Component: amd64Assignee: freebsd-amd64 (Nobody) <amd64>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Vladimir Omelchuk 2012-03-08 07:20:04 UTC
world doesn't build with CPUTYPE=core2 on 8.3-RC1 (amd64)

Error:
--------------------------------------------------------------
 >>> stage 5.1: building 32 bit shim libraries
 --------------------------------------------------------------
 ===> kerberos5/tools/make-print-version (obj)
 ===> kerberos5/tools/make-roken (obj)
 ===> kerberos5/tools/asn1_compile (obj)
 ===> kerberos5/tools/slc (obj)
 ===> kerberos5/tools/make-print-version (depend)
 ===> kerberos5/tools/make-roken (depend)
 ===> kerberos5/tools/asn1_compile (depend)
 yacc: 4 shift/reduce conflicts
 /usr/src/kerberos5/tools/make-print-version/../../../crypto/heimdal/lib/vers/make-print-version.c:1: error: bad value (core2) for -march= switch
 /usr/src/kerberos5/tools/make-print-version/../../../crypto/heimdal/lib/vers/make-print-version.c:1: error: bad value (core2) for -mtune= switch
 *** Error code 1
 1 error
 *** Error code 2
 make-roken.c:1: error: bad value (core2) for -march= switch
 make-roken.c:1: error: bad value (core2) for -mtune= switch
 *** Error code 1
 1 error
 *** Error code 2
 2 errors
 *** Error code 2
 1 error
 *** Error code 2
 1 error
 *** Error code 2
 1 error

Fix: 

1) compile and install world and kernel with commented CPUTYPE in make.conf
2) uncomment the CPUTYPE line, and recompile world and kernel
How-To-Repeat: In the /etc/make.conf add CPUTYPE?=core2 and try buildworld on 8.3-RC1 (amd64)