Re: Building kernel : CPUID_FXSR undeclared (first use...)

From: Lagrange Marc <markocpc_at_gmail.com>
Date: Thu, 9 Jul 2009 10:11:09 +0200
On Thu, Jul 9, 2009 at 9:53 AM, Eygene Ryabinkin<rea-fbsd_at_codelabs.ru> wrote:
> Thu, Jul 09, 2009 at 08:24:20AM +0200, Lagrange Marc wrote:
>> 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.)
>
> What output will be produced by the following command (should be invoked
> from your kernel compile directory, /sys/amd64/compile/<KERNELNAME> if
> you compile manually or /usr/obj/usr/src/sys/<KERNELNAME> for 'make
> kernel' builds; looks like you <KERNELNAME> is NAWAK):
> -----
> cpp -dD -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 2>&1
> -----

Output here : http://banane.rhaamo.li/bugs/CPUID_FXSR/output_cpp

> And what is inside the file 'machine/specialreg.h' when you're sitting
> in the same directory?

File here : http://banane.rhaamo.li/bugs/CPUID_FXSR/specialreg.h

> I'd expect that 'make clean && make kernel' invoked from /usr/src
> should fix your problems, but may be it is not the case, so information
> requested above will be helpful.
Tryied make clean && make kernel after getting requested infos, same error.

Thx.

> --
> Eygene
>  _                ___       _.--.   #
>  \`.|\..----...-'`   `-._.-'_.-'`   #  Remember that it is hard
>  /  ' `         ,       __.--'      #  to read the on-line manual
>  )/' _/     \   `-_,   /            #  while single-stepping the kernel.
>  `-'" `"\_  ,_.-;_.-\_ ',  fsc/as   #
>     _.-'_./   {_.'   ; /           #    -- FreeBSD Developers handbook
>    {_.-``-'         {_/            #
>



-- 
rhaamo on irc.freenode.net/oftc/geeknode
Received on Thu Jul 09 2009 - 06:11:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:51 UTC