From owner-freebsd-amd64@FreeBSD.ORG Thu Jul 9 08:11:13 2009 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51202106564A; Thu, 9 Jul 2009 08:11:13 +0000 (UTC) (envelope-from markocpc@gmail.com) Received: from mail-ew0-f224.google.com (mail-ew0-f224.google.com [209.85.219.224]) by mx1.freebsd.org (Postfix) with ESMTP id 9F7828FC19; Thu, 9 Jul 2009 08:11:12 +0000 (UTC) (envelope-from markocpc@gmail.com) Received: by ewy24 with SMTP id 24so439052ewy.43 for ; Thu, 09 Jul 2009 01:11:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=yQorVcipU+yFE0PAszJAFYO4GKZgkBkpxzzAdS2U2iY=; b=SPeIaA3auNkl4XUopqdqbTvIUpZ8ddCzfQVN0gTqCZjDlFWC6b6+koloZprs6B0XYg O9oCe7aF7Do21/Z5qjCBTkCYIDGjfnpsWgxW9wEPIuJ+Q066xhC6GDFWdE4zug89kGVE vha41SeHgr2OePx545SujfbuXI6PbFRHij2bo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=vt+Jz/9K80xJAEPgTRf+Beby9bGJeXBysOUOLg7jtEWdNseDxTMmqr2nB8yOh4VPw5 0D5gVCq3Z13AFabAYaDxcnXjofPrtX2e3WYYFIK6eiF9kUUK3UGYymxdezryh/iinbxZ e2nBWkvmmXL/W1a8QJV9YoPE9kkeBkf4aczcw= MIME-Version: 1.0 Received: by 10.211.179.6 with SMTP id g6mr589533ebp.32.1247127070914; Thu, 09 Jul 2009 01:11:10 -0700 (PDT) In-Reply-To: References: <1b5ab4050907082324m1c70a304s8487192e46f63fc8@mail.gmail.com> Date: Thu, 9 Jul 2009 10:11:09 +0200 Message-ID: <1b5ab4050907090111q4cb29ea7t2f7518e844efbf54@mail.gmail.com> From: Lagrange Marc To: rea-fbsd@codelabs.ru Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org, freebsd-amd64@freebsd.org Subject: Re: Building kernel : CPUID_FXSR undeclared (first use...) X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jul 2009 08:11:13 -0000 On Thu, Jul 9, 2009 at 9:53 AM, Eygene Ryabinkin wrot= e: > Thu, Jul 09, 2009 at 08:24:20AM +0200, Lagrange Marc wrote: >> cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -march=3Dnative >> -std=3Dc99 =C2=A0-Wall -Wredundant-decls -Wnested-externs -Wstrict-proto= types >> =C2=A0-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual =C2=A0-W= undef >> -Wno-pointer-sign -fformat-extensions -nostdinc =C2=A0-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=3D8000 --param >> inline-unit-growth=3D100 --param large-function-growth=3D1000 >> -fno-omit-frame-pointer -mcmodel=3Dkernel -mno-red-zone =C2=A0-mfpmath= =3D387 >> -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow =C2=A0-msoft-float >> -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector >> -Werror =C2=A0/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 appe= ars in.) > > What output will be produced by the following command (should be invoked > from your kernel compile directory, /sys/amd64/compile/ if > you compile manually or /usr/obj/usr/src/sys/ for 'make > kernel' builds; looks like you is NAWAK): > ----- > cpp -dD -O2 -frename-registers -pipe -fno-strict-aliasing -march=3Dnative= \ > -std=3Dc99 =C2=A0-Wall -Wredundant-decls -Wnested-externs -Wstrict-protot= ypes \ > =C2=A0-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual =C2=A0-Wu= ndef \ > =C2=A0-Wno-pointer-sign -fformat-extensions -nostdinc =C2=A0-I. -I/usr/sr= c/sys \ > =C2=A0-I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS = \ > =C2=A0-include opt_global.h -fno-common -finline-limit=3D8000 --param \ > =C2=A0inline-unit-growth=3D100 --param large-function-growth=3D1000 \ > =C2=A0-fno-omit-frame-pointer -mcmodel=3Dkernel -mno-red-zone =C2=A0-mfpm= ath=3D387 \ > =C2=A0-mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow =C2=A0-msoft-float= \ > =C2=A0-fno-asynchronous-unwind-tables -ffreestanding -fstack-protector \ > =C2=A0-Werror =C2=A0/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 > =C2=A0_ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0___ =C2=A0= =C2=A0 =C2=A0 _.--. =C2=A0 # > =C2=A0\`.|\..----...-'` =C2=A0 `-._.-'_.-'` =C2=A0 # =C2=A0Remember that = it is hard > =C2=A0/ =C2=A0' ` =C2=A0 =C2=A0 =C2=A0 =C2=A0 , =C2=A0 =C2=A0 =C2=A0 __.-= -' =C2=A0 =C2=A0 =C2=A0# =C2=A0to read the on-line manual > =C2=A0)/' _/ =C2=A0 =C2=A0 \ =C2=A0 `-_, =C2=A0 / =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0# =C2=A0while single-stepping the kernel. > =C2=A0`-'" `"\_ =C2=A0,_.-;_.-\_ ', =C2=A0fsc/as =C2=A0 # > =C2=A0 =C2=A0 _.-'_./ =C2=A0 {_.' =C2=A0 ; / =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 # =C2=A0 =C2=A0-- FreeBSD Developers handbook > =C2=A0 =C2=A0{_.-``-' =C2=A0 =C2=A0 =C2=A0 =C2=A0 {_/ =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0# > --=20 rhaamo on irc.freenode.net/oftc/geeknode