From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2338 invoked by alias); 17 Feb 2015 16:40:45 -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 2315 invoked by uid 89); 17 Feb 2015 16:40:44 -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; Tue, 17 Feb 2015 16:40:42 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t1HGedvc018932 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 17 Feb 2015 11:40:39 -0500 Received: from tucnak.zalov.cz (ovpn-116-28.ams2.redhat.com [10.36.116.28]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t1HGebgS022299 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Tue, 17 Feb 2015 11:40:38 -0500 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.14.9/8.14.9) with ESMTP id t1HGeZRb011505; Tue, 17 Feb 2015 17:40:35 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.14.9/8.14.9/Submit) id t1HGeXxg011504; Tue, 17 Feb 2015 17:40:33 +0100 Date: Tue, 17 Feb 2015 16:40:00 -0000 From: Jakub Jelinek To: Joseph Myers Cc: Ilya Verbin , Bernd Schmidt , Thomas Schwinge , Richard Biener , Jan Hubicka , gcc-patches@gcc.gnu.org Subject: Re: nvptx offloading patches [3/n], RFD Message-ID: <20150217164033.GY1746@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2015-02/txt/msg01034.txt.bz2 On Tue, Feb 17, 2015 at 04:21:06PM +0000, Joseph Myers wrote: > On Tue, 17 Feb 2015, Jakub Jelinek wrote: > > > Third attempt failed with: > > ../../../libgcc/config/nvptx/realloc.c:24:20: fatal error: stdlib.h: No such file or directory > > compilation terminated. > > ../../../libgcc/static-object.mk:17: recipe for target 'realloc.o' failed > > make[2]: *** [realloc.o] Error 1 > > make[2]: *** Waiting for unfinished jobs.... > > make[2]: Leaving directory '/usr/src/gcc/objnvptx/nvptx-none/libgcc' > > I have nvptx-newlib symlinked into the gcc tree as newlib, so I expected it > > would be built in-tree, is that not the case (at least wiki/Offloading > > mentions that). Or is it just that libgcc can't really have dependencies on > > newlib headers as newlib is built after libgcc? > > I've committed this patch to fix this last issue (the header dependence, > that is; I don't know about the in-tree build). Thanks, sure, libgcc now builds fine, the in-tree build fails: configure:4261: checking for C compiler default output file name configure:4283: /usr/src/gcc/objnvptx/./gcc/xgcc -B/usr/src/gcc/objnvptx/./gcc/ -nostdinc -B/usr/src/gcc/objnvptx/nvptx-none/newlib/ -isystem /usr/src/gcc/objnvptx/nvptx-none/newlib/targ-include -isystem /usr/src/gcc/newlib/libc/include -B/usr/local/nvptx-none/bin/ -B/usr/local/nvptx-none/lib/ -isystem /usr/local/nvptx-none/include -isystem /usr/local/nvptx-none/sys-include -g -O2 conftest.c >&5 error opening libc.a collect2: error: ld returned 1 exit status very early during in-tree newlib configure. Jakub