From owner-freebsd-sparc64@FreeBSD.ORG Thu Apr 14 12:57:20 2011 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28A6F106564A for ; Thu, 14 Apr 2011 12:57:20 +0000 (UTC) (envelope-from superbisquit@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id CABE88FC08 for ; Thu, 14 Apr 2011 12:57:19 +0000 (UTC) Received: by vws18 with SMTP id 18so1603391vws.13 for ; Thu, 14 Apr 2011 05:57:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=iwEdkW4xlvEHRe2g8zug6A+uJ4+DtTHR5mCiFxRGhYo=; b=VI4G+6F0sJjVHhcQIUVj34f6i6aPrWb/c0GqpAPVVaQO7a46UHrAfKo6LuYtglsuVq ODh8ujXGLHdilNXwhsxRUuXKEUsXdmB3Evj8P5CWeAOHij30Swt8qRbdSF6y+1QBJdf5 6h+f0yiJAoUXaGpFkgYo85Rfaop/TsXeD2FrQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=PiLGygZ791Ol5uqbN7z5abS3kpYLX1aWZF6u61b0Shg96BjFVhj0wePCFEnv+EwZBZ xA7iod3GZox6gubOgabivjHKN3Y9gCUPKBkdzgzy/vUoo8FuHPzt3JtcrcA34zfIr2FY UkCD9TeefPlFDi7AwmhgS7ySNDT4vqEnkWb+o= MIME-Version: 1.0 Received: by 10.220.178.131 with SMTP id bm3mr219508vcb.28.1302785838828; Thu, 14 Apr 2011 05:57:18 -0700 (PDT) Received: by 10.220.199.2 with HTTP; Thu, 14 Apr 2011 05:57:18 -0700 (PDT) In-Reply-To: <20110414085328.GA33206@alchemy.franken.de> References: <20110414085328.GA33206@alchemy.franken.de> Date: Thu, 14 Apr 2011 08:57:18 -0400 Message-ID: From: Super Bisquit To: Marius Strobl Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-sparc64@freebsd.org Subject: Re: Error in elf_machdep.c when building a kernel X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Apr 2011 12:57:20 -0000 It was just a kernel build, no world. You're right, the hack didn't work completely. "/usr/src/sys/sparc64/elf_machdep.c:100:error: 'elf64_fbsd_brandnote' undeclared here (not in a function)" Dump_machdep.c did work in the build process. I'll redo the build later. On 4/14/11, Marius Strobl wrote: > On Thu, Apr 14, 2011 at 03:50:59AM -0400, Super Bisquit wrote: >> I had noted nefore that elf64-sparc-freebsd was not found. >> There is /usr/src/contrib/binutils/ld/emulparams/elf64_sparc.sh and >> /usr/src/contrib/binutils/ld/emulparams/elf64_sparc_fbsd.sh >> >> I replaced freebsd with fbsd in the stated file and saved >> elf_machdep.c to elf_machdep.c.old. >> >> I'm not sure if it will correct the problem. > > Sounds like you're trying to build world across the binutils update > with an unclean object directory; you need to delete it or not use > -DNO_CLEAN, otherwise the result likely won't work, even with your > hack. > > Marius > >