From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26106 invoked by alias); 20 Feb 2015 15:05:13 -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 26097 invoked by uid 89); 20 Feb 2015 15:05:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.3 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-ie0-f174.google.com Received: from mail-ie0-f174.google.com (HELO mail-ie0-f174.google.com) (209.85.223.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 20 Feb 2015 15:05:11 +0000 Received: by iebtr6 with SMTP id tr6so8337027ieb.7 for ; Fri, 20 Feb 2015 07:05:09 -0800 (PST) X-Received: by 10.107.164.221 with SMTP id d90mr14103163ioj.13.1424444709436; Fri, 20 Feb 2015 07:05:09 -0800 (PST) Received: from msticlxl57.ims.intel.com (fmdmzpr03-ext.fm.intel.com. [192.55.54.38]) by mx.google.com with ESMTPSA id w9sm1129285igl.0.2015.02.20.07.05.06 (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 Feb 2015 07:05:08 -0800 (PST) Date: Fri, 20 Feb 2015 15:35: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: <20150220150501.GB56550@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <873862drj2.fsf@schwinge.name> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2015-02/txt/msg01287.txt.bz2 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 ? Thanks, -- Ilya