From owner-freebsd-ppc@FreeBSD.ORG Tue Jun 6 21:03:34 2006 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C657916A854 for ; Tue, 6 Jun 2006 20:49:33 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FCCE43D48 for ; Tue, 6 Jun 2006 20:49:32 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [10.33.24.110] (nat-198-95-226-228.netapp.com [198.95.226.228]) by dommail.onthenet.com.au (MOS 3.5.7-GR) with ESMTP id BWO67562 (AUTH peterg@ptree32.com.au); Wed, 7 Jun 2006 06:49:28 +1000 (EST) Message-ID: <4485EA41.4070606@freebsd.org> Date: Tue, 06 Jun 2006 13:49:05 -0700 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8b) Gecko/20051014 MIME-Version: 1.0 To: Aditya Godbole References: <2f3a439f0606060346qa755af3x8ee7ba3e94c45081@mail.gmail.com> In-Reply-To: <2f3a439f0606060346qa755af3x8ee7ba3e94c45081@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: make depend error - libl X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 21:03:38 -0000 Hi Aditya, > 1. I'm trying to compile the ppc kernel. I've taken the GENERIC config > and running make depend stops in the aic7xxx/aicasm directory. The > error is that the linker cannot find libl. > This seems to be a userspace program. Can I bypass this step while > compiling the kernel? Otherwise, how can I fix it? I am running fbsd 6 > on an i386. It's not possible to build on i386 without doing a proper cross-build. Which leads to your next question: > 2. How can I setup a complete crosscompile environment including the > cross compiled libc and other libraries? You'll want to grab hold of a FreeBSD source tree. Then, cd to the src/ directory, and 'make buildworld TARGET_ARCH=powerpc', and then 'make buildkernel TARGET_ARCH=powerpc'. 'man build' and 'man development' has more info, as well as the developer section of the FreeBSD website. later, Peter.