From owner-freebsd-arch@FreeBSD.ORG Tue Jul 8 03:07:54 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 641083E3 for ; Tue, 8 Jul 2014 03:07:54 +0000 (UTC) Received: from mail-pd0-f182.google.com (mail-pd0-f182.google.com [209.85.192.182]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 32CC52139 for ; Tue, 8 Jul 2014 03:07:53 +0000 (UTC) Received: by mail-pd0-f182.google.com with SMTP id y13so6327255pdi.41 for ; Mon, 07 Jul 2014 20:07:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=pqR3EWRI/C3/JnYGG6/4EPcEcS7wetxEnOaToxI9n1Y=; b=BvGHr5GUjamukyA/OZl/9dxhYK4D/zmitdsIeQwHHkSn3njp/hRIsMiHLp01Bx8+zn ZRxsDLM5LP7ZdD/CY4acrcCh0nNVmkFt9FVFMY7lo276zlB/sS41OhTnCJ7m4xUZQDTC Qj4wbHlEmmIXBY07iqNiLdwfCePG7cZLn0yXmU/ciM4Ph51xzOIGfgucP7AkIl+/Gj4r c76WCsJ+ZvKHY8vOHuasRylyE0IgbXRm02a2cTngxDWPqijC8FeLUVBt7IsV41cCYFIr ktR04tNlauqJWAlgMKqGQ+OWZY6CXPh2p9L/IN6RAu43GjIjLk/vLYNGHbjB6uLPB/ei zIFA== X-Gm-Message-State: ALoCoQnVCyQKnK3pXXdC+J86uI9yspq0IWKI2dqP1kInY9Z9EsAiiqqYadkoY97ZM9j6Pto/EE0Y X-Received: by 10.68.103.165 with SMTP id fx5mr6872756pbb.118.1404788872558; Mon, 07 Jul 2014 20:07:52 -0700 (PDT) Received: from [10.64.24.152] (dc1-prod.netflix.com. [69.53.236.251]) by mx.google.com with ESMTPSA id fx14sm22267858pdb.4.2014.07.07.20.07.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Jul 2014 20:07:51 -0700 (PDT) Sender: Warner Losh Content-Type: multipart/signed; boundary="Apple-Mail=_DED1089C-C57B-47FE-88BE-4FE509337281"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Total confusion over toolchain/xdev behavior From: Warner Losh In-Reply-To: <2788FB1E-9498-40C2-94DE-F4C73A5DDD30@kientzle.com> Date: Mon, 7 Jul 2014 21:07:50 -0600 Message-Id: References: <1404688077.1059.115.camel@bruno> <2788FB1E-9498-40C2-94DE-F4C73A5DDD30@kientzle.com> To: Tim Kientzle X-Mailer: Apple Mail (2.1878.6) Cc: freebsd-arch@freebsd.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2014 03:07:54 -0000 --Apple-Mail=_DED1089C-C57B-47FE-88BE-4FE509337281 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Jul 7, 2014, at 8:59 PM, Tim Kientzle wrote: >=20 > On Jul 6, 2014, at 4:07 PM, Sean Bruno wrote: >=20 >> Objective: install an xcompile toolchain into a jail for use by >> poudriere during arm/mips/sparc/power ports pkgs builds. The build >> should be possible from a non-root user. >>=20 >> As far as I can tell, the xdev target is completely busted for = non-clang >> arch's right now as it tries to build clang no matter what I do. >=20 > I think you can avoid that if you specify both: > WITHOUT_CLANG=3Dt WITHOUT_CLANG_BOOTSTRAP=3Dt >=20 >> Its missing some pretty key documentation to making it work = correctly, so a >> lot of my attempts have been "guess and check" with verbose make. >=20 > Some of the complexity here might just be that =91xdev=92 is currently > trying to do too much. I think I would find it simpler to use if > it were a handful of separate targets: >=20 > # Build and install a cross-GCC using the in-tree sources > make XDEV=3Darm XDEV_ARCH=3Darmv6 xdev-gcc >=20 > # Build and install a cross-clang using the in-tree sources > make XDEV=3Darm XDEV_ARCH=3Darmv6 xdev-clang >=20 > # Build and install cross-binutils using the in-tree sources > make XDEV=3Darm XDEV_ARCH=3Darmv6 xdev-binutils >=20 > # Build and install cross-libraries > # Prerequisite: (xdev-gcc or xdev-clang) and xdev-binutils > make XDEV=3Darm XDEV_ARCH=3Darmv6 xdev-libs Interesting ideas=85 Will have to ponder them again, but in the = earliest days I tried these and hit some turbulence=85 But as I said elsewhere on this = thread, that was maybe 10 years ago now and maybe things have changed :) > # Have I missed anything? >=20 > If I understand correctly, xdev-clang in many cases > could install symlinks to the host clang without > actually building anything. (If I=92m right about that, > maybe we could consider installing those symlinks > for every architecture as part of the default base system.) The driver program would need to know to use a different sys root (or = we=92d need to install things in the clang centric way) as well as which = architecture to use, which it might be able to guess based on the binary used to = invoke it (now that=92s a feature that has a checkered past, some good, some = down right awful). I=92ve been after the clang folks to justify bringing in = everything on every platform by providing an example cross build in the base, but so = far nothing has materialized... Warner --Apple-Mail=_DED1089C-C57B-47FE-88BE-4FE509337281 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 iQIcBAEBCgAGBQJTu2CGAAoJEGwc0Sh9sBEAUXsQALcUEOw9KLsRvBol/rhMLlpT 0d3TXLePRvRBSpYei0J0Gi1Zq6IrrElSR+gwJg6KJMzaUjEK4lJL0i2Ipt5QOpKA 7BLUe5Y3kuCguXKxVWmTMk6giNZ1eFE1E8uq/TJIIjDZ7eCIOhfsH3kXWiLgn2/m X0ezmiFuulqL+EBT72G1d8nLV2YwnomDoAaJusT2KHg1cObQWy+jaO3NHp0e/kS8 4fih1wAdJtoflyPg0cv0oXWUHsv3fJw3JfEu8tOWXLqoLvbMznjIKpNeMjt2b+jY 7eDhF/4WChqsQCaOGQi6dWnPz2BTYZM1SyIY/wb2amctiQbvpTfRnUADXN0Vfpob kfBTo8/WELy73VVWWzOWSxnq2ZLPxP3D616oz6QwaSX548hMR0vhxcXLLQN0IkgV G5ikihF6hFkOZRZhZSh/8LFJ+zw1YWkqMGZJEYGLBdsJTzV++arQO11SMUjZbmlf W3jj3gXPRHqSEymwJwJl3mWSRWZe7BU24Ir4MWP4VzL8z/P4Q9sk4/LyIqvxB+jT L2oCiMNV6GBTi37Nj8G2U9Nsl03R4QRumLyBkz5m8XFxPOBQKnD+VJTlWSDemehl l0ct3Wk7ZBd8eqi8S1xr+4qcFXHolJu/LM850K/QcSzaRmjXH1/W68zR/2snudnK vOIZVQmbYER+zXirVDF9 =SlPe -----END PGP SIGNATURE----- --Apple-Mail=_DED1089C-C57B-47FE-88BE-4FE509337281--