From owner-freebsd-arm@FreeBSD.ORG Tue Apr 15 20:32:46 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 04CCE6C5 for ; Tue, 15 Apr 2014 20:32:46 +0000 (UTC) Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CAB191989 for ; Tue, 15 Apr 2014 20:32:45 +0000 (UTC) Received: by mail-pa0-f49.google.com with SMTP id lj1so9901472pab.8 for ; Tue, 15 Apr 2014 13:32:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=I1f25/HhexVeksuOpcd12pmrYQVOq2MKC6hKA7syw60=; b=FO9X4dWpc/AmBeFqRZjqAAvL3wb6t9CcUbbK3sqk79mcBlJxW9sGDtXQacsl5OxgUl fRsFuMjLmW+/JPj/Vh59SCV03WjOgDs91LhVfm30blSBucK1Bjui1AYyPjTnaV/RAAK0 bxCbcntv0GLMH3s5jaWTO83lz7q2MUtthFz3sab46OLkRJr4NiR92b9IDE34BNmo6DSZ zGdpxvIYyqVde70Ewo5yVg7vhLebMd0PHdnSY3G9/amMqjmKNntHedwusdAuctGyV/1K BZhw5ioySrFa8KsujTl91av4pIKd4jQwe6R8SEq3p4srtKBG71LYpEyZ0AmSYe8Px7Do Wb+w== X-Gm-Message-State: ALoCoQmISUQxRp6sbc8RWaDeb/L0x2wV0fXkJGymLnKj/Hw+H4LWMB/chMG9BWpCq84JpRASrvmp X-Received: by 10.66.142.201 with SMTP id ry9mr4286794pab.14.1397593964979; Tue, 15 Apr 2014 13:32:44 -0700 (PDT) Received: from macintosh-c42c033c0b73.corp.netflix.com (dc1-prod.netflix.com. [69.53.236.251]) by mx.google.com with ESMTPSA id om6sm42239653pbc.43.2014.04.15.13.32.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 15 Apr 2014 13:32:44 -0700 (PDT) Sender: Warner Losh Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: Building an ARM/RPI-B release (hacked) on CURRENT/AMD64. From: Warner Losh In-Reply-To: <9FDD6F0E-B2A9-48D9-A3E4-181868995FDA@grondar.org> Date: Tue, 15 Apr 2014 14:32:42 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <1EC12C2A-9407-493E-9240-13B394BCEFB1@bsdimp.com> References: <9FDD6F0E-B2A9-48D9-A3E4-181868995FDA@grondar.org> To: Mark R V Murray X-Mailer: Apple Mail (2.1874) Cc: Tim Kientzle , freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2014 20:32:46 -0000 On Apr 15, 2014, at 1:23 PM, Mark R V Murray wrote: > Hi Tim >=20 > I=92ve been doing some local hacks to cross-build ARM/RPI releases on = CURRENT/AMD64. >=20 > What I=92m doing aren=92t clean releases in that I want to use the = state of /usr/src and /usr/ports =93as-is=94 and not a clean check out. = This allows me to experimentally break stuff without having to check it = in first. It also give me a way to build bootable images for when (not = =93if=94!) I mess things up properly on the RPI. It has the advantage = also of being quicker than the usual release build. >=20 > (The hacks, as they stand now, are attached. I null-mount /usr/src and = /usr/ports instead of checking them out, and I have local checkouts of = crochet and u-boot to copy as checking them out during a release build = fails too often.) >=20 > The problem is that sometime in the last month or so, things stopped = working, and its taken me until now to have the time to have a look at = it. >=20 > The problem is that during the u-boot build, a CLANG-based xdev build = is used, and this has no *-gcc, only a *-cc. If I fix that with a = symlink, clang then objects to the -ffixed-r8 option. Clang has an = equivalent -ffixed-r9, but the u-boot that is mandated for = FreeBSD/Arm/RPI use doesn=92t have the R9 fix. >=20 > Questions: >=20 > 1) Are you aware of any of this? >=20 > 2) Do you have a quick fix idea (preferably not involving GCC)? >=20 > I=92m rather short of time right now, but may be able to get to this = over Easter. I=92d be tempted to do "make xdev -DWITHOUT_CLANG -DWITH_GCC=94=20 Warner=