From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: Crosscompiling C++ for powerpc64le fails Date: Wed, 05 Jun 2019 15:04:47 +0200 Message-ID: <878sug41zk.fsf@gnu.org> References: <20190528203151.5b87be76@scratchpost.org> <20190529121016.1c593a7c@scratchpost.org> <87tvdal27b.fsf@gnu.org> <8736kq8qsc.fsf@devup.no> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:53781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYVb2-0008Ro-4I for guix-devel@gnu.org; Wed, 05 Jun 2019 09:04:56 -0400 In-Reply-To: <8736kq8qsc.fsf@devup.no> (Marius Bakke's message of "Mon, 03 Jun 2019 20:30:59 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Marius Bakke Cc: guix-devel@gnu.org Hi Marius, Marius Bakke skribis: > Ludovic Court=C3=A8s writes: [...] >> The issue that Tobias reports reminds me of the CPATH vs. C_INCLUDE_PATH >> issue that was causing troubles with newer GCCs, and that I think Marius >> addressed in =E2=80=98core-updates=E2=80=99 (?). Marius, does that ring= a bell? > > Unfortunately there are still issues with cross-compiling C++ on > 'core-updates'. For 'C', the workaround was to go back to "CROSS_CPATH" > instead of "CROSS_C_INCLUDE_PATH", like with native builds. That should also address C++, since CPATH (and CROSS_CPATH) are for all language front-ends, no just C, no? > For native builds on core-updates, GCC7 occasionally fails if the libc > or kernel headers are not on C_INCUDE_PATH (see e.g. f90d6c3). It could > be that cross builds need a similar workaround, but I have not found the > magic incantation yet. How can it be that kernel headers are not on C_INCLUDE_PATH (or CPATH)? On core-updates, I see that =E2=80=98gcc-6=E2=80=99 changes =E2=80=98native= -search-paths=E2=80=99 from C_INCLUDE_PATH & co. to CPATH, and likewise, =E2=80=98cross-gcc=E2=80=99 se= ts =E2=80=98search-paths=E2=80=99 to CROSS_CPATH. That looks consistent to me. Ludo=E2=80=99.