From nobody Mon Apr 24 04:22:01 2023 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 4Q4X65149lz45ygD for ; Mon, 24 Apr 2023 04:22:21 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic311-25.consmr.mail.gq1.yahoo.com (sonic311-25.consmr.mail.gq1.yahoo.com [98.137.65.206]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q4X642CVtz3Kl0 for ; Mon, 24 Apr 2023 04:22:20 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1682310138; bh=AiKxJyjYErjXS12Yg7EBLRdOodmPyKcf+9JZ9aoHRrQ=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=mhKgsJx49O0Dj/0K2OzfgnOBAY721OX0oIsXoliv5hXISDpEnPRqFXEdIkmBD2DtlI5aNU/lBIQ30+ENpQMmqje8eK3B4Bmk+iWVevWDph/kkrkNTY9rUlrjhe4ddcIw611viRnfMrs+Gf98U47m3vC8PRhav+s9DhrRj4WplkuVTvFlfb8ya10CZl8za89FNJTeAzEExYAPQTROOPPU+KhIiKyBcM0WGuzmo/R8wBrSf6BDzS0LftSSx3tuwyk+42QWv7l3v3p1aMnWlyjv8m/S2v7fm3Xaxgpe8JnPN3WZKez7dIO6YFTPVGsDp6jJd9zKM6yl61a88KqGo5OBjA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1682310138; bh=2f1eqLNhm2IHF2DWcjYINvw14BXC1rjhMr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yd_JTzBxDBQJNAi8sdxaQ4SZyepDX3cH5AGDH G.dE4N0O8YxuKbWuAcUfx5nSdYKvPfjXI8dvcKJtqDXmzyHYcE9IHShZi3Q._1_wiE0X0CetyBlE WE7sjwtpkrsb.a.jgi_es3Ian3kfeec5RtDvZibuc6S9pXeioWtgXp.itqs7A8Bi09FrBaLKzZAp M_ICDwVzieOnkXy7Gx.FT6cDh4S8lGn2iMx01JzkD7_kwV2PiqYYf38bSK4KFgEy2m7c0WOn.8sV pcgWIeL4EuX0c8wONKF4ROpQVnUNxYdzosRbaPZX0d9lqTviEnUjUm1FQw7Spg4WOglCnIuoKIZA nBGK6TqG9MEcwSNa3kh5MmnNC_0Z4DPNqOs6TJomsF3zm0tJKA43lKVYaROKkQBFk79Xpu8WVNbf Upz31PezUk5QqB3rjYdBjZc.0dGvQkxlgb_9LKuibZx3kkx8t2PS1xaAfI7XIyt2_BdZmFeK4cfo i4IKjEZ3CGbC0WQkg_1ONKzJeuNGbadX8GC8YR6YmnelLIZEVsFvvRyBPTtmkXZ56_bwczhRq.Gs - X-Sonic-MF: X-Sonic-ID: 16c1dba0-2e60-4b51-abb7-dc2e9fdc44d2 Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.gq1.yahoo.com with HTTP; Mon, 24 Apr 2023 04:22:18 +0000 Received: by hermes--production-ne1-7dbd98dd99-vd22t (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 026806350805b931e5a78eaa9ebb77a1; Mon, 24 Apr 2023 04:22:13 +0000 (UTC) Content-Type: text/plain; charset=utf-8 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 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Subject: Re: /lib/libc.so.7 vs. __libc_start1@FBSD_1.7 in main [so: 14] recently ? From: Mark Millard In-Reply-To: Date: Sun, 23 Apr 2023 21:22:01 -0700 Cc: "Simon J. Gerraty" , FreeBSD Toolchain , Current FreeBSD Content-Transfer-Encoding: quoted-printable Message-Id: References: <5B26AB25-075F-4630-86C1-886E6082CDCF.ref@yahoo.com> <5B26AB25-075F-4630-86C1-886E6082CDCF@yahoo.com> <90353.1682307584@kaos.jnpr.net> To: Warner Losh X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Rspamd-Queue-Id: 4Q4X642CVtz3Kl0 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N [Warner answered my specific question separately. This is about something else.] On Apr 23, 2023, at 20:57, Warner Losh wrote: > On Sun, Apr 23, 2023 at 9:40=E2=80=AFPM Simon J. Gerraty = wrote: >> Mark Millard wrote: >> > I will not get into why, but I executed a git built for 1400082 >> > in a 1400081 world context and got what was to me a surprise, >> > given that /lib/libc.so.7 is part of 13.2-RELEASE : >> >=20 >> > ld-elf.so.1: /usr/local/bin/git: Undefined symbol = "__libc_start1@FBSD_1.7" >>=20 >> This is a symptom of trying to run a prog built for target on a host >> which is not the same. >>=20 >> I hit this a lot recently while updating Makefile.depend files for >> userland. >>=20 >> There are a number of makefiles (eg for sh, csh, awk) which need to = run >> a tool on the host to generate something. >> When trying to build 14.0 on a 13.1 host each of those tools failed = with >> the above issue until actually built for the host. >=20 > Your path is messed up then. We always run (a copy of) the host's = binaries > for these tools. For the kernel's vers.c generation, git is used but does not get a build of its own under buildworld or buildkernel as far as I know: not a bootstrap or staged tool. > If you were running the 14 binaries on 13 as part of the > build process, the path is messed up. I'm not surprised for dirdep > since it doesn't do all the staging activities that buildworld. git use is not covered by buildworld or kernel-toolchain staging activities as far as I know. Is git the only example of such for things used by buildworld or buildkernel ? >> AFAIK the non-DIRDEPS_BUILD build does a separate pass through the = tree >> to do the target build-tools to build these things. >=20 > Yes and no... We copy the host's tools when we can, and build a = matched set of > binary and libraries when the host one isn't good enough. I think it's = a path > issue you are seeing... >=20 > Also, "copy" isn't a physical copy because macos hates copied binaries = due to security concerns. > =20 >>=20 >> The DIRDEPS_BUILD uses a pseudo MACHINE "host" to deal with such = things, >> ideally those tools would be built in a subdirectory of sh, csh etc, = so >> that one can choose to build only that tool if desired - sometimes = you >> want to build the app (eg awk) for the host as well but usually not. >=20 > Yea, buildworld deals with this by creating new binaries and = installing them in > a special directory, which is somewhat similar (though we always build > them rather than on demand like dirdep hopes to do).=20 =3D=3D=3D Mark Millard marklmi at yahoo.com