From owner-freebsd-arch@FreeBSD.ORG Tue Jul 8 15:03:53 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 A038DED1; Tue, 8 Jul 2014 15:03:53 +0000 (UTC) Received: from mail.ignoranthack.me (ignoranthack.me [199.102.79.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 682962D4C; Tue, 8 Jul 2014 15:03:52 +0000 (UTC) Received: from [192.168.200.204] (c-50-131-5-126.hsd1.ca.comcast.net [50.131.5.126]) (using SSLv3 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id C7416193DD9; Tue, 8 Jul 2014 15:03:50 +0000 (UTC) Subject: Re: Total confusion over toolchain/xdev behavior From: Sean Bruno Reply-To: sbruno@freebsd.org To: Warner Losh In-Reply-To: <20B72004-1499-4F99-A7C7-13173C50C7C6@bsdimp.com> References: <1404688077.1059.115.camel@bruno> <1404766292.65432.43.camel@revolution.hippie.lan> <20B72004-1499-4F99-A7C7-13173C50C7C6@bsdimp.com> Content-Type: text/plain; charset="iso-8859-13" Date: Tue, 08 Jul 2014 08:03:49 -0700 Message-ID: <1404831829.1662.7.camel@bruno> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 8bit 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:03:53 -0000 > > > > It looks to me like the permission part of the problem is being caused > > by a lack of DESTDIR=. 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. > > OK. After some detective work, it looks like libstdc++ needs to be done before libsupc++ is done. I˙ve added this dependency in r268377 and was able to do a full xdev build with a clean obj dir: > > rm -rf $HOME/F $MAKEOBJDIRPREFIX/mips-freebsd > mkdir $HOME/F > make xdev DESTDIR=$HOME/F XDEV=mips XDEV_ARCH=mips WITHOUT_CLANG=t WITHOUT_CLANG_BOOTSTRAP=t WITH_GCC=t WITH_GCC_BOOTSTRAP=t WITH_GNUCXX=t -j 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˙d think). I suspect that bapt˙s 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˙t see if they worked. > > Warner TL;DR --> Can we just *dump* XDDESTDIR and use DESTDIR? mtree seems to still be busted. Updated this morning and did an attempted non-root xdev build with and without WITH_GCC_BOOTSTRAP. make xdev MAKEOBJDIRPREFIX=/var/tmp DESTDIR=/var/tmp/mips_cc XDEV=mips XDEV_ARCH=mips WITHOUT_CLANG=t WITHOUT_CLANG_BOOTSTRAP=t WITH_GCC=t WITH_GCC_BOOTSTRAP=t ... 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 ===> xdev gnu/usr.bin/binutils (install) ===> gnu/usr.bin/binutils/libiberty (install) ===> gnu/usr.bin/binutils/libbfd (install) ===> gnu/usr.bin/binutils/libopcodes (install) ===> gnu/usr.bin/binutils/libbinutils (install) ===> 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 ----------------------------------------------------------------------------------------- make xdev MAKEOBJDIRPREFIX=/var/tmp DESTDIR=/var/tmp/mips_cc XDEV=mips XDEV_ARCH=mips WITHOUT_CLANG=t WITHOUT_CLANG_BOOTSTRAP=t WITH_GCC=t WITH_GCC_BOOTSTRAP=t WITH_GNUCXX=t ... 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 ===> xdev gnu/usr.bin/binutils (install) ===> gnu/usr.bin/binutils/libiberty (install) ===> gnu/usr.bin/binutils/libbfd (install) ===> gnu/usr.bin/binutils/libopcodes (install) ===> gnu/usr.bin/binutils/libbinutils (install) ===> 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 ----------------------------------------------------------------------------------------- Doesn't look like the install target for addr2line is creating its directory tree? ~/fbsd_head % ls /var/tmp/mips_cc/usr/lib/ aout compat dtrace engines i18n private