Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 May 2014 09:35:27 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        Baptiste Daroussin <bapt@freebsd.org>, src-committers@freebsd.org, Ian Lepore <ian@freebsd.org>, svn-src-all@freebsd.org, Glen Barber <gjb@freebsd.org>, Nathan Whitehorn <nwhitehorn@freebsd.org>, svn-src-head@freebsd.org, Tijl Coosemans <tijl@freebsd.org>
Subject:   Re: svn commit: r266553 - head/release/scripts
Message-ID:  <D5376A56-2CB2-4CFD-BBC6-0E97902D880E@bsdimp.com>
In-Reply-To: <20140528152820.GA3991@kib.kiev.ua>
References:  <5383522F.30108@freebsd.org> <DAD3E386-6555-4C43-9BBA-F3BFD28CC19B@bsdimp.com> <20140527001811.3e9d3e8d@kalimero.tijl.coosemans.org> <05D1A11D-5985-42EA-84AD-209A8B51D391@bsdimp.com> <20140527093633.0a922e13@kalimero.tijl.coosemans.org> <85FABD2B-81BB-4E1A-B61E-4216A144A9DB@bsdimp.com> <20140527214038.17d00369@kalimero.tijl.coosemans.org> <13EB325C-3882-46AA-9B17-3BF19997C978@bsdimp.com> <20140528125027.6d0cc4fb@kalimero.tijl.coosemans.org> <5E038619-5921-4B7A-A4EE-D1E83614934B@bsdimp.com> <20140528152820.GA3991@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_C7E55FE0-458E-45FA-A182-D0D8CAD07857
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii


On May 28, 2014, at 9:28 AM, Konstantin Belousov <kostikbel@gmail.com> wrote:

> On Wed, May 28, 2014 at 08:26:58AM -0600, Warner Losh wrote:
>> 
>> Then we disagree on this point. However, the disagreement here is
>> kinda foundational: to build a set of libraries or sys root, you have
>> to have a MACHINE_ARCH to make it work. Even in our current system, we
>> set MACHINE_ARCH to i386 or powerpc when building the 32-bit binaries
>> (note: we don?t do this for mips). This means that if we do grow x32
>> support, we?ll need to grow a MACHINE_ARCH for it. That?s my point:
>> all ABIs have MACHINE_ARCH associated with them, and those are the
>> names users are used to specifying, and are the ones that are the most
>> natural for script writers to use. With nathan?s patches, we?re to the
>> point where those are used, though there?s also the option of using
>> the non-standard names if you want (e.g. amd64:32 instead of x32).
>> 
> 
> I am not sure if this comment would add anything to the discussion,
> but other build systems do not require MACHINE_ARCH.  In our terms,
> other build systems are happy to build:
> i386 binary when MACHINE is amd64 and CFLAGS contains -m32;
> x32 binary when MACHINE is amd64 and CFLAGS contains -mx32.
> 
> For HEAD and stable/10 we finally reached the point where -m32 works,
> on amd64; it worked on powerpc64 from inception, AFAIU Nathan. At least
> this is true for dependencies limited to the base system, and not to the
> ports (the later is since ports do not know about multiarch).
> 
> It is limitation of our build that we require MACHINE_ARCH to build
> other natively supported ABI binary on the host. Ideally, the hacks that
> treat lib32 build as the cross-compilation would go away eventually.

I doubt it. The MACHINE_ARCH is used to select which files to build.

Warner

--Apple-Mail=_C7E55FE0-458E-45FA-A182-D0D8CAD07857
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJThgJAAAoJEGwc0Sh9sBEATWIQAL2aH326GOmkVtr9IQoZwBjL
IQwJrOHSIvKMouWtwA0HSLBDSmV1MMgc/r9xTzUcP6Kk0Dpj7wgiDoD1Oz63CFI9
t8mQ6zWDIrKOUPrUt8ziWXRLzI3Ok/DK9E3UhlnAVtjFFPH97LYwY5xut5aeC3zE
+Fxoibnmwc9UrI6muPRYLZ/RcbGqMqHRFqacYyKSSiBXMWHN9lxYpvi+8XA4ehQ+
Pb3/e3/CotHzdU+6DrjmWlmYurzyNO7UO6iO8E1oHkNTA2CB3QVaCoAPjWsHWrLY
snJY+patpa/FCwv4ScxcNijF+4ekOaldz7Hyx1MrQI5UAaitnoYatUBvjqGZB6QO
HbQKwh77pswXyJyNHZK0GgpDbWs6cFbNhMBUZkFlFJBzJF0HmUlPGhPITA52aw43
IGo0PWhAMWrYrvyc+ZvFvVzVZ4uL/lihiOuMTTlG8gpNmjC1Xc0q2PpsoNtF+Rba
yARNO9guMljxErDe8OKfwGGrBZYq9hBygS8Yr3kas1J1vAoJg8F0/zJlKK7Q+uCc
qw9cUVgn66gv2qC1XZ7CkA+g74630aTX8dhRZwGgU6RHoCNCpKhLMszp3Pzj3bes
j8gIk9THiBvBe37bFtE8dbruWnYQ85xvtQ46NtIbt7KctDni0Abyt0P2UqeC4zw5
EYmAx6CZoznRQ3IRHgBI
=dBaE
-----END PGP SIGNATURE-----

--Apple-Mail=_C7E55FE0-458E-45FA-A182-D0D8CAD07857--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D5376A56-2CB2-4CFD-BBC6-0E97902D880E>