Building kernel : CPUID_FXSR undeclared (first use...)
Lagrange Marc
markocpc at gmail.com
Thu Jul 9 06:56:16 UTC 2009
Hi,
I've just installed a 8-BETA1 on my new computer, checkouted the
sources via svn (http://svn.freebsd.org/base/head).
I've recompiled a kernel without debug and whitheness sucessfully, but
when i've try to remove some things and it fails.
The kernel configuration is here : http://banane.rhaamo.li/NAWAK
The CPU is :
CPU: Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz (2499.73-MHz
K8-class CPU)
Origin = "GenuineIntel" Id = 0x10677 Stepping = 7
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,
HTT,TM,PBE>
Features2=0x8e3fd<SSE3,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1>
AMD Features=0x20000800<SYSCALL,LM>
AMD Features2=0x1<LAHF>
TSC: P-state invariant
The kernel build error:
cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -march=native
-std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef
-Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys
-I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS
-include opt_global.h -fno-common -finline-limit=8000 --param
inline-unit-growth=100 --param large-function-growth=1000
-fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387
-mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float
-fno-asynchronous-unwind-tables -ffreestanding -fstack-protector
-Werror /usr/src/sys/amd64/amd64/in_cksum.c
cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -march=native
-std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef
-Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys
-I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS
-include opt_global.h -fno-common -finline-limit=8000 --param
inline-unit-growth=100 --param large-function-growth=1000
-fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387
-mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float
-fno-asynchronous-unwind-tables -ffreestanding -fstack-protector
-Werror /usr/src/sys/amd64/amd64/initcpu.c
/usr/src/sys/amd64/amd64/initcpu.c: In function 'initializecpu':
/usr/src/sys/amd64/amd64/initcpu.c:146: error: 'CPUID_FXSR' undeclared
(first use in this function)
/usr/src/sys/amd64/amd64/initcpu.c:146: error: (Each undeclared
identifier is reported only once
/usr/src/sys/amd64/amd64/initcpu.c:146: error: for each function it appears in.)
*** Error code 1
Stop in /usr/obj/usr/src/sys/NAWAK.
*** Error code 1
Stop in /usr/src.
I've also experiencing the same issue with audio/oss, it failed on
CPUID_FXSR, but now fail with CPU_SSE or CPU_SSE2...
If someone have an idea with this problem,
Thanks.
--
rhaamo on irc.freenode.net/oftc/geeknode
More information about the freebsd-current
mailing list