undefined reference to `cpu_fxsr'
Craig Boston
craig at xfoil.gank.org
Tue May 31 11:05:07 PDT 2005
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
More information about the freebsd-current
mailing list