From owner-freebsd-arch@FreeBSD.ORG Mon Jul 7 19:28:49 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 96F937C8 for ; Mon, 7 Jul 2014 19:28:49 +0000 (UTC) Received: from mail-pd0-f181.google.com (mail-pd0-f181.google.com [209.85.192.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 64A6E27FD for ; Mon, 7 Jul 2014 19:28:48 +0000 (UTC) Received: by mail-pd0-f181.google.com with SMTP id v10so5854320pde.12 for ; Mon, 07 Jul 2014 12:28:48 -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=tcjenkrVz/cZquusZ2pV0P+XyPKdbP/xmRznhkFQ++k=; b=b0QupsMh8hAa2wjUIQPNONPzo548tsh1hmfB1knsaKp/CUUwKQKuausk+8o/naLNqN Z2a7jgu3/ABj8eYkAauPfTeH4NxC3dJzVy6679e8+s2E8ZCs2NR17wsdoxrogjFEVlnm DYj1VyTAh8gr5M+g43PJu5YTnucvQRx6qba03Hj96ByEPuDxr0YtjKC9qmpAUG5dHIJY Bbwzxzj/XP0SEM/1oxa9oErl4/vgcia3WmK8bHnI1NmiZzfoQwoPLn96ALiSG/PMiXm7 ShaoVsUWEsvOx0o52PqQKTt/91M9BGlYG2RWnTxM2qAJzjF0FU8SYYL0ZeUQXVE2tuY2 P5zg== X-Gm-Message-State: ALoCoQmWhZrrQT/8RtQPLlm/6k9eEjbOnU6Hr+SgQdt+5ooD/cTfRfWtIHkcySuFrukXAKVV+zav X-Received: by 10.70.125.133 with SMTP id mq5mr490424pdb.97.1404761327941; Mon, 07 Jul 2014 12:28:47 -0700 (PDT) Received: from [10.64.26.2] (dc1-prod.netflix.com. [69.53.236.251]) by mx.google.com with ESMTPSA id co3sm53415089pbb.89.2014.07.07.12.28.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Jul 2014 12:28:47 -0700 (PDT) Sender: Warner Losh Content-Type: multipart/signed; boundary="Apple-Mail=_4C09DEC7-5515-4388-A003-7A4BF02D5D41"; 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: <1404756848.1105.1.camel@bruno> Date: Mon, 7 Jul 2014 13:28:55 -0600 Message-Id: <9CE37432-1028-44FE-B0B7-224625EB9AB3@bsdimp.com> References: <1404688077.1059.115.camel@bruno> <1404756848.1105.1.camel@bruno> To: sbruno@freebsd.org X-Mailer: Apple Mail (2.1878.6) Cc: Benjamin Kaduk , 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: Mon, 07 Jul 2014 19:28:49 -0000 --Apple-Mail=_4C09DEC7-5515-4388-A003-7A4BF02D5D41 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Jul 7, 2014, at 12:14 PM, Sean Bruno wrote: > On Mon, 2014-07-07 at 11:46 -0400, Benjamin Kaduk wrote: >> On Sun, 6 Jul 2014, Sean Bruno wrote: >>=20 >>> = ----------------------------------------------------------------------- >>>=20 >>> Even attempting to do stuff for *clang* enabled architectures bails >>> because its not respecting prefixes: >>> MAKEOBJDIRPREFIX=3D/var/tmp make -s -j 8 xdev XDEV=3Darm = XDEV_ARCH=3Darmv6 >>> -- bails because it tries to: >>> =3D=3D=3D> usr.bin/clang/tblgen (all) >>> mtree populating //usr/armv6-freebsd >>> mtree: etc/ntp: Permission denied >>> _xi-cross-tools >>> =3D=3D=3D> xdev gnu/usr.bin/binutils (install) >>> =3D=3D=3D> gnu/usr.bin/binutils/libiberty (install) >>> =3D=3D=3D> gnu/usr.bin/binutils/libbfd (install) >>> =3D=3D=3D> gnu/usr.bin/binutils/libopcodes (install) >>> =3D=3D=3D> gnu/usr.bin/binutils/libbinutils (install) >>> =3D=3D=3D> gnu/usr.bin/binutils/addr2line (install) >>> =3D=3D=3D> gnu/usr.bin/binutils/as (install) >>> =3D=3D=3D> gnu/usr.bin/binutils/ld (install) >>> install: //usr/armv6-freebsd/usr/bin/ld: Permission denied >>> *** Error code 71 >>=20 >> This seems to be "obviously a bug" that should not be too hard to = make=20 >> progress on, especially if you already have make debug logs. >>=20 >> -Ben >=20 >=20 > Sure. I agree its a bug, if my usage of the XDEV target is supposed = to > be supported. I built the xdev target years ago. There was no notion of it supporting = root-less build, since FreeBSD src didn=92t support it at all. The folks = that added it to FreeBSD missed xdev. > I don't know who owns this target, what its supposed to be used for, = nor > what its requirements are. All I know is that people tell me its > supposed to meat my requirements from my original "Objective" = statement. Well, the folks that did clang didn=92t update this target. Nor did the = folks that did the cross build stuff. Nor the folks that did=85 Well, = you get the idea. It has been an unloved target for some time now, or at = least not a priority for people adding things to the system. I=92ve done = bits and pieces here and there over the years, but I=92m sure that it is = quite rough around the edges. I fear that your experience validates that = assessment. Having said that, though, the whole cross build ports thing is getting = renewed interest after a decade of dormancy (I did xdev maybe 10 years = ago to allow Timing Solutions to build some ports with the native arm = compiler). Lately bugs have been fixed. You are quite likely the first = person to try it without root ever. There will be bumps for that :). > Is this even the right make target to use? It is the only target we have that supports building outside the crazy = build environment we have. Just for grins, I did the following on a stock system (without your = change to src.opts.mk from Bapt) and not as root: % mkdir $HOME/D % make DESTDIR=3D$HOME/D XDEV=3Dmips XDEV_ARCH=3Dmips xdev = WITHOUT_CLANG=3Dt WITHOUT_CLANG_BOOTSTRAP=3Dt WITH_GCC=3Dt = WITH_GCC_BOOTSTRAP=3Dt %=20 and it hit the stdc++ bits not being defined. Please see above with the = "clang folks didn=92t properly integrate=94 Or possibly some other = reason. However, when I remove DESTDIR and build normally as root, it works. If = I add DESTDIR to the root build, it works=85 So there=92s definitely = something wrong with the non-root build. Warner --Apple-Mail=_4C09DEC7-5515-4388-A003-7A4BF02D5D41 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 iQIcBAEBCgAGBQJTuvT3AAoJEGwc0Sh9sBEAV8cQALV+oco/VF26i5daXLr+wWIY SAbg+eg7o185CjkYiYs439cB+gtEufwCaUlkm/DC9ZYGnd4lpXEaQQtYJtvRDxku wKUienXshtht7c3wLT0YS9ZEZU/qrmzB3v8Jvv6BUZKD3E/dCrM6NrJFwWHuHzXz m7ddIhtTi02GrKhTCu+gvR8sc5y4LrYtq2JjDYXU2TyZbZdNtrglpEfZiT9z0omU I+z4ggO+F4UsjFimQYRAxviT+9PGzPaLWYw8zPiMRMo/yMgJD6fRuvWQ+pRSrDuo xoM+vcLUEKUFZhIMXeT/vsisQFfx8Mn4M90t1K+kVyzFW3KjssAVjS7crWHAHPnp 5UV0HldbBRKz/fuFLZeoZ40R818sYWp9Y5pJPyXcoaCf/AUJbkFsNOX2GXrA5y2E wZVi/xmH1whwdxWpvvcw7ks13z7NNHL7vTY+4ahL+/5LIQG6Rwj/jWVkI6OTE6N0 seIKpZAcEhOuau702gnlJEqMzzGpanfo+jMNReV+km4FIIvxGWiWUOflsFTax5H9 TJWXcTxLq3LI+MEqQ+jfWcaUy/bAGoMMDm0WY+A6Oi7U035hzaJibJBhMxsqLgLV oPPq4sKp9aS6uEpQ5iaXnbFhlWBn6H1tKihoJ+vyDNYxlr8PUTtJ/UX+10LIBMwC u6CN2rH96TiYh1wAJbxV =r4Fp -----END PGP SIGNATURE----- --Apple-Mail=_4C09DEC7-5515-4388-A003-7A4BF02D5D41--