From owner-freebsd-hackers@freebsd.org Sat Jun 6 11:22:17 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1990E33023A for ; Sat, 6 Jun 2020 11:22:17 +0000 (UTC) (envelope-from gbergling@gmail.com) Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49fHD85PW2z4cSq; Sat, 6 Jun 2020 11:22:16 +0000 (UTC) (envelope-from gbergling@gmail.com) Received: by mail-wr1-x42f.google.com with SMTP id x6so12237292wrm.13; Sat, 06 Jun 2020 04:22:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=fF8gKMJ2JVhzHZdFJLGcsqtTrb1XxtwS9H/A5ue0C3Q=; b=i4CvGvUJPCq0BAmToxRMNYfZuqjxQMfiykCH20mg3WvtRR4rzVAvaRDWeiEOgrR1JD noFi5EWj3vTOD4qpCb7/HA7FGRGNZRzSCSVzqmeMH1E5mtUFrhcjSd7xNPt4MVouO/ao 3oAwRzRxwk8e5O9L4ZVDPmbhFNqt67o8DaYfaUM1bnNpKVVo0Nz0ClLVry5rDgBhNoSJ Fd9xHjFXDzq97BJ3nahqQFivezV7swzIMs6a5FYw03CTraOp26oPeRrdom/S/XTuQ6DZ Qf7nOjJivp7M4o7Y4fuPhM3FfMPr7Ocfpdy71jD5MxiVATx0cJqReCrhXbqaJI/dESw2 acHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=fF8gKMJ2JVhzHZdFJLGcsqtTrb1XxtwS9H/A5ue0C3Q=; b=LTBthJH6C0ubLM/AmImel+uP7HkSTV7y4xRifPlGs1yQeZsUWRlO6AJhLmD5+d82lZ ncig9tboPlNyeOGY7Md+U8Yj+OZ5gTTt4HR2vdiZIXr9Qwd3PHq7ITClZxBivY2z93KT tF2qr0AANj0t49wiXRSASAgGhD/+UutuDdrS97hLwbw4inDhrAWxsCxCEixUvRh9+7aq ih2nsABIXhYHogxro2By8HBQ2jFKPBMwJhpNHhJCwrWqGHQiMdbWon1Ipg4z1gnBayLO H1NB02M1DlyeGYgNU7BZVMH7w/xkP2/pL8IcH46RRbCwzCrEY+P65CP1LItdyyl0K8Oi RBqQ== X-Gm-Message-State: AOAM532vNFQeDSWcTII7apKecGZDaculc7YRc6be6KX5/cSD3/fvQrdj pGuR7/fnSpDcjMAMj2SH/BfeB+/h X-Google-Smtp-Source: ABdhPJwgXX4kVwDG7WbXh5QbjWo9XnvyIIbHq0yl/d9PPzqW0064cwe5KF4ipl1kOxOkYDi2K1XHCQ== X-Received: by 2002:a5d:548c:: with SMTP id h12mr13891815wrv.120.1591442534693; Sat, 06 Jun 2020 04:22:14 -0700 (PDT) Received: from [10.0.1.111] (p4fd3af72.dip0.t-ipconnect.de. [79.211.175.114]) by smtp.gmail.com with ESMTPSA id k64sm15661041wmf.34.2020.06.06.04.22.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 Jun 2020 04:22:14 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: Cross compile FreeBSD on amd64 for arm64 failes via compile determination error From: Gordon Bergling In-Reply-To: Date: Sat, 6 Jun 2020 13:22:12 +0200 Cc: Ian Lepore , freebsd-hackers@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <38CBC7EF-426B-45EE-9506-17B62F1F60FD@gmail.com> References: <20200605183002.GA2973@lion.0xfce3.net> <2e91deb9835aaaadd6dceec95395b81f5257f15b.camel@freebsd.org> To: Mark Murray X-Mailer: Apple Mail (2.3608.80.23.2.2) X-Rspamd-Queue-Id: 49fHD85PW2z4cSq X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Jun 2020 11:22:17 -0000 Hi Mark, > Am 06.06.2020 um 11:56 schrieb Mark Murray : >=20 >=20 >> On 6 Jun 2020, at 00:25, Ian Lepore wrote: >>=20 >> You cannot do that. The installworld process uses a path that points >> into the obj tree that got built (so that new binaries are used to do >> the install work), and those binaries are compiled for the arch that >> did the build. >=20 > That is my experience. >=20 > I used to work around a closely related problem when I built build* on > a fast machine, and did the install* on the slow ones. As I was using > automounts, I ended up with incompatible paths baked into the build, > so I worked around those with symlinks. >=20 > I never tried this with anything other than i386/i386 or amd64/amd64, > so the above is interesting. Could a viable cross-build* be "fixed" by > symlinks, and somehow and easily forcing a cross-build of the = bootstrap > tools? >=20 > My RPis wish to know :-) >=20 > M > =E2=80=94 In theory it should be possible to export the root filesystem of the = RPIs and do a=20 make installworld -DNOROOT DESTDIR=3D/exported/root/rpi-1 or something like this on the fast machine. But for now I have started the build on the raspberry pi directly to = stress test it a bit. :) -- Gordon