From owner-freebsd-arm@freebsd.org Wed Oct 11 02:41:19 2017 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 832CDE4407F for ; Wed, 11 Oct 2017 02:41:19 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x232.google.com (mail-io0-x232.google.com [IPv6:2607:f8b0:4001:c06::232]) (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 46EC575F3E for ; Wed, 11 Oct 2017 02:41:19 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x232.google.com with SMTP id h66so709541ioh.11 for ; Tue, 10 Oct 2017 19:41:19 -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:from:date:message-id :subject:to:cc; bh=2bG2QlkYsbqALhMeypB4i5mkTnPDWRYZAjaISZMBTVQ=; b=bfsTaO3Bx0gdu6RBE3hGqVfUsrSRuoycYexPU7suiIaPbl8IY2H/K27woRMlRL/jgN A3zfzLCibsnHsip3YGnBcUqiY5ySdKMMWCh0HlT0N8SZRCRHcbS0Wnc/0Dj4wNygpU5f pSaKEt3v59hqvsjmkZLS0qwdRqzK6TgLrinoh/2H6qoNFxTzb1sonpabFdEnLhUTTjE5 uY8mDRSDq+TLT6bSU44NtqY+kRLfhS9IQrpLJ8c2ekiaqEFMMJQOvf+wQaV1cHcsCgef kt9BFbmd7YCBLyT25/m66ebCWmoedHYRxnSlGRUpVPg0gpzih+Ib8ERLmCn43fnSd5mT cpBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=2bG2QlkYsbqALhMeypB4i5mkTnPDWRYZAjaISZMBTVQ=; b=i/30eNnnDP71rOQlDufc62W8bOqr/xvfJ7D7oPyZPvrHKHSZE5zeFUM/DKrEtE0pDO M2+7zQpJ/LOU1FnznVfR/a4nebZFtixtc91vAhcV8Rd9X9nYCPuxdgQ1fYUZsidiOl7y HYqosZxFu5TdecjHc/2PzZLq+hVVfYcvVLVMXErWFC0dK2FI4TisKk9opTHCGHIoy0gj lnkdutxpU0nq6IP2/HXg+dMsA3+zJ8Mb9WaNgmwfBojJ/7YbowbcONGwCVOBhwvj2bO9 nnkczvrszt2qMh3+z9aMxY2waTe77XJl2weh9VHEJyTHLFLqVh7d8IihdZ61z7KzzLht /47w== X-Gm-Message-State: AMCzsaU6g28NlP0Cv+w2POQNVAaysKfgpMJ7rsG0v4L/zrgVOwE7k/Bv 386vh2JdzD6OXBsgeyU4VvqXunnBC7BOArvgHIxqmw== X-Google-Smtp-Source: AOwi7QCyA0Deo1H8GFuw9THI0SJ8kNb157q3HYDhkoaMX627+TpjJRVtJxjR47ir4aHAX9tS3n39r610MfyiM1ZUbNs= X-Received: by 10.107.68.6 with SMTP id r6mr21599070ioa.282.1507689678515; Tue, 10 Oct 2017 19:41:18 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.94.130 with HTTP; Tue, 10 Oct 2017 19:41:17 -0700 (PDT) X-Originating-IP: [2603:300b:6:5100:8936:338a:89de:d5ea] In-Reply-To: References: <20171009175216.GA52497@www.zefox.net> <1507573171.84167.9.camel@freebsd.org> <20171011023356.GA57571@www.zefox.net> From: Warner Losh Date: Tue, 10 Oct 2017 20:41:17 -0600 X-Google-Sender-Auth: AYX_kZsbZb04k7LmR0wEq13aM3Y Message-ID: Subject: Re: Difficulty with armv6 to v7 transition. To: bob prohaska Cc: Ian Lepore , "freebsd-arm@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Oct 2017 02:41:19 -0000 On Tue, Oct 10, 2017 at 8:39 PM, Warner Losh wrote: > > > On Tue, Oct 10, 2017 at 8:33 PM, bob prohaska wrote: > >> On Mon, Oct 09, 2017 at 12:19:31PM -0600, Ian Lepore wrote: >> > On Mon, 2017-10-09 at 10:52 -0700, bob prohaska wrote: >> > > On an RPI2 model B, invoking? >> > > make -j4 -DNO_CLEAN MACHINE_ARCH=armv7 buildworld > buildworld.log >> > >> > Never set MACHINE_ARCH when building, use TARGET_ARCH. ?Be sure to set >> > TARGET_ARCH when installing as well. >> >> Tried it, like so: >> root@www:/usr/src # make -j4 buildworld TARGET_ARCH=armv7 > >> buildworld.log & [1] 1006 >> root@www:/usr/src # 1 error >> >> [1] Exit 2 make -j4 buildworld >> TARGET_ARCH=armv7 > buildworld.log >> root@www:/usr/src # more *.log >> --- buildworld --- >> make[1]: "/usr/src/Makefile.inc1" line 450: To cross-build, set >> TARGET_ARCH. >> *** [buildworld] Error code 1 >> >> make: stopped in /usr/src >> >> I also tried setting TARGET=arm and WITHOUT_SYSTEM_COMPILER=yes in various >> iterations. Should the variables be set somewhere else, in a config file? >> >> At this point the kernel is at r324499, along with the sources. Userland >> dates from late June (operator error). Kernels build, but could that make >> the trouble I'm seeing? Clang -v reports >> >> FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on >> LLVM 4.0.0) >> Target: armv6-unknown-freebsd12.0-gnueabihf >> Thread model: posix >> InstalledDir: /usr/bin >> >> Thanks again! > > > uname -a says what? > What happens if you do a build with TARGET_ARCH=armv7? Warner