From owner-freebsd-arch@FreeBSD.ORG Tue Jul 8 02:59:29 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 530A4FED for ; Tue, 8 Jul 2014 02:59:29 +0000 (UTC) Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) (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 27C262FBC for ; Tue, 8 Jul 2014 02:59:28 +0000 (UTC) Received: by mail-pa0-f42.google.com with SMTP id lj1so6553231pab.29 for ; Mon, 07 Jul 2014 19:59:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to; bh=BBMcLrYemcAEO7nT6FknzMDKNht20xQSiMw0ad8P2OQ=; b=ICM4n9R+TY29dQj2h65uaF197zNwdixi5olbn0p+zc77B5pgKU4CFErTIdIFPvF9xl R9nZLpucE0+Jl4XHTY7xQA9S9T8OKc3UxXVbsWN9LM5XkMJHIGrOEWUoPhN/nXz4b+8J xgJYxnVJ1ycV1rIgyYSLL4RQTRq5TFBDU0uys84DE06YJproijTxCoAsom1hk701fv+J r01pt0lTn/7uH6Enw+WoISFaZw74vcJZ0lSakWK1X00kAFtNtCy7aL8b9gzWUHfGkZGw woK3+4M2QlOfLzNRCMEmftbhc/+sTfDms5Ha9sIaoO7H7H+y+kfVw0N0TFJ1YwbkrHPO R19Q== X-Gm-Message-State: ALoCoQmZ10PrmD+mISIWdz2GsxTYT8t9F9Cq62qqRvLFvepFtnZM9rvbJaBGuZxFGMblKRTr7Q9i X-Received: by 10.68.231.196 with SMTP id ti4mr32803894pbc.48.1404788361934; Mon, 07 Jul 2014 19:59:21 -0700 (PDT) Received: from [192.168.1.103] (c-24-6-220-224.hsd1.ca.comcast.net. [24.6.220.224]) by mx.google.com with ESMTPSA id vf9sm54033516pbc.94.2014.07.07.19.59.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Jul 2014 19:59:21 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: Total confusion over toolchain/xdev behavior From: Tim Kientzle In-Reply-To: <1404688077.1059.115.camel@bruno> Date: Mon, 7 Jul 2014 19:59:18 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <2788FB1E-9498-40C2-94DE-F4C73A5DDD30@kientzle.com> References: <1404688077.1059.115.camel@bruno> To: freebsd-arch@freebsd.org X-Mailer: Apple Mail (2.1878.2) 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 02:59:29 -0000 On Jul 6, 2014, at 4:07 PM, Sean Bruno wrote: > 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. I think you can avoid that if you specify both: WITHOUT_CLANG=3Dt WITHOUT_CLANG_BOOTSTRAP=3Dt > 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. 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: # Build and install a cross-GCC using the in-tree sources make XDEV=3Darm XDEV_ARCH=3Darmv6 xdev-gcc # Build and install a cross-clang using the in-tree sources make XDEV=3Darm XDEV_ARCH=3Darmv6 xdev-clang # Build and install cross-binutils using the in-tree sources make XDEV=3Darm XDEV_ARCH=3Darmv6 xdev-binutils # Build and install cross-libraries # Prerequisite: (xdev-gcc or xdev-clang) and xdev-binutils make XDEV=3Darm XDEV_ARCH=3Darmv6 xdev-libs # Have I missed anything? 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.) Tim