From owner-freebsd-arch@FreeBSD.ORG Tue Jul 8 15:10:21 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EEE335C0 for ; Tue, 8 Jul 2014 15:10:21 +0000 (UTC) Received: from mail-ig0-f181.google.com (mail-ig0-f181.google.com [209.85.213.181]) (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 B32952DB9 for ; Tue, 8 Jul 2014 15:10:21 +0000 (UTC) Received: by mail-ig0-f181.google.com with SMTP id h15so778885igd.2 for ; Tue, 08 Jul 2014 08:10:20 -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=X1pSkN/YrV7LWQnR3Y/RiyX/rr2spQLKsxJhWhws9N4=; b=DnbB3r+6JqTbhcdBudwXdii2y0gk1upAkYUREQxssYKXAzxD8BVmmJhRkbrGra7IlN UZvNenKnoCtqSAxpKGAFHnqVqCs9wcbRmpF//nv6x3xBT4k3nB5IB/5xD2rWaNf7i2dZ JeyP3X+caSNmaWvd0/CZPvPP9uRhmD6RqqB8mlejFYuDDW1xdSD3xKlnNQgligv7mgq9 OXVsg1+W39L01IagFs2ZT/xXfN5TH2RkKJKVeMAYgxTpy0JP3h+L7Pb3jOLyjiyt6tko gZxUUvALM+D1LivV8m6z+cg0Bz8l249NDzI1JmGmT4vQeS7w4wBv+dFS65ZDbXntGej0 +e1w== X-Gm-Message-State: ALoCoQlb+p4LytDRzzYR/nnEBOtYbOTdRWRrRjkptN+pPrYeLIMzI3Pq72MRpNTq0M+vI6cRl+5n X-Received: by 10.50.27.4 with SMTP id p4mr4726852igg.22.1404832219392; Tue, 08 Jul 2014 08:10:19 -0700 (PDT) Received: from bsdimp.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPSA id f19sm55481igt.13.2014.07.08.08.10.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Jul 2014 08:10:18 -0700 (PDT) Sender: Warner Losh Content-Type: multipart/signed; boundary="Apple-Mail=_F0F1A90A-7237-4D8D-9FD9-64BB0DB94A73"; 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: <1404822903.1662.0.camel@bruno> Date: Tue, 8 Jul 2014 09:10:13 -0600 Message-Id: <13698752-8370-404F-8919-969804CFE0CC@bsdimp.com> References: <1404688077.1059.115.camel@bruno> <2788FB1E-9498-40C2-94DE-F4C73A5DDD30@kientzle.com> <9356CE3E-1249-4318-8946-644FDD817CDF@bsdimp.com> <1404822903.1662.0.camel@bruno> To: sbruno@freebsd.org X-Mailer: Apple Mail (2.1878.6) Cc: Tim Kientzle , 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 15:10:22 -0000 --Apple-Mail=_F0F1A90A-7237-4D8D-9FD9-64BB0DB94A73 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1251 On Jul 8, 2014, at 6:35 AM, Sean Bruno wrote: > On Mon, 2014-07-07 at 21:19 -0600, Warner Losh wrote: >> On Jul 7, 2014, at 8:59 PM, Tim Kientzle wrote: >>=20 >>>=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 >> I just re-read this=85 >>=20 >> So why doesn=92t the following work: >>=20 >> make buildworld TARGET=3Dfoo >> make installworld TARGET=3Dfoo DESTDIR=3Droot-of-jail = WITH_INSTALL_AS_USER=3Dt >>=20 >> to generate a jail that you can use? Or are you trying to get a = native cross compiler >> into the jail? neither toolchain nor xdev will fit your needs, I = fear... >>=20 >> Or, in gcc terms, you=92d like to build host =3D=3D build =3D=3D = arch-of-the-silicon-of-the-mahine, target =3D=3D mips or something? >>=20 >> Warner >>=20 >=20 > I am trying to speed up xcompile build of ports. Right now, qemu > bsd-user is handling the builds via a native gcc/clang which is super > slow as everything is emulated. Yea, we got nothing that=92s for that use case. toolchain is for the = weird world that we build /usr/src in. xdev is for building mips on x86 = when the rest of the tree is x86. You=92re wanting native binaries when = the rest of the world is mips but that behave like the world is mips so = that when invoked in the typical ports way, it just works. I don=92t = think xdev will do that because the paths are messed up and you=92ll = need two copies of libraries, includes, etc. It expects to be installed = in /usr/$ARCH-freebsd/ and if it isn=92t, it gets cranky. Having said that, it sounds like a third way to build these may be = needed. One that expects to be installed in /usr/bin, is amd64 = executable, but produces mips binaries from /usr/lib, /lib, etc. Warner --Apple-Mail=_F0F1A90A-7237-4D8D-9FD9-64BB0DB94A73 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 iQIcBAEBCgAGBQJTvAnVAAoJEGwc0Sh9sBEAtiMP/RE5QZZBzBRAS0XyUWad2GAR x9pniXdHb2IyKY0lgfCGjYODIV7LrGBowJWKmeSoxR2ZhYjVdlWT/z5o8gX4zaBd UO8TvbfLXyXXCQyaHaSkgA5u+s2ZF68vuqfpeD2Yy9SDpIH6moZgPsfEK47j3Jau /m0zzR8sI6/M1WcPumH2XiHs5N0EQT3uWcU/V1vZjEv10xjziFuTmmlUELZ9X5qT l7bwVmre6kQaa5iB5Bc73uO6MekHOw0BUM+90TLsvbSpYXyku9i80h4mT7/tqWNt ROpKQrjoEy8sTdA90PN2pPdZLM7qa/nHHfbjTHJD71xgK/7tzh8fxhTLdh7jA9W3 +ePQojpQJdHSFSiIIGdNv7BdJtuzNadWK+iB3WjlOuhrwfxo7sgzrnAvxi7V4au4 6uOvWJQFN0c0vaPvrI2ahSPRJucVuh8afKaUWfkOHWrg+o0C8qhCClYs40oSi+rf AC7opqGTR3a9+MS000yL53u385MrOKxxB1kHHPjzpM4NcxXkcso9alhM9Q7+yhl/ zAZhI/TbJ0nI0J+m4IH1/0RzEuz4mmaa1ga/3SDG0vcTS+5Lkhu6W2w7MJbUWA5D 7E+766WN45Fx+JjTcafNvfiJ6ZJh0YF8/MZiRw3AlKCftrhSimbJLp//NXsHLG8P hSBU5zn/XxQIsSo0hvMW =SWYX -----END PGP SIGNATURE----- --Apple-Mail=_F0F1A90A-7237-4D8D-9FD9-64BB0DB94A73--