From owner-freebsd-mips@FreeBSD.ORG Mon Feb 28 16:22:12 2011 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1CE961065672 for ; Mon, 28 Feb 2011 16:22:12 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from exprod7og104.obsmtp.com (exprod7og104.obsmtp.com [64.18.2.161]) by mx1.freebsd.org (Postfix) with ESMTP id C06908FC13 for ; Mon, 28 Feb 2011 16:22:11 +0000 (UTC) Received: from source ([66.129.224.36]) (using TLSv1) by exprod7ob104.postini.com ([64.18.6.12]) with SMTP ID DSNKTWvLsg6rzWVwUxvo+SIwDIyuCi9AEm5w@postini.com; Mon, 28 Feb 2011 08:22:11 PST Received: from p-emfe02-wf.jnpr.net (172.28.145.25) by P-EMHUB03-HQ.jnpr.net (172.24.192.37) with Microsoft SMTP Server (TLS) id 8.2.254.0; Mon, 28 Feb 2011 08:17:59 -0800 Received: from EMBX01-WF.jnpr.net ([fe80::1914:3299:33d9:e43b]) by p-emfe02-wf.jnpr.net ([fe80::c126:c633:d2dc:8090%11]) with mapi; Mon, 28 Feb 2011 11:18:41 -0500 From: Andrew Duane To: "mips@freebsd.org" Date: Mon, 28 Feb 2011 11:18:40 -0500 Thread-Topic: Problems building an OCTEON1 kernel Thread-Index: AQHL12MpoRsyexUgJ06+AivzIGrS2Q== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: Subject: Problems building an OCTEON1 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: Mon, 28 Feb 2011 16:22:12 -0000 I've just set up a new sandbox from our local mirror, and I'm trying to bui= ld an OCTEON1 kernel for testing on a local platform. I followed the instru= ctions from the MIPS Wiki page, which had worked before for me. However, no= w, when I try to "make buildkernel" (after "make kernel-toolchain"), every = file compiled gives: Assembler messages: Warning: A different -march was already specified, is now octeon I'm sure that's because the cc line has -march=3Dmips64, but then near the = end has -march=3Docteon -mabi=3D64, and sounds benign. But, at the end: linking kernel.debug hack.So: could not read symbols: File in wrong format *** Error code 1 sandbox/FreeBSDCurrent/src > ls -l OCTEON1/hack.So -rwxr-xr-x 1 aduane ipg 2.5K Feb 28 11:10 OCTEON1/hack.So* sandbox/FreeBSDCurrent/src > file OCTEON1/hack.So OCTEON1/hack.So: ELF 64-bit MSB shared object, MIPS, MIPS64 rel2 version 1 = (FreeBSD), not stripped sandbox/FreeBSDCurrent/src > mips64-juniper-elf-nm OCTEON1/hack.So 0000000000000148 a _DYNAMIC 0000000000010430 A _GLOBAL_OFFSET_TABLE_ 0000000000010468 A __bss_start 0000000000010468 A _edata 0000000000010468 A _end 0000000000010468 A _fbss 0000000000010430 D _fdata 0000000000000420 T _ftext 0000000000018420 A _gp -- Andrew Duane Juniper Networks 978-589-0551 10 Technology Park Dr aduane@juniper.net Westford, MA 01886-3418