undefined reference to `cpu_fxsr'

From: Craig Boston <craig_at_xfoil.gank.org>
Date: Tue, 31 May 2005 13:05:03 -0500
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
_at__at_ -40,8 +40,12 _at__at_
 {
        int error;
 
+#ifdef CPU_ENABLE_SSE
        if (!cpu_fxsr)
                return (EINVAL);
+#else
+       return (EINVAL);
+#endif
 
        switch (req) {
        case PT_GETXMMREGS:

Craig
Received on Tue May 31 2005 - 16:05:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:35 UTC