From owner-freebsd-arch@FreeBSD.ORG Tue Jul 8 15:15:54 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 4751AADC for ; Tue, 8 Jul 2014 15:15:54 +0000 (UTC) Received: from mail-ie0-f177.google.com (mail-ie0-f177.google.com [209.85.223.177]) (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 082202E6C for ; Tue, 8 Jul 2014 15:15:53 +0000 (UTC) Received: by mail-ie0-f177.google.com with SMTP id tr6so424482ieb.8 for ; Tue, 08 Jul 2014 08:15:47 -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=dNM3AC5vFnM7gP2JDmdoC/cLpVaEtX+7uiw77gE1C9A=; b=JM08EtZUPjYHMawDKPzwa2TYOA8ZDbtbUalVP8q/ZHGVlcGV7NodT9UigCWlnsKgCg X2IRDqYSSE8qBunVjJ7HSLCKs7i9nx5YimxdtkFsirseh8qEp9o1OWUSpELL1TJAssKz XJVyc/0bYU3s1LIBWUmSvpOY5WxY1oqzb05mAbR0knmDByCc5DV3u1Y3k4QceZRGKEVk T0g7CmSy2v5Uyg1TR+7q2Ah7rXyOWDWHt2PAQNGJKpHv7u/51Dyvb41JCi5tcd12+zVz tOGzo+HA5hpiWp5mGlE5c4dV3I+g8ux/cl35o/UY+fT7Mz+TA5Har6xG/tY9hZYiKhgF NJpA== X-Gm-Message-State: ALoCoQkQl7nELxYah9M9X/xdee5HwcVerOaMcFGM1pTh6ocGpM3hRIC2Hm2//RlwnSE9ka0oNnpK X-Received: by 10.50.142.97 with SMTP id rv1mr4694720igb.13.1404832547125; Tue, 08 Jul 2014 08:15:47 -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 b10sm6204756igf.20.2014.07.08.08.15.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Jul 2014 08:15:46 -0700 (PDT) Sender: Warner Losh Content-Type: multipart/signed; boundary="Apple-Mail=_F30AA1CF-B2EC-44F3-B830-4B341A5FFC61"; 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: <1404831829.1662.7.camel@bruno> Date: Tue, 8 Jul 2014 09:15:41 -0600 Message-Id: <2D708C4F-31DB-4F9D-BC02-2050AD8765CD@bsdimp.com> References: <1404688077.1059.115.camel@bruno> <1404766292.65432.43.camel@revolution.hippie.lan> <20B72004-1499-4F99-A7C7-13173C50C7C6@bsdimp.com> <1404831829.1662.7.camel@bruno> To: sbruno@freebsd.org X-Mailer: Apple Mail (2.1878.6) Cc: Ian Lepore , 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:15:54 -0000 --Apple-Mail=_F30AA1CF-B2EC-44F3-B830-4B341A5FFC61 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Jul 8, 2014, at 9:03 AM, Sean Bruno wrote: >>>=20 >>>=20 >>> It looks to me like the permission part of the problem is being = caused >>> by a lack of DESTDIR=3D. Without that, it's trying to install to = /usr and >>> you don't have permission for that. Maybe the confusion is because = the >>> xdev target inherently builds-and-installs, unlike most other = targets >>> that separate those two actions. >>=20 >> OK. After some detective work, it looks like libstdc++ needs to be = done before libsupc++ is done. I=B4ve added this dependency in r268377 = and was able to do a full xdev build with a clean obj dir: >>=20 >> rm -rf $HOME/F $MAKEOBJDIRPREFIX/mips-freebsd >> mkdir $HOME/F >> make xdev DESTDIR=3D$HOME/F XDEV=3Dmips XDEV_ARCH=3Dmips = WITHOUT_CLANG=3Dt WITHOUT_CLANG_BOOTSTRAP=3Dt WITH_GCC=3Dt = WITH_GCC_BOOTSTRAP=3Dt WITH_GNUCXX=3Dt -j 20 >>=20 >> Sean, can you see if this works for you now? And sorry about the = cumbersome options. Those are in line to get fixed, but I wanna fix the = build-in-tree issues first (which, alas, are harder than you=B4d think). = I suspect that bapt=B4s src.opts.mk diffs are likely good candidates to = be used committed too, but the above works w/o it. Also, I just built = the binaries, I didn=B4t see if they worked. >>=20 >> Warner >=20 > TL;DR --> Can we just *dump* XDDESTDIR and use DESTDIR? mtree seems to > still be busted. >=20 > Updated this morning and did an attempted non-root xdev build with and > without WITH_GCC_BOOTSTRAP. =20 >=20 > make xdev MAKEOBJDIRPREFIX=3D/var/tmp DESTDIR=3D/var/tmp/mips_cc = XDEV=3Dmips > XDEV_ARCH=3Dmips WITHOUT_CLANG=3Dt WITHOUT_CLANG_BOOTSTRAP=3Dt = WITH_GCC=3Dt > WITH_GCC_BOOTSTRAP=3Dt >=20 > ... > mtree populating /var/tmp/mips_cc//usr/mips-freebsd > mkdir -p /var/tmp/mips_cc//usr/mips-freebsd > mtree -deU -f /home/sbruno/fbsd_head/etc/mtree/BSD.root.dist > -p /var/tmp/mips_cc//usr/mips-freebsd >/dev/null > mtree -deU -f /home/sbruno/fbsd_head/etc/mtree/BSD.usr.dist > -p /var/tmp/mips_cc//usr/mips-freebsd/usr >/dev/null > mtree -deU -f /home/sbruno/fbsd_head/etc/mtree/BSD.include.dist > -p /var/tmp/mips_cc//usr/mips-freebsd/usr/include >/dev/null > _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) > sh /home/sbruno/fbsd_head/tools/install.sh -s -o root -g wheel -m 555 > addr2line /var/tmp/mips_cc//usr/mips-freebsd/usr/bin/addr2line > sh /home/sbruno/fbsd_head/tools/install.sh -T debug -o root -g wheel = -m > 444 > addr2line.debug = /var/tmp/mips_cc//usr/mips-freebsd/usr/lib/debug/usr/bin/addr2line.debug > install: = /var/tmp/mips_cc//usr/mips-freebsd/usr/lib/debug/usr/bin/addr2line.debug: = No such file or directory > *** Error code 71 .debug? We only generate those when MK_DEBUG_FILES=3Dyes. Try removing = WITH_DEBUG_FILES from your environment. It looks to be broken. > = --------------------------------------------------------------------------= --------------- >=20 > make xdev MAKEOBJDIRPREFIX=3D/var/tmp DESTDIR=3D/var/tmp/mips_cc = XDEV=3Dmips > XDEV_ARCH=3Dmips WITHOUT_CLANG=3Dt WITHOUT_CLANG_BOOTSTRAP=3Dt = WITH_GCC=3Dt > WITH_GCC_BOOTSTRAP=3Dt WITH_GNUCXX=3Dt >=20 > ... > mtree populating /var/tmp/mips_cc > mkdir -p /var/tmp/mips_cc > mtree -deU -f /home/sbruno/fbsd_head/etc/mtree/BSD.root.dist > -p /var/tmp/mips_cc >/dev/null > mtree -deU -f /home/sbruno/fbsd_head/etc/mtree/BSD.usr.dist > -p /var/tmp/mips_cc/usr >/dev/null > mtree -deU -f /home/sbruno/fbsd_head/etc/mtree/BSD.include.dist > -p /var/tmp/mips_cc/usr/include >/dev/null > _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) > sh /home/sbruno/fbsd_head/tools/install.sh -s -o root -g wheel -m 555 > addr2line /var/tmp/mips_cc/usr/bin/addr2line > sh /home/sbruno/fbsd_head/tools/install.sh -T debug -o root -g wheel = -m > 444 > addr2line.debug /var/tmp/mips_cc/usr/lib/debug/usr/bin/addr2line.debug > install: /var/tmp/mips_cc/usr/lib/debug/usr/bin/addr2line.debug: No = such > file or directory > *** Error code 71 > = --------------------------------------------------------------------------= --------------- >=20 > Doesn't look like the install target for addr2line is creating its > directory tree? >=20 > ~/fbsd_head % ls /var/tmp/mips_cc/usr/lib/ > aout compat dtrace engines i18n private but what=92s in /var/tmp/mips_cc//usr/bin? Warner --Apple-Mail=_F30AA1CF-B2EC-44F3-B830-4B341A5FFC61 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 iQIcBAEBCgAGBQJTvAsdAAoJEGwc0Sh9sBEAwFkQAOy4neq+1nByu0cgTR8JLpjV oqc1vMi5SfyPv10tGO5MaiznL6yp5fnyJ59gznwa+2Ryo5DnxtllPEmXu9UdI34j rfGB/AwarXxq5KM1fCOpTJvrG9YeT1b7EVBdOBOcc+K3dDDtg8rmOzT4JnZemfNl UUWwbMisEW1+EJVkgcaPDI3CpxXqq+dTxH8WaeV4C34q/Fy3g082RBSeG18Qxivb u/AvV5NUrdhqQojSBuoWL6gJ022D7I/2xs/nSWcPM4+TARa39uQijTu58fL9ukpK bTNuh4NrERH2wLJcmbPmuRJ+VvhWXg4t3yIiMPfFCpogRCuNhdGuYcQ39E2WDC65 dhxf6a+KkqsAF5WWz4jty+Vb6Wlg7aQCvVlq4e4Rjel/1/D6nFRzwAaTxXyUAOcj ZhihbihjH74rW2/xhbKDnq1K/Xg17wWjLJlZaflcZfQvo9Z+uY8IkegdCorAwJj8 JAKb7FPSUDM1WCtApc54xHJ/t5PkjrrjUcSTel5uUUkhUQA3poG0iZ48PlLPtV5a g8SvDDEGrUUGz1H28pT3+fCSALKvN/e2AVSWuKpMHc++6AiGvmxw+dTYfXzaPryZ IWhEvGX8XZzWXiNwLbueGnvlnXvu8uWs51m3Oieug4uccuF6aN6Rkx82+SgY64or sR2vBvoXbB3FFoJ+7DyV =XI/d -----END PGP SIGNATURE----- --Apple-Mail=_F30AA1CF-B2EC-44F3-B830-4B341A5FFC61--