From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31859 invoked by alias); 18 Feb 2015 09:12:31 -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 31840 invoked by uid 89); 18 Feb 2015 09:12:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 18 Feb 2015 09:12:30 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-01.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1YO0gE-0007G1-6D from Thomas_Schwinge@mentor.com ; Wed, 18 Feb 2015 01:12:26 -0800 Received: from feldtkeller.schwinge.homeip.net (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.3.224.2; Wed, 18 Feb 2015 09:12:24 +0000 From: Thomas Schwinge To: Jakub Jelinek CC: Ilya Verbin , Bernd Schmidt , Richard Biener , Jan Hubicka , , Joseph Myers Subject: Re: nvptx offloading patches [3/n], RFD In-Reply-To: <20150217164033.GY1746@tucnak.redhat.com> 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> User-Agent: Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/24.4.1 (i586-pc-linux-gnu) Date: Wed, 18 Feb 2015 09:12:00 -0000 Message-ID: <87oaoreg7g.fsf@kepler.schwinge.homeip.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-SW-Source: 2015-02/txt/msg01073.txt.bz2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 1480 Hi! On Tue, 17 Feb 2015 17:40:33 +0100, Jakub Jelinek wrote: > On Tue, Feb 17, 2015 at 04:21:06PM +0000, Joseph Myers wrote: > > On Tue, 17 Feb 2015, Jakub Jelinek wrote: > > > I have nvptx-newlib symlinked into the gcc tree as newlib, so I expec= ted it > > > would be built in-tree, is that not the case (at least wiki/Offloading > > > mentions that). > 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/s= rc/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/ -is= ystem /usr/local/nvptx-none/include -isystem /usr/local/nvptx-none/sys-incl= ude -g -O2 conftest.c >&5 > error opening libc.a > collect2: error: ld returned 1 exit status > very early during in-tree newlib configure. Do you literally have =C2=BBnvptx-newlib symlinked into the gcc tree as newlib=C2=AB? If yes, then that should explain the problem: as I wrote in , you need to =C2=BBadd a symbolic link to nvptx-newlib's newlib directory to the directory containing the GCC sources=C2=AB, so not link [GCC]/newlib -> [newlib-nvptx], but [GCC]/newlib -> [newlib-nvptx]/newlib. Does that resolve the issue? Gr=C3=BC=C3=9Fe, Thomas --=-=-= Content-Type: application/pgp-signature; name="signature.asc" Content-length: 472 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJU5FdzAAoJEK3/DN1sMFFtf0UIAJDCoGxjswWEcHO92tzH9fDJ Prmr9+4Y2NPFo1MgqsfitWunAydhg9ePhhNAcO8WFuirLYzGyyOJ3i7kBDgc9Dsv KE1pJLPbsUISswaQNVO4xvxhwnvxekPDz+OrejcQAwnywuptHSW33pZH8QiAfWBs LFnlmxmvM9zoWjwryX3OUc3+v05MoblupQqAWwrTmCpNbHPpaHv4Fi8nNXW5HoNX MFdkL697s15ho3jS5DoTjovbJfabo9R9efOVpPsdLNjwoKRMik+JA0spEVIxuWXq DS00DkXqzCIMHyL9vEGhY75RD+tiCYylq0OLfRMKrORZi20fd996JtihocNWGhs= =uPRC -----END PGP SIGNATURE----- --=-=-=--