From owner-freebsd-amd64@FreeBSD.ORG Thu Aug 26 07:56:49 2004 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FAF616A4CE for ; Thu, 26 Aug 2004 07:56:49 +0000 (GMT) Received: from mail-relay-4.tiscali.it (mail-relay-4.tiscali.it [213.205.33.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF19243D3F for ; Thu, 26 Aug 2004 07:56:48 +0000 (GMT) (envelope-from vw393@fatcat.homeunix.net) Received: from qmailsvr (217.133.34.161) by mail-relay-4.tiscali.it (7.1.021.3) id 40F3EBEA009646BA for freebsd-amd64@freebsd.org; Thu, 26 Aug 2004 09:56:47 +0200 Received: (qmail 22123 invoked from network); 26 Aug 2004 07:57:32 -0000 Received: from unknown (HELO www.pizzinato.it) (192.168.1.12) by 192.168.1.11 with SMTP; 26 Aug 2004 07:57:32 -0000 Received: from 213.156.52.112 (SquirrelMail authenticated user vw393@fatcat.homeunix.net) by www.pizzinato.it with HTTP; Thu, 26 Aug 2004 07:57:32 -0000 (GMT) Message-ID: <7526.213.156.52.112.1093507052.squirrel@www.pizzinato.it> Date: Thu, 26 Aug 2004 07:57:32 -0000 (GMT) From: "vw393" To: freebsd-amd64@freebsd.org User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal Subject: newbie question X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: vw393@fatcat.homeunix.net List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2004 07:56:49 -0000 Hi All. I wonder what has changed in the kernel compilation procedure. The way I know doesn't work anylonger, and I couldn't find any hint to solve this. I just installed this amd64 machine, cvsup'd the RELENG_5 branch and buildworld/buildkernel etc., no errors. However, I can't manage to recompile the kernel: bash-2.05b# uname -a FreeBSD ludo 5.3-BETA1 FreeBSD 5.3-BETA1 #2: Thu Aug 26 00:35:46 UTC 2004 root@ludo:/usr/obj/usr/src/sys/GENERIC amd64 bash-2.05b# bash-2.05b# bash-2.05b# cd /usr/src/sys/i386/conf bash-2.05b# bash-2.05b# cp GENERIC NEWKERNEL bash-2.05b# bash-2.05b# config NEWKERNEL Kernel build directory is ../compile/NEWKERNEL Don't forget to do a ``make depend'' bash-2.05b# bash-2.05b# cd ../compile/NEWKERNEL bash-2.05b# bash-2.05b# make depend 2>&1 | tee /tmp/log And this fails straight away with the following: rm -f .olddep if [ -f .depend ]; then mv .depend .olddep; fi make _kernel-depend cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Win line -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I../../.. -I../../../contrib/dev/acpica -I../../../contrib/altq -I../../../contrib/ipfilte r -I../../../contrib/pf -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -D_KERNEL -include opt_global.h -finline-limit= 8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msof t-float -fno-asynchronous-unwind-tables -ffreestanding ../../../amd64/amd64/genassym.c In file included from ../../../sys/systm.h:41, from ../../../amd64/amd64/genassym.c:42: ./machine/atomic.h: In function `atomic_cmpset_ptr': ./machine/atomic.h:367: warning: cast from pointer to integer of different size ./machine/atomic.h:368: warning: cast from pointer to integer of different size ./machine/atomic.h: In function `atomic_load_acq_ptr': ./machine/atomic.h:378: warning: cast to pointer from integer of different size ./machine/atomic.h: In function `atomic_store_rel_ptr': ./machine/atomic.h:384: warning: cast from pointer to integer of different size In file included from ../../../sys/systm.h:42, from ../../../amd64/amd64/genassym.c:42: ./machine/cpufunc.h: In function `invlpg': ./machine/cpufunc.h:436: warning: cast to pointer from integer of different size In file included from ../../../sys/proc.h:53, from ../../../sys/buf.h:263, from ../../../amd64/amd64/genassym.c:45: ../../../sys/signal.h: At top level: ../../../sys/signal.h:303: error: redefinition of `struct osigcontext' In file included from ../../../amd64/amd64/genassym.c:70: ./machine/sigframe.h:86: error: field `sf_uc' has incomplete type ../../../amd64/amd64/genassym.c:96: error: `addr_PTmap' undeclared here (not in a function) ../../../amd64/amd64/genassym.c:97: error: `addr_PDmap' undeclared here (not in a function) ../../../amd64/amd64/genassym.c:98: error: `addr_PDPmap' undeclared here (not in a function) ../../../amd64/amd64/genassym.c:99: error: `addr_PML4map' undeclared here (not in a function) ... ... ## many of these lines ## ... ../../../amd64/amd64/genassym.c:211: error: storage size of `SEL_RPL_MASKw2' isn't known ../../../amd64/amd64/genassym.c:211: error: storage size of `SEL_RPL_MASKw3' isn't known *** Error code 1 Stop in /usr/src/sys/i386/compile/NEWKERNEL. *** Error code 1 Stop in /usr/src/sys/i386/compile/NEWKERNEL. bash-2.05b# Any idea? Thanks