From owner-freebsd-hackers@freebsd.org Thu Apr 22 18:15:13 2021 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 E3B9E5FB1A3 for ; Thu, 22 Apr 2021 18:15:13 +0000 (UTC) (envelope-from pblok@bsd4all.org) Received: from mail.bsd4all.org (mail.bsd4all.org [88.99.169.216]) by mx1.freebsd.org (Postfix) with ESMTP id 4FR5Dw6yhRz4fZZ for ; Thu, 22 Apr 2021 18:15:12 +0000 (UTC) (envelope-from pblok@bsd4all.org) Received: from mail.bsd4all.org (localhost [127.0.0.1]) by mail.bsd4all.org (Postfix) with ESMTP id 371E24B59; Thu, 22 Apr 2021 20:15:14 +0200 (CEST) X-Virus-Scanned: amavisd-new at bsd4all.org Received: from mail.bsd4all.org ([127.0.0.1]) by mail.bsd4all.org (mail.bsd4all.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5YqCfl6sC541; Thu, 22 Apr 2021 20:15:13 +0200 (CEST) Received: from mpro.bsd4all.local (pony_ip [82.101.198.11]) by mail.bsd4all.org (Postfix) with ESMTPSA id 5B4934B06; Thu, 22 Apr 2021 20:15:13 +0200 (CEST) From: Peter Blok Message-Id: Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: cross building i386 on amd64 Date: Thu, 22 Apr 2021 20:15:10 +0200 In-Reply-To: <31999507-b590-edcc-a4ff-b0a18105bcfd@grosbein.net> Cc: freebsd-hackers@freebsd.org To: Eugene Grosbein References: <376DADB2-A7A9-4519-888C-BCD8A32B62B3@bsd4all.org> <31999507-b590-edcc-a4ff-b0a18105bcfd@grosbein.net> X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Rspamd-Queue-Id: 4FR5Dw6yhRz4fZZ X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of pblok@bsd4all.org designates 88.99.169.216 as permitted sender) smtp.mailfrom=pblok@bsd4all.org X-Spamd-Result: default: False [-2.70 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[bsd4all.org]; RBL_DBL_DONT_QUERY_IPS(0.00)[88.99.169.216:from]; SPAMHAUS_ZRD(0.00)[88.99.169.216:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers]; RECEIVED_SPAMHAUS_PBL(0.00)[82.101.198.11:received] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2021 18:15:13 -0000 > On 22 Apr 2021, at 14:20, Eugene Grosbein wrote: >=20 > 17.04.2021 0:22, Peter Blok wrote: >> Hi, >>=20 >> I=E2=80=99m cross building 12-STABLE i386 on a 12-STABLE amd64 = system. Sources are refreshed every day. >>=20 >> Build runs fine and put everything in the right directory. For the = target i386 system it is in /usr/obj/i386TARGET. >>=20 >> Next I NFS mount the source /on /usr/src and /usr/obj/i386TARGET on = /usr/obj on the target machine >>=20 >> When I run make installworld it will use install from = /usr/obj/usr/src/i386.i386/tmp/legacy/usr/bin because it is the first = install it finds in the PATH set by installworld. This tanks because = install is compiled for amd64. >>=20 >> I understand why the legacy path is compiled for amd64. This is = needed to build a distribution. >>=20 >> So is this is bug or is the way I distribute the objects not = supported? >=20 > It was never supported. But, you will be fine doing it othe way: = running "make installworld" > using same system you used to run "make buildworld". NFS-export i386 = system to build host > and run both build and install there. I wasn=E2=80=99t sure if any non NFS supported functionality was needed = like chflags. Peter >=20 >=20 > _______________________________________________ > freebsd-hackers@freebsd.org = mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers = > To unsubscribe, send any mail to = "freebsd-hackers-unsubscribe@freebsd.org = "