From owner-freebsd-toolchain@FreeBSD.ORG Mon May 18 22:34:06 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 828B0D72; Mon, 18 May 2015 22:34:06 +0000 (UTC) Received: from mail-qk0-x22e.google.com (mail-qk0-x22e.google.com [IPv6:2607:f8b0:400d:c09::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3C64B1F32; Mon, 18 May 2015 22:34:06 +0000 (UTC) Received: by qkgw4 with SMTP id w4so79028960qkg.3; Mon, 18 May 2015 15:34:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=RB4kw1FPLSWwPLcDcORmg1hU/JPWGp59lPukjfygyZw=; b=Uxvju7xR0/zh/MKCrR0UGXcjSg+gthF1jLzz62T5M0nkSsPvMswf8uxA1ErNgVj1Z8 K/0yuY5qi+Ps07Qlytdr3b2Obo/l+CQcwnxVM3PvBkWAxSiyGo6nxHJnsN6Fuw9u9LeM 0bZAdXyOYWnlQFOdctjkRd+HZvt9ooOnuse+b2b/Aaw4UMKt151VWgCKpsirOQ4X4TFX h5CFzKnNMVjf6LgvQO+CIq2R4gd62gaNlcwwtsHTaFopM31ft7z8+4l3XaBzNmM045vq o4RbPj2qsXJx3+xiJVwus4SPRFP34iyivxqm0vSX1ji95jI0ZzbI7uSu3twVt2zmryi2 nhyg== MIME-Version: 1.0 X-Received: by 10.229.122.138 with SMTP id l10mr33584855qcr.26.1431988445195; Mon, 18 May 2015 15:34:05 -0700 (PDT) Received: by 10.140.98.73 with HTTP; Mon, 18 May 2015 15:34:05 -0700 (PDT) In-Reply-To: References: <146A0A16-F33B-42AF-A8D5-B1D16775A409@bsdimp.com> Date: Mon, 18 May 2015 15:34:05 -0700 Message-ID: Subject: Re: External toolchain build failing due to missing --sysroot From: NGie Cooper To: Warner Losh Cc: Craig Rodrigues , George Neville-Neil , FreeBSD Toolchain , "freebsd-testing@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 May 2015 22:34:06 -0000 On Mon, May 18, 2015 at 1:27 PM, Warner Losh wrote: > >> On May 18, 2015, at 2:02 PM, Craig Rodrigues wrote= : >> >> On Mon, May 18, 2015 at 12:30 PM, Warner Losh wrote: >> >> > On Mar 20, 2015, at 2:10 PM, Craig Rodrigues wro= te: >> > >> > Warner, >> > >> > I can't get the external toolchain build of CURRENT to work, >> > because --sysroot seems to be missing in some places. >> >> I don=E2=80=99t believe that this has actually never worked, or if it di= d appear >> to work, it was only by accident. We have no ability to generate a >> proper sysroot in the tree today, though we do come close at points. >> Sean Bruno has been reporting issues with libgcc and external >> toolchains for months, and I=E2=80=99ve not had the time to track those >> issues to ground. >> >> It seems to work now. See: >> https://lists.freebsd.org/pipermail/freebsd-toolchain/2015-April/001660.= html > > It is quite fragile though. It looks like you are using it in one of the > configurations that work (hence my accidental comment). But working > in some configurations is better than it has been in the past... I'm dealing with this to some extent at $work. Hardcoding paths to libraries proved to be a painpoint, along with some of the linker script stuff that was introduced recently: $ ls -l /usr/lib/libnv.so lrwxr-xr-x 1 root wheel 15 Apr 9 12:45 /usr/lib/libnv.so -> /lib/libnv.= so.0 $ cat /usr/lib/libc.so /* $FreeBSD$ */ GROUP ( /lib/libc.so.7 /usr/lib/libc_nonshared.a /usr/lib/libssp_nonshared.= a ) These paths are extremely fixed because they're hardcoded... You can sort of kind of use --sysroot=3D, but there's a lot of gymnastics I'm having to go through reinventing the wheel from past experience with embedded Linux... Thanks, -NGie