Cannot build the Mips 32 bit kernel

Patrick Mahan pmahan at adaranet.com
Thu Aug 26 23:07:00 UTC 2010


This is with the latest download from the HEAD:

% svn info
Path: .
URL: svn://svn.freebsd.org/base/head
Repository Root: svn://svn.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 211846
Node Kind: directory
Schedule: normal
Last Changed Author: imp
Last Changed Rev: 211846
Last Changed Date: 2010-08-26 08:49:52 -0700 (Thu, 26 Aug 2010)

I have attached my modified OCTEON1-32 for you folks to look at.

The kernel is compiling with no errors, but when it goes to link, I am
seeing a lot of the following errors:

Compile command

cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline 
-Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc 
-I. -I/home/mahan/src/FreeBSD.org/sources/HEAD/head/sys 
-I/home/mahan/src/FreeBSD.org/sources/HEAD/head/sys/contrib/altq 
-D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common 
-finline-limit=8000 --param inline-unit-growth=1000 --param 
large-function-growth=100000  -EB -fno-pic -mno-abicalls -G0 -EB 
-march=octeon -msoft-float -ffreestanding -Werror 
/home/mahan/src/FreeBSD.org/sources/HEAD/head/sys/dev/md/md.c


Error generated by the linker

md.o(.text+0x99c): In function `mdstart_malloc':
/home/mahan/src/FreeBSD.org/sources/HEAD/head/sys/dev/md/md.c:424: 
undefined reference to `__divdi3'
md.o(.text+0x9d0):/home/mahan/src/FreeBSD.org/sources/HEAD/head/sys/dev/md/md.c:425: 
undefined reference to `__divdi3'
md.o(.text+0x2698): In function `mdctlioctl':
/home/mahan/src/FreeBSD.org/sources/HEAD/head/sys/dev/md/md.c:845: 
undefined reference to `__divdi3'
md.o(.text+0x27b8):/home/mahan/src/FreeBSD.org/sources/HEAD/head/sys/dev/md/md.c:851: 
undefined reference to `__divdi3'
md.o(.text+0x2dbc):/home/mahan/src/FreeBSD.org/sources/HEAD/head/sys/dev/md/md.c:1142: 
undefined reference to `__moddi3'


Other files affected:

geom_dev.c
geom_disk.c
geom_io.c
g_part.c
kern_acct.c
et.al.


I include the compile command so you could see what was being using
to generate the .o files.  I have the full build log available (along
with my build script) for anyone who wants to view it.

All help is appreciated,

Thanks,

Patrick


More information about the freebsd-mips mailing list