From nobody Mon Apr 25 19:47:03 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D21341A9EC74 for ; Mon, 25 Apr 2022 19:47:40 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) (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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KnFsm1DYKz4j1N; Mon, 25 Apr 2022 19:47:40 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: by mail-ot1-x336.google.com with SMTP id l9-20020a056830268900b006054381dd35so11545217otu.4; Mon, 25 Apr 2022 12:47:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dL6laFIraYwm1d7uagKDU8uuye1Xp5x/AHm/E9C7KdU=; b=iZue50jxcm6CsSnVoEMd8LTlfloSb7IbiaRaKwo425U+l4VelSBjEVcCxK4c7hHBYG ybjdoSfvfjLOM7s4E2W+4DVdCBAwx4wJ3MuXnI4QsmesyWna1vY4Ur109YrAaR6swKRg oio2Grt2Ie5bu7EluoLstfZpn3HbmJ2oYrwlRYk21W8tIfpdC7Qg2Na/6FmuONCXnVB4 COgQ1PHkNwdm3MYrqeD5/G7NF0+KUoaN84p1xPHg92FvrXbgNf1fMi1MsNwJne9RtPMG KaX4/nBF/X3TxAd34lNgcfpOxGUgY0kci5M5ngtff/w/cl3D5+HnojInzckyd0q2O9y0 o7sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dL6laFIraYwm1d7uagKDU8uuye1Xp5x/AHm/E9C7KdU=; b=IU8J4bWQEBy4if49CZtrTMZpGmDgMNcn9wsGStD3gRCULYMptiuxk+R5+BTEyzapLI a26iJtlIFmp+ldTUP/WyXFMpWDMPHKQfz8LSSuK69LvwGBiGjyOOkP+QEE9JshSI/W3P SBn8WtHHPFLQM/U5wY5oaPeRWcHPY5Wy1tB8XFGtA+Pf+B0pTTObpERhu+/VRSsKMOAP vTK2cwh8C3jjFYFBtUjPVwYyoTFVa3RV9d3f1ndRXMW6HBIW7uYeObEXhasVZ9G3J5wn hCi44p/D4uHe2ySVX/CrxXa2lk+PrXNmS8Bj1p+SacEceJLHIQoPNUZtLo5vIfw53M3o 6ttg== X-Gm-Message-State: AOAM532zx4p3YNgYI80lc90fi5w/zYBnJqC6k1AV0IlyyHxQEh4K6EOg uMDzZLIXyiW1EQ1jGM2JJD0dNyrQFsXwXtJqvfXBO8nTC9A= X-Google-Smtp-Source: ABdhPJwlaoZ4diyREz27MVUmZrs34vCUs4arcVsfIaQt1NLb/Y8y6NkxttWB5FkohbUQZE1gdL23Ui700f4IGHwYHzA= X-Received: by 2002:a9d:114:0:b0:604:8e3f:f5fe with SMTP id 20-20020a9d0114000000b006048e3ff5femr7121955otu.252.1650916059430; Mon, 25 Apr 2022 12:47:39 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 References: <3D48BE93-7D42-4AB2-82D4-88BBF4E1FD40@hausen.com> <20220425191823.GA89506@spindle.one-eyed-alien.net> <7FA0C88D-4446-47DD-BBC0-3300B26D6A27@hausen.com> In-Reply-To: <7FA0C88D-4446-47DD-BBC0-3300B26D6A27@hausen.com> From: Mehmet Erol Sanliturk Date: Mon, 25 Apr 2022 22:47:03 +0300 Message-ID: Subject: Re: Cross-compile worked, cross-install not so much ... To: "Patrick M. Hausen" Cc: Brooks Davis , "freebsd-current@freebsd.org" Content-Type: multipart/alternative; boundary="00000000000046c31b05dd7fd9da" X-Rspamd-Queue-Id: 4KnFsm1DYKz4j1N X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=iZue50jx; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mesanliturk@gmail.com designates 2607:f8b0:4864:20::336 as permitted sender) smtp.mailfrom=mesanliturk@gmail.com X-Spamd-Result: default: False [-3.96 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.96)[-0.958]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::336:from]; MLMMJ_DEST(0.00)[freebsd-current]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --00000000000046c31b05dd7fd9da Content-Type: text/plain; charset="UTF-8" On Mon, Apr 25, 2022 at 10:26 PM Patrick M. Hausen wrote: > Hi, > > > Am 25.04.2022 um 21:18 schrieb Brooks Davis : > > Cross install is not supported. As you have seen, certain tools are > > bootstrapped on the build host and used during the install process. You > > might be able to get away with nuking > > /usr/obj/usr/src/arm64.aarch64/tmp/legacy (or maybe tmp) and then > > running `make toolchain` to build native versions of those tools. > > that comes as a big surprise and disappointment. What is the point of > cross-compiling, then? > How to update a small slow embedded platform? > > You can cross compile a program and then use it on a related system . Please think this is a contribution . In that way , piece by piece you may construct another system . You are right : Being able to construct an installable system is a good idea . When it is not available as a whole , having a partial capability is a good step . Mehmet Erol Sanliturk > I tried your suggestion - unfortunately no worky: > > cd /usr/src/tools/build; make DIRPRFX=tools/build/ > DESTDIR=/usr/obj/usr/src/arm64.aarch64/tmp/legacy host-symlinks > Linking host tools into /usr/obj/usr/src/arm64.aarch64/tmp/legacy/bin > cp: chflags: /usr/obj/usr/src/arm64.aarch64/tmp/legacy/bin/basename: > Operation not supported > *** Error code 1 > > So I will probably need to checkout and compile on the Pi. What are typical > build times on a CM3+? Plus I am going to wear down the builtin eMMC much > faster. > > Kind regards and thanks, > Patrick > --00000000000046c31b05dd7fd9da Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Mon, Apr 25, 2022= at 10:26 PM Patrick M. Hausen <pmh@ha= usen.com> wrote:
Hi,

> Am 25.04.2022 um 21:18 schrieb Brooks Davis <brooks@freebsd.org>:
> Cross install is not supported.=C2=A0 As you have seen, certain tools = are
> bootstrapped on the build host and used during the install process.=C2= =A0 You
> might be able to get away with nuking
> /usr/obj/usr/src/arm64.aarch64/tmp/legacy (or maybe tmp) and then
> running `make toolchain` to build native versions of those tools.

that comes as a big surprise and disappointment. What is the point of cross= -compiling, then?
How to update a small slow embedded platform?



You can cross= compile a program and then use it
on a related system = .
Please think this is a contribution . In that way , p= iece by piece
you may construct another system .
You are right : Being able to construct an installable system is a
good idea . When it is not available as a whole , having
a partial capability is a good step .


Mehmet Erol Sanliturk




<= br>

=C2=A0
I tried your suggestion - unfortunately no worky:

cd /usr/src/tools/build;=C2=A0 make DIRPRFX=3Dtools/build/ DESTDIR=3D/usr/o= bj/usr/src/arm64.aarch64/tmp/legacy host-symlinks
Linking host tools into /usr/obj/usr/src/arm64.aarch64/tmp/legacy/bin
cp: chflags: /usr/obj/usr/src/arm64.aarch64/tmp/legacy/bin/basename: Operat= ion not supported
*** Error code 1

So I will probably need to checkout and compile on the Pi. What are typical=
build times on a CM3+? Plus I am going to wear down the builtin eMMC much f= aster.

Kind regards and thanks,
Patrick
--00000000000046c31b05dd7fd9da--