From owner-freebsd-current@FreeBSD.ORG Tue May 31 18:05:07 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0273616A41C for ; Tue, 31 May 2005 18:05:07 +0000 (GMT) (envelope-from craig@xfoil.gank.org) Received: from ion.gank.org (ion.gank.org [69.55.238.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4ED543D1D for ; Tue, 31 May 2005 18:05:06 +0000 (GMT) (envelope-from craig@xfoil.gank.org) Received: by ion.gank.org (mail, from userid 1001) id 8E4122D00C; Tue, 31 May 2005 13:05:06 -0500 (CDT) Date: Tue, 31 May 2005 13:05:03 -0500 From: Craig Boston To: current@freebsd.org Message-ID: <20050531180503.GB55256@nowhere> Mail-Followup-To: Craig Boston , current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Cc: Subject: undefined reference to `cpu_fxsr' X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2005 18:05:07 -0000 In fresh -current targeted for a Soekris box: cc -c -O2 -pipe -fno-strict-aliasing -march=pentium -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -D_KERNEL -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Werror vers.c linking kernel ptrace_machdep.o(.text+0xb): In function `cpu_ptrace': : undefined reference to `cpu_fxsr' *** Error code 1 Stop in /usr/obj/usr/src/sys/SOEKRIS. *** Error code 1 This seems to be related to the new ptrace_machdep.c file. All other references to cpu_fxsr I can find are wrapped by #ifdef CPU_ENABLE_SSE I'm going to try the following and see if it helps here... --- ptrace_machdep.c.orig Tue May 31 13:02:52 2005 +++ ptrace_machdep.c Tue May 31 13:03:40 2005 @@ -40,8 +40,12 @@ { int error; +#ifdef CPU_ENABLE_SSE if (!cpu_fxsr) return (EINVAL); +#else + return (EINVAL); +#endif switch (req) { case PT_GETXMMREGS: Craig