From owner-freebsd-arm@FreeBSD.ORG Sun Apr 19 15:19:20 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0D855803 for ; Sun, 19 Apr 2015 15:19:20 +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 C93A3809 for ; Sun, 19 Apr 2015 15:19:19 +0000 (UTC) Received: by oblw8 with SMTP id w8so102675729obl.0 for ; Sun, 19 Apr 2015 08:19:19 -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 :content-type; bh=suSy5EwqLFMq3n91CkyWV7LUqIDA4zpWSmV3mhfO9ts=; b=qLrGWEYXvViSKuR9+d1CgI9vBiLhjgnX39lOtmkfEakU1aZ8Qcx008A9AqN3CzKq+E tCzmMc7FxxmeRjIyedzeLJNDbWiN4BfTuIbVovU63FsKfm4eP5bJQfcg5As6g8333mtV QgJG6lhZjnxpwchPXd3ncpSmuZQwkWTc/pdHmBuESgZVMMweVuCplnHSfOBcJNH74bzF zbW016IJb4cPEBqv1kCi3J1DUX+/blo98vMgVPiOiQE5HADwNi4mNI385bVPylFGr6D0 paiWUEAEqUcC275BsmrmzR8QUjZdmyK2gpx2LEQ5+BmHYElFFF8m40kvXRcav6+4YO/z jqpQ== MIME-Version: 1.0 X-Received: by 10.202.183.214 with SMTP id h205mr10132083oif.87.1429456759138; Sun, 19 Apr 2015 08:19:19 -0700 (PDT) Received: by 10.202.177.85 with HTTP; Sun, 19 Apr 2015 08:19:19 -0700 (PDT) In-Reply-To: References: Date: Sun, 19 Apr 2015 08:19:19 -0700 Message-ID: Subject: Re: crochet build fails at ubldr Wandboard-Dual From: Waitman Gobble To: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 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 15:19:20 -0000 On Sun, Apr 19, 2015 at 7:39 AM, Waitman Gobble wrote: > I'm having a problem using crochet to build Wandboard-Dual. > > > Failed to build FreeBSD ubldr > Log in /usr/home/waitman/crochet/work/ubldr-armv6-ARTWDEV/_.ubldr.armv6-ARTWDEV.build.log > > This command is failing: > https://gist.github.com/waitman/d53ea6d7139cc960bc2f > > > For some reason it wants to link with /usr/lib/libstand.a, which is > incorrect architecture > > (simplified) > cc -o loader.sym /usr/lib/libstand.a > > probably should link to this one instead? > > ./work/obj/arm.armv6/usr/src/tmp/usr/lib/libstand.a > > > I think this part of the build is happening here: > > lib/freebsd.sh > > freebsd_ubldr_build ( ) { } > > > config.sh: > https://gist.github.com/waitman/6c6a3e4a7ea3a195366c > > crochet version: > # git rev-parse HEAD > 168939eefc 78c3c63fa4859c11defd7bfa619b0e > > # uname -a > FreeBSD rpidev.waitman.net 11.0-CURRENT FreeBSD 11.0-CURRENT #0 > r281689: Sat Apr 18 14:20:54 PDT 2015 > waitman@rpidev.waitman.net:/usr/obj/usr/src/sys/RPIDEV amd64 > > Thanks, > > -- > Waitman Gobble > Los Altos California USA > 510-830-7975 LIBSTAND is set in /usr/src/share/mk/bsd.libnames.mk LIBSTAND?= ${DESTDIR}${LIBDIR}/libstand.a setting LIBSTAND gets around the problem, and crochet build continues. # setenv LIBSTAND "/usr/home/waitman/crochet/work/obj/arm.armv6/usr/src/tmp/usr/lib/libstand.a" # sh crochet.sh -c config.sh (somehow it's not getting set in the build) -- Waitman Gobble Los Altos California USA 510-830-7975