From owner-freebsd-arm@freebsd.org Sun Apr 3 17:41:35 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6DD89B015B4 for ; Sun, 3 Apr 2016 17:41:35 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ig0-x233.google.com (mail-ig0-x233.google.com [IPv6:2607:f8b0:4001:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 36F1A1BA1 for ; Sun, 3 Apr 2016 17:41:35 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-ig0-x233.google.com with SMTP id l20so49036420igf.0 for ; Sun, 03 Apr 2016 10:41:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=zhou0ZdGvWDWOTap+Wg3LvNA8FbjhZEl0PDzTmZUFFk=; b=YO7JT8oD21bjkM7ISZFwCN4hTjRhd2T7UJpNlN8urJ+mDj4QaWtWBhWhJNj/rLRpYy CmL9ctcclv/O7h7FXNosmtrnO7S+T1L2zK5HB8d/NPBBaAljBe1LN7mhE4T/33yZ3IBi LHjMETpGmU7IyfB0/uY1DX1VPb6aYuTZO15ZvP9TB44MIyjNWQ6qx9FFRy0ooNTDdGbY 5QIiW6fy1FMtDm0UrP3iVcA3HD8xt61EhLhvN514wTbzVTHmN8ePUQ/Pm1vdADH9WiUb AlgXhZlNEK9LncbCdzc8CrevwWWQpyGn1w9qekqa0eojpBToRXmNuXf022SedxelGO4G xZGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=zhou0ZdGvWDWOTap+Wg3LvNA8FbjhZEl0PDzTmZUFFk=; b=RPK2gPi0v9aHmkG6Qfx7o03NYuxKfLBoDNVZ7GgXHyEq+5Fx8uY2Qgx38oI5eXw2iL bJbFBqYDAV33T0meb26qVwl4r1XZQm1ljUh1ZO8UqlpCwBaHFuU+CEGH1OulapFFTDhz fkH7QmfZouj+30Q5MSSLI+uDSh8n2T+iMfVijtcAharIY/jkBC8TqboEuJDz1hTdyRme 9czhFuTBnw5FgLAB8l9tyEWKUW7j0/LhNc+q5u2kR2Fy6958AqpYMLJqpoo0aL6gdiHR d+R3mJO+VxCFqbKmifSRBz2BSMKa+lsbsT3lHF6Ca+mNDBSejA7EVhT/35ltG0qtFWDZ EonA== X-Gm-Message-State: AD7BkJIHHtNADTnpxRZOiMz7yF8HDxDdjkgK+tghXRXa31tFYWkznFk7QLTgdBR1Ati+zMQv+inDWtvMLn4L4A== MIME-Version: 1.0 X-Received: by 10.107.135.226 with SMTP id r95mr15842482ioi.59.1459705294694; Sun, 03 Apr 2016 10:41:34 -0700 (PDT) Sender: wlosh@bsdimp.com Received: by 10.36.194.3 with HTTP; Sun, 3 Apr 2016 10:41:34 -0700 (PDT) X-Originating-IP: [50.253.99.174] In-Reply-To: References: Date: Sun, 3 Apr 2016 11:41:34 -0600 X-Google-Sender-Auth: IxV86TxeJUOD9krHASWsOG6Og5I Message-ID: Subject: Re: Installworld failed From: Warner Losh To: Russell Haley Cc: freebsd-arm Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Apr 2016 17:41:35 -0000 On Sun, Apr 3, 2016 at 2:44 AM, Russell Haley wrote: > Hello, > > I'm trying out the cross build instructions on the arm page and my > installworld fails: > > Just had a successful buildworld and buildkernel > Then, tried to run installworld: > > russellh@prescott:~/Projects/hummingboard/src% sudo make installworld > TARGET_ARCH=3Darmv6 DESTDIR=3D${PWD}/nfsroot > mkdir -p /tmp/install.mYvcGRG7 > progs=3D$(for prog in [ awk cap_mkdb cat chflags chmod chown cmp cp > date echo egrep find grep id install ln make mkdir mtree mv pwd_mkdb > rm sed services_mkdb sh strip sysctl test true uname wc zic tzsetup > makewhatis; do if progpath=3D`which $prog`; then echo $progpath; else > echo "Required tool $prog not found in PATH." >&2; exit 1; fi; > done); libs=3D$(ldd -f "%o %p\n" -f "%o %p\n" $progs 2>/dev/null | sort > -u | while read line; do set -- $line; if [ "$2 $3" !=3D "not found" > ]; then echo $2; else echo "Required library $1 not found." >&2; > exit 1; fi; done); cp $libs $progs /tmp/install.mYvcGRG7 > cp -R ${PATH_LOCALE:-"/usr/share/locale"} /tmp/install.mYvcGRG7/locale > cd /usr/home/russellh/Projects/hummingboard/src; > MAKEOBJDIRPREFIX=3D/usr/obj/arm.armv6 MACHINE_ARCH=3Darmv6 MACHINE=3Darm > CPUTYPE=3D > GROFF_BIN_PATH=3D/usr/obj/arm.armv6/usr/home/russellh/Projects/hummingboa= rd/src/tmp/legacy/usr/bin > > GROFF_FONT_PATH=3D/usr/obj/arm.armv6/usr/home/russellh/Projects/hummingbo= ard/src/tmp/legacy/usr/share/groff_font > > GROFF_TMAC_PATH=3D/usr/obj/arm.armv6/usr/home/russellh/Projects/hummingbo= ard/src/tmp/legacy/usr/share/tmac > CC=3D"cc " CXX=3D"c++ " CPP=3D"cpp " AS=3D"as" AR=3D"ar" LD=3D"ld" NM=3D= nm > OBJDUMP=3Dobjdump OBJCOPY=3D"objcopy" RANLIB=3Dranlib STRINGS=3D SIZE=3D"= size" > > PATH=3D/usr/obj/arm.armv6/usr/home/russellh/Projects/hummingboard/src/tmp= /legacy/usr/sbin:/usr/obj/arm.armv6/usr/home/russellh/Projects/hummingboard= /src/tmp/legacy/usr/bin:/usr/obj/arm.armv6/usr/home/russellh/Projects/hummi= ngboard/src/tmp/legacy/bin:/usr/obj/arm.armv6/usr/home/russellh/Projects/hu= mmingboard/src/tmp/usr/sbin:/usr/obj/arm.armv6/usr/home/russellh/Projects/h= ummingboard/src/tmp/usr/bin:/tmp/install.mYvcGRG7 > LD_LIBRARY_PATH=3D/tmp/install.mYvcGRG7 > PATH_LOCALE=3D/tmp/install.mYvcGRG7/locale > /usr/obj/usr/home/russellh/Projects/hummingboard/src/make.amd64/bmake > -f Makefile.inc1 __MAKE_SHELL=3D/tmp/install.mYvcGRG7/sh reinstall; > MAKEOBJDIRPREFIX=3D/usr/obj/arm.armv6 MACHINE_ARCH=3Darmv6 MACHINE=3Darm > CPUTYPE=3D > GROFF_BIN_PATH=3D/usr/obj/arm.armv6/usr/home/russellh/Projects/hummingboa= rd/src/tmp/legacy/usr/bin > > GROFF_FONT_PATH=3D/usr/obj/arm.armv6/usr/home/russellh/Projects/hummingbo= ard/src/tmp/legacy/usr/share/groff_font > > GROFF_TMAC_PATH=3D/usr/obj/arm.armv6/usr/home/russellh/Projects/hummingbo= ard/src/tmp/legacy/usr/share/tmac > CC=3D"cc " CXX=3D"c++ " CPP=3D"cpp " AS=3D"as" AR=3D"ar" LD=3D"ld" NM=3D= nm > OBJDUMP=3Dobjdump OBJCOPY=3D"objcopy" RANLIB=3Dranlib STRINGS=3D SIZE=3D"= size" > > PATH=3D/usr/obj/arm.armv6/usr/home/russellh/Projects/hummingboard/src/tmp= /legacy/usr/sbin:/usr/obj/arm.armv6/usr/home/russellh/Projects/hummingboard= /src/tmp/legacy/usr/bin:/usr/obj/arm.armv6/usr/home/russellh/Projects/hummi= ngboard/src/tmp/legacy/bin:/usr/obj/arm.armv6/usr/home/russellh/Projects/hu= mmingboard/src/tmp/usr/sbin:/usr/obj/arm.armv6/usr/home/russellh/Projects/h= ummingboard/src/tmp/usr/bin:/tmp/install.mYvcGRG7 > LD_LIBRARY_PATH=3D/tmp/install.mYvcGRG7 > PATH_LOCALE=3D/tmp/install.mYvcGRG7/locale rm -rf /tmp/install.mYvcGRG7 > cc: not found > bmake[2]: "/usr/home/russellh/Projects/hummingboard/src/share/mk/ > bsd.compiler.mk" > line 141: Unable to determine compiler type for cc . Consider setting > COMPILER_TYPE. > *** Error code 1 > > Stop. > bmake[1]: stopped in /usr/home/russellh/Projects/hummingboard/src > *** Error code 1 > > Stop. > make: stopped in /usr/home/russellh/Projects/hummingboard/src > russellh@prescott:~/Projects/hummingboard/src% svn info > Path: . > Working Copy Root Path: /usr/home/russellh/Projects/hummingboard/src > URL: https://svn0.us-west.freebsd.org/base/head > Relative URL: ^/head > Repository Root: https://svn0.us-west.freebsd.org/base > Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f > Revision: 297517 > Node Kind: directory > Schedule: normal > Last Changed Author: jmcneill > Last Changed Rev: 297514 > Last Changed Date: 2016-04-02 09:53:12 -0700 (Sat, 02 Apr 2016) > > russellh@prescott:~/Projects/hummingboard/src% > > Any input welcome. > This usually is because MAKEOBJDIRPREFIX isn't set anymore now that you are root. Warner