Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Aug 2004 07:57:32 -0000 (GMT)
From:      "vw393" <vw393@fatcat.homeunix.net>
To:        freebsd-amd64@freebsd.org
Subject:   newbie question
Message-ID:  <7526.213.156.52.112.1093507052.squirrel@www.pizzinato.it>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7526.213.156.52.112.1093507052.squirrel>