From owner-freebsd-mips@FreeBSD.ORG Thu Aug 26 23:06:59 2010 Return-Path: Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E68CE1065679 for ; Thu, 26 Aug 2010 23:06:59 +0000 (UTC) (envelope-from PMahan@adaranet.com) Received: from barracuda.adaranet.com (smtp.adaranet.com [72.5.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id CECFA8FC0C for ; Thu, 26 Aug 2010 23:06:59 +0000 (UTC) X-ASG-Debug-ID: 1282864019-50615b030001-TrbQWW Received: from SJ-EXCH-1.adaranet.com ([10.10.1.29]) by barracuda.adaranet.com with ESMTP id TG44UHcdt7gsYMNm for ; Thu, 26 Aug 2010 16:06:59 -0700 (PDT) X-Barracuda-Envelope-From: PMahan@adaranet.com Received: from mycroft.adaranet.com (10.10.24.100) by SJ-EXCH-1.adaranet.com (10.10.1.29) with Microsoft SMTP Server (TLS) id 8.1.240.5; Thu, 26 Aug 2010 16:06:59 -0700 Message-ID: <4C76F4B6.5050607@adaranet.com> X-Barracuda-BBL-IP: nil Date: Thu, 26 Aug 2010 16:11:50 -0700 From: Patrick Mahan User-Agent: Thunderbird 2.0.0.23 (X11/20091021) MIME-Version: 1.0 To: "freebsd-mips@FreeBSD.org" X-ASG-Orig-Subj: Cannot build the Mips 32 bit kernel Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Barracuda-Connect: UNKNOWN[10.10.1.29] X-Barracuda-Start-Time: 1282864019 X-Barracuda-URL: http://172.16.10.203:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at adaranet.com Cc: Subject: Cannot build the Mips 32 bit kernel X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 23:07:00 -0000 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