From owner-freebsd-arm@FreeBSD.ORG Thu Feb 12 03:46:39 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 5B37CB9A for ; Thu, 12 Feb 2015 03:46:39 +0000 (UTC) Received: from mail-qc0-x236.google.com (mail-qc0-x236.google.com [IPv6:2607:f8b0:400d:c01::236]) (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 11A62D3C for ; Thu, 12 Feb 2015 03:46:39 +0000 (UTC) Received: by mail-qc0-f182.google.com with SMTP id x3so6611526qcv.13 for ; Wed, 11 Feb 2015 19:46:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=OC/ilOaNjLZHM8FJ2Cez/4YDBBqVrtx7QVivAjcdNNM=; b=gDnIfez0IS9swrDsNU1/Bl6mOoze34CU/Mfa1NEA8UIskOxoTV8q3K1XRR6fSlsSrv UNQXGhZuif9B1rJ2JkqJ0eDZJYv7sWsdMYiif4X+ftX1t0m+S6X5TCiOwXYY4rPDZ/mQ kkSSmuLednRywoU7Ql0jbJ2+/u21zoHjheoDJgYTICiCXL1dDsRfBf9qCkDgbo3SRMsA 83E/+cZ9DM683+jD/eISWLnLT1kUBQ3G/lpcEEWu5uVthA3691p6TWB3imz1foz4E668 QEY0UoT5jDKdO6e+C6hXSFuQtaUsJ2Ug8MlpKxW/L00xniFd9IulWMAc3i816RngJZiD Cong== X-Received: by 10.229.175.131 with SMTP id ba3mr5218756qcb.3.1423712798240; Wed, 11 Feb 2015 19:46:38 -0800 (PST) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.140.39.209 with HTTP; Wed, 11 Feb 2015 19:46:18 -0800 (PST) In-Reply-To: <607BF592-A09B-4DB4-9872-C9E63066AB57@bsdimp.com> References: <607BF592-A09B-4DB4-9872-C9E63066AB57@bsdimp.com> From: Ed Maste Date: Wed, 11 Feb 2015 22:46:18 -0500 X-Google-Sender-Auth: NAtnRZ1z12md032vjF2o56jNU4I Message-ID: Subject: Re: FreeBSD/arm64 MACHINE/MACHINE_ARCH identification To: Warner Losh Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Feb 2015 03:46:39 -0000 On 11 February 2015 at 19:20, Warner Losh wrote: > > Linux used the original aarch64, but later changed to arm64. Are you sure? As far as I can tell Linux reports "aarch64" for uname -m (i.e., hw.machine) and that is what config.guess / autoconf expects. > I suggest > that we follow this carefully. We botched the naming of amd64 and have > dozens of warts in our build system because of it. Indeed. We have to be sure that this is correct before it makes it to HEAD. > I strongly object to the MACHINE change for reasons stated above, but the MACHINE_ARCH > is likely a very good change since it aligns with the expected values for configuring things like > clang, gcc, bintuils, etc. As far as I can tell it's uname -m / sysctl hw.machine that's used by autoconf. Uname -p is hw.machine_arch and doesn't seem to be used.