From owner-freebsd-arm@FreeBSD.ORG Sun Apr 19 21:57:19 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7479119A; Sun, 19 Apr 2015 21:57:19 +0000 (UTC) Received: from mail-ob0-x235.google.com (mail-ob0-x235.google.com [IPv6:2607:f8b0:4003:c01::235]) (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 369B936D; Sun, 19 Apr 2015 21:57:19 +0000 (UTC) Received: by oblw8 with SMTP id w8so106323349obl.0; Sun, 19 Apr 2015 14:57:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ckMJQfFAbFLZi963xIfjgLD1x9k09cIoawM2Uxqh4ng=; b=YZs80VtKjBKoGOIy1BYNiwQpd4Y4Z0gBwSKybI+Foy2E3lnO4KdhfxxAHyUDPtcSb7 DeirlucjjP4elwNMRhUL25e6wnRK+laxvEouIWSAeGnvw3KyGWt2DvhcbOoY9W1xBkBT y+VzUT0D0aKr3yE8C7SowcSdXmDWGQDyEFzpHAqrVXNEMe5QiX2umTb1J2FVKr0Exzjd HJw6+0lc7CJJimRsT+NN9KGEQ7Eh4+F/NDvWe8bGyhWW9x7y4AlMSTsOOFfnkE3EfFBR gjdKvCIDfLgCB/opAc26lmt3JTe+nbIMiMjrwrFMAgtZoYdcNqjupy39vCW3GbUdyO7M KECw== MIME-Version: 1.0 X-Received: by 10.182.115.167 with SMTP id jp7mr11783269obb.21.1429480638551; Sun, 19 Apr 2015 14:57:18 -0700 (PDT) Received: by 10.202.177.85 with HTTP; Sun, 19 Apr 2015 14:57:18 -0700 (PDT) Received: by 10.202.177.85 with HTTP; Sun, 19 Apr 2015 14:57:18 -0700 (PDT) In-Reply-To: <1CA4192E-F6B5-4BD8-8BF8-8F725E1EC7BA@kientzle.com> References: <1429456908.1182.82.camel@freebsd.org> <1429458041.1182.86.camel@freebsd.org> <1CA4192E-F6B5-4BD8-8BF8-8F725E1EC7BA@kientzle.com> Date: Sun, 19 Apr 2015 14:57:18 -0700 Message-ID: Subject: Re: crochet build fails at ubldr Wandboard-Dual From: Waitman Gobble To: Tim Kientzle Cc: freebsd-arm@freebsd.org, Ian Lepore Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Apr 2015 21:57:19 -0000 Waitman Gobble Los Altos, California USA 510 830 7975 On Apr 19, 2015 1:26 PM, "Tim Kientzle" wrote: > > > >>> > >>> Somebody reported this on IRC yesterday as well, but I can't reproduc= e > >>> it here. I don't use crochet, so it must be doing something a bit > >>> different to end up with the lib from /usr instead of the local one i= n > >>> objdir. There should be no need to set LIBSTAND externally. > >>> > >> > >> Thanks for the reply. Unfortunately I missed the discussion on IRC. > >> > >> I suppose I'll have to backtrack through and find out where it > >> _should_ be set to solve the problem. (?) For now, the workaround gets > >> the build to finish. > >> > > > > It shouldn't be set anywhere, it should just work. That's kind of my > > point... my build process is just the standard "make buildworld > > TARGET_ARCH=3Darmv6hf UBDLR_ADDR=3D" and it just works. I do= n't > > know what crochet is doing differently (and you only included a fragmen= t > > of the build log that didn't include the command used to start the > > build). > > > > > Crochet does use the standard build machinery; the only significant difference is that it builds ubldr separately after a successful buildworld. Building ubldr separately allows it to reuse the buildworld results when building for multiple boards with the same TARGET_ARCH but varying UBLDR_LOADADDR. > > The detailed logic is in lib/freebsd.sh, I=E2=80=99ve pasted it below (wi= th a few variables substituted in and some error checking removed to clarify): > > cd ${FREEBSD_SRC} > ubldr_makefiles=3D${FREEBSD_SRC}/share/mk > buildenv=3D`make TARGET_ARCH=3D$TARGET_ARCH buildenvvars` > > cd ${FREEBSD_SRC}/sys/boot > eval $buildenv make UBLDR_LOADADDR=3D0x11000000 -m $ubldr_makefiles o= bj > eval $buildenv make UBLDR_LOADADDR=3D0x11000000 -m $ubldr_makefiles clean > eval $buildenv make UBLDR_LOADADDR=3D0x11000000 -m $ubldr_makefiles depend > eval $buildenv make UBLDR_LOADADDR=3D0x11000000 -m $ubldr_makefiles a= ll > > cd arm/uboot > eval $buildenv make UBLDR_LOADADDR=3D0x11000000 DESTDIR=3D${UBLDR_DIR= }/ BINDIR=3Dboot NO_MAN=3Dtrue -m $ubldr_makefiles install > > The last bit here is just a way to get the FreeBSD makefiles to copy the built executable to a known location (otherwise, Crochet has to reproduce the FreeBSD build system logic for determining which objdir layout to use). > > Cheers, > > Tim > Thanks, So maybe its truly a documentation issue since everyone is convinced crochet is correct. I didnt see that mentioned in the docs. Waitman