From owner-freebsd-amd64@FreeBSD.ORG Thu Jul 9 08:04:30 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 B3310106566B for ; Thu, 9 Jul 2009 08:04:30 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 6618E8FC15 for ; Thu, 9 Jul 2009 08:04:30 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Subject:Message-ID:Reply-To:References:MIME-Version:Content-Type:Content-Disposition:Content-Transfer-Encoding:In-Reply-To:Sender; b=hxWzyQ0Tombimv3ZDMWqL8b4EOpV/bcYmUysOdvP2jklE40F9qyxQSw9658hbiRTLV0kmKYP2TmrOPqJmFkt/FR3SUgOfvpRqjt1i9aeHRAISu0jvaNsWnLFfaHyFNS5XOluTRFgpNx6O+uxgMYbe7Vy2VK2K+3hFQYXW5D6FUg=; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1MOoRa-0006TZ-AD; Thu, 09 Jul 2009 11:53:26 +0400 Date: Thu, 9 Jul 2009 11:53:24 +0400 From: Eygene Ryabinkin To: Lagrange Marc Message-ID: References: <1b5ab4050907082324m1c70a304s8487192e46f63fc8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <1b5ab4050907082324m1c70a304s8487192e46f63fc8@mail.gmail.com> Sender: rea-fbsd@codelabs.ru X-Mailman-Approved-At: Thu, 09 Jul 2009 13:27:19 +0000 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 Reply-To: rea-fbsd@codelabs.ru 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:04:31 -0000 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 -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=3D8000 --param > inline-unit-growth=3D100 --param large-function-growth=3D1000 > -fno-omit-frame-pointer -mcmodel=3Dkernel -mno-red-zone -mfpmath=3D387 > -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 appea= rs in.) What output will be produced by the following command (should be invoked =66rom 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 -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=3D8000 --param \ inline-unit-growth=3D100 --param large-function-growth=3D1000 \ -fno-omit-frame-pointer -mcmodel=3Dkernel -mno-red-zone -mfpmath=3D387 \ -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 ----- And what is inside the file 'machine/specialreg.h' when you're sitting in the same directory? 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. --=20 Eygene _ ___ _.--. # \`.|\..----...-'` `-._.-'_.-'` # Remember that it is hard / ' ` , __.--' # to read the on-line manual )/' _/ \ `-_, / # while single-stepping the kernel. `-'" `"\_ ,_.-;_.-\_ ', fsc/as # _.-'_./ {_.' ; / # -- FreeBSD Developers handbook {_.-``-' {_/ #