From owner-freebsd-arm@freebsd.org Wed Oct 11 02:39:17 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 34260E43EB6 for ; Wed, 11 Oct 2017 02:39:17 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x233.google.com (mail-it0-x233.google.com [IPv6:2607:f8b0:4001:c0b::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 ED43275A97 for ; Wed, 11 Oct 2017 02:39:16 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x233.google.com with SMTP id l196so1065834itl.4 for ; Tue, 10 Oct 2017 19:39:16 -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=wuEQEEqRsB1cdAUX0azoUQqz7vwHUud6LzB9ZIWq90Q=; b=qev0VJX/YFcYQLmXKjsGYYUjlFPA14OgJi6sRhWx7IYI7LBHacGbZOCVVNXuwmO+i6 X+rcWO65eyZtLBr+KRos5FtuXbhWaV76XI+rXo3B71aW6+QCCyF95eCnmMF0YR7sqJm8 osrqVq1A8bSi79cyRKUEDf2rB1Q3gJafhIaguEJpfAdyfVNvfZLdfnkwYK87yKM65fHx i7PKg7qShHBM5k0gmeHDNXf0mKL6gzru4wsXOrXrhVTVRJj+SYQeI5hmdqw3FkckB6W4 eM6F50aDbLQ1E0q3Nsvc8m9IBd1z4tW/k0UWCwVxgpxusx1ETN23cjOjQE3PWcVDeZa5 v1TQ== 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=wuEQEEqRsB1cdAUX0azoUQqz7vwHUud6LzB9ZIWq90Q=; b=CWZZCe14KhnnXE4VwqjWIg6dU5yr4UpRaYrSf7yxB2wruimZ2CRGhaGr8g+6G5aeCi m2pxF0JRD5JtpfN+dPRhPlMckGgC7y5LANTWZzvYjJKhM8qBQth1Lf+E6YHHSDfaZfOL XTsvpVFIy8ncu4dxIi0A1ySiydGySXtx/ANNrsKZaxqNvREp19Zf3NUGSsJ/GKPayvZD LJcfXQilCKWzf9eh1CIVkzdM8ngqV6ncKGjRXotZJq3sCuZXxrWiFqr8H8HMcATATmm0 uq7W+1WgwdsGPgPSXqdUSCZVIUX2BmiDe4hBaOX0E+lzhAfW0FqDSvFcMpt91aTJK4gT vatw== X-Gm-Message-State: AMCzsaXfsjbOXiS3p1rNY1/+cu9bwKG1mHw5TNs75PAAIqzXIGD0CvzR GiJTRELaCO51tGnIw6LQ7Xb2tjfyokvZAPa/y3wZxw== X-Google-Smtp-Source: AOwi7QAxvUhh4lvamFle5Hib+F9xxB+YBV3TDLcml14XBj9/Ucs1qQS9k9lA1KbhVbd+n9eIcz9qf6UumLluFT4EjkM= X-Received: by 10.36.19.207 with SMTP id 198mr20180523itz.130.1507689556256; Tue, 10 Oct 2017 19:39:16 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.94.130 with HTTP; Tue, 10 Oct 2017 19:39:15 -0700 (PDT) X-Originating-IP: [2603:300b:6:5100:8936:338a:89de:d5ea] In-Reply-To: <20171011023356.GA57571@www.zefox.net> 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:39:15 -0600 X-Google-Sender-Auth: zMg-djZFNzbXz4txpZOxRnwrMz4 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:39:17 -0000 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? Warner