From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11793 invoked by alias); 18 Feb 2015 11:34:51 -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 11711 invoked by uid 89); 18 Feb 2015 11:34:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 18 Feb 2015 11:34:48 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t1IBYi6D023050 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 18 Feb 2015 06:34:44 -0500 Received: from tucnak.zalov.cz (ovpn-116-28.ams2.redhat.com [10.36.116.28]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t1IBYh4J025072 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Wed, 18 Feb 2015 06:34:44 -0500 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.14.9/8.14.9) with ESMTP id t1IBYeW5006208; Wed, 18 Feb 2015 12:34:40 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.14.9/8.14.9/Submit) id t1IBYcBX006207; Wed, 18 Feb 2015 12:34:38 +0100 Date: Wed, 18 Feb 2015 11:34:00 -0000 From: Jakub Jelinek To: Thomas Schwinge Cc: Ilya Verbin , Bernd Schmidt , Richard Biener , Jan Hubicka , gcc-patches@gcc.gnu.org, Joseph Myers Subject: Re: nvptx offloading patches [3/n], RFD Message-ID: <20150218113438.GI1746@tucnak.redhat.com> Reply-To: Jakub Jelinek References: <5454CAB9.3040907@codesourcery.com> <20150204113817.GO1746@tucnak.redhat.com> <20150216210812.GO1746@tucnak.redhat.com> <20150217133206.GA62715@msticlxl57.ims.intel.com> <20150217153918.GX1746@tucnak.redhat.com> <20150217164033.GY1746@tucnak.redhat.com> <87oaoreg7g.fsf@kepler.schwinge.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87oaoreg7g.fsf@kepler.schwinge.homeip.net> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2015-02/txt/msg01086.txt.bz2 On Wed, Feb 18, 2015 at 10:12:19AM +0100, Thomas Schwinge wrote: > Do you literally have »nvptx-newlib symlinked into the gcc tree as > newlib«? If yes, then that should explain the problem: as I wrote in > , > you need to »add a symbolic link to nvptx-newlib's newlib directory to > the directory containing the GCC sources«, so not link [GCC]/newlib -> > [newlib-nvptx], but [GCC]/newlib -> [newlib-nvptx]/newlib. Does that > resolve the issue? BTW, --with-cuda-driver-{include,lib} are apparently not documented in gcc/doc/ (--with-cuda-driver neither, but can't use that, as lib is /usr/local/cuda-6.5/lib64 in my case), and isn't documented on wiki/Offloading either. ../configure --target=nvptx-none --enable-as-accelerator-for=x86_64-pc-linux-gnu --with-build-time-tools=/usr/src/gcc/objnvptxinst/usr/local/nvptx-none/bin --disable-sjlj-exceptions --enable-newlib-io-long-long make; make DESTDIR=/usr/src/gcc/objnvptxinst install and ../configure --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu --enable-offload-targets=nvptx-none=/usr/src/gcc/objnvptxinst --disable-bootstrap --with-cuda-driver-include=/usr/local/cuda-6.5/include --with-cuda-driver-lib=/usr/local/cuda-6.5/lib64 make; make DESTDIR=/usr/src/gcc/objnvptxinst install compilers now build, but offloading fails: /usr/src/gcc/objnvptxinst/usr/local/bin/../libexec/gcc/x86_64-pc-linux-gnu/5.0.0//accel/nvptx-none/mkoffload @/tmp/cce9PdmR x86_64-pc-linux-gnu-accel-nvptx-none-gcc: error: language lto not recognized x86_64-pc-linux-gnu-accel-nvptx-none-gcc: error: language lto not recognized mkoffload: fatal error: /usr/src/gcc/objnvptxinst/usr/local/bin/x86_64-pc-linux-gnu-accel-nvptx-none-gcc returned 1 exit status compilation terminated. lto-wrapper: fatal error: /usr/src/gcc/objnvptxinst/usr/local/bin/../libexec/gcc/x86_64-pc-linux-gnu/5.0.0//accel/nvptx-none/mkoffload returned 1 exit status compilation terminated. /usr/bin/ld: lto-wrapper failed collect2: error: ld returned 1 exit status Is --enable-languages=c,c++,fortran,lto required when configuring the offload compiler? It isn't required for intelmic. Jakub