From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32451 invoked by alias); 26 Feb 2015 19:20:33 -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 32403 invoked by uid 89); 26 Feb 2015 19:20:32 -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-f176.google.com Received: from mail-we0-f176.google.com (HELO mail-we0-f176.google.com) (74.125.82.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 26 Feb 2015 19:20:31 +0000 Received: by wesq59 with SMTP id q59so14017095wes.1 for ; Thu, 26 Feb 2015 11:20:28 -0800 (PST) X-Received: by 10.180.211.101 with SMTP id nb5mr18686788wic.37.1424978428569; Thu, 26 Feb 2015 11:20:28 -0800 (PST) Received: from msticlxl57.ims.intel.com ([192.55.55.41]) by mx.google.com with ESMTPSA id bo1sm2724501wjb.15.2015.02.26.11.20.24 (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Feb 2015 11:20:28 -0800 (PST) Date: Thu, 26 Feb 2015 19:35:00 -0000 From: Ilya Verbin To: Thomas Schwinge , Jakub Jelinek Cc: Bernd Schmidt , gcc-patches@gcc.gnu.org, Kirill Yukhin Subject: Re: Offloading compilers' support libraries Message-ID: <20150226192018.GB49293@msticlxl57.ims.intel.com> References: <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> <20150220194852.GD56550@msticlxl57.ims.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150220194852.GD56550@msticlxl57.ims.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2015-02/txt/msg01654.txt.bz2 On Fri, Feb 20, 2015 at 22:48:52 +0300, Ilya Verbin wrote: > 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? Probably one can build an offloading cross compiler as: configure --target=x86_64-intelmic-linux-gnu --enable-as-accelerator-for=x86_64-pc-linux-gnu --with-build-time-tools=/usr/bin/ ? But I'm getting errors for such configuration :( In file included from ../../../gcc/libgcc/gthr.h:148:0, from ../../../gcc/libgcc/libgcov-interface.c:27: ./gthr-default.h:35:21: fatal error: pthread.h: No such file or directory compilation terminated. make[2]: *** [_gcov_dump.o] Error 1 make[2]: Leaving directory `/build/x86_64-intelmic-linux-gnu/libgcc' make[1]: *** [all-target-libgcc] Error 2 make[1]: Leaving directory `/build' make: *** [all] Error 2 I really want to remove the intelmicemul target, since there is no difference in the compiler between real and emulated compilation for Intel MIC. The only difference is which libcoi_host.so is used by liboffloadmic_host.so at run-time. Thanks, -- Ilya