From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1554 invoked by alias); 20 Feb 2015 19:49:06 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 1540 invoked by uid 89); 20 Feb 2015 19:49:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-we0-f178.google.com Received: from mail-we0-f178.google.com (HELO mail-we0-f178.google.com) (74.125.82.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 20 Feb 2015 19:49:04 +0000 Received: by wesw55 with SMTP id w55so7490730wes.5 for ; Fri, 20 Feb 2015 11:49:01 -0800 (PST) X-Received: by 10.194.62.52 with SMTP id v20mr22091042wjr.137.1424461741083; Fri, 20 Feb 2015 11:49:01 -0800 (PST) Received: from msticlxl57.ims.intel.com (fmdmzpr03-ext.fm.intel.com. [192.55.54.38]) by mx.google.com with ESMTPSA id hs7sm3782419wib.4.2015.02.20.11.48.57 (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 Feb 2015 11:49:00 -0800 (PST) Date: Fri, 20 Feb 2015 19:59:00 -0000 From: Ilya Verbin To: Thomas Schwinge Cc: Bernd Schmidt , Jakub Jelinek , gcc-patches@gcc.gnu.org, Kirill Yukhin Subject: Re: Offloading compilers' support libraries Message-ID: <20150220194852.GD56550@msticlxl57.ims.intel.com> References: <20150216210812.GO1746@tucnak.redhat.com> <20150217133206.GA62715@msticlxl57.ims.intel.com> <20150217153918.GX1746@tucnak.redhat.com> <20150217164033.GY1746@tucnak.redhat.com> <54E5ACCE.7080502@codesourcery.com> <8761aydt4y.fsf@schwinge.name> <54E5D234.9050209@codesourcery.com> <873862drj2.fsf@schwinge.name> <20150220150501.GB56550@msticlxl57.ims.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150220150501.GB56550@msticlxl57.ims.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2015-02/txt/msg01312.txt.bz2 On Fri, Feb 20, 2015 at 18:05:01 +0300, Ilya Verbin wrote: > On Thu, Feb 19, 2015 at 13:17:37 +0100, Thomas Schwinge wrote: > > My asumption is that it is always safe to install non-native (that is > > cross) GCC installations into the same prefix. (Which would resolve this > > problem of clashing file names for target and offloading compilers for > > good.) > > > > So, the next question is, instead of this special handling, why can't we > > require the offloading compilers to always be configured as cross > > compilers? Or, why is it a requirement that the intelmic offloading > > compiler is configured as a native compiler? > > If I understand correctly, to build a cross compiler, we need to specify a path > to the target sysroot, even for x86_64-pc-linux-gnu to x86_64-intelmic-linux-gnu > cross. Or is it possible to build a cross compiler without --with-sysroot ? To be precise, for the cross compiler we need to specify a path to --with-build-time-tools (rather than --with-sysroot). The problem is that for Intel MIC there are no special as/ld/etc. So, is there an elegant way to build a cross compiler with host's build time tools? Thanks, -- Ilya