From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Platen Subject: Re: Trying to crosscompile for POWER9 Date: Sat, 20 Oct 2018 17:05:35 +0200 Message-ID: <65643e6b-1d02-3680-0717-399432ef6775@platen-software.de> References: <31112b25-7f64-2d66-ef65-7e87fe173b5d@platen-software.de> <20181016182418.GA12881@macbook41> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDsoy-0001TT-58 for guix-devel@gnu.org; Sat, 20 Oct 2018 11:05:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDsot-0004PC-6l for guix-devel@gnu.org; Sat, 20 Oct 2018 11:05:44 -0400 Received: from v2201304502512175.yourvserver.net ([37.221.197.247]:38660 helo=v220100350252766.yourvserver.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDsos-0004NP-U2 for guix-devel@gnu.org; Sat, 20 Oct 2018 11:05:39 -0400 In-Reply-To: <20181016182418.GA12881@macbook41> Content-Language: de-LU 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: Efraim Flashner Cc: Guix-devel On 10/16/2018 08:24 PM, Efraim Flashner wrote: > On Tue, Oct 16, 2018 at 08:08:27PM +0200, Tobias Platen wrote: >> Hello, >> >> When I try to compile GUIX for POWER9 an old version of GCC is used. >> How do I use the gcc version used for cross compiling. >> >> ./pre-inst-env guix build --target=powerpc64le-linux hello >> >> checking if powerpc64le-linux-gcc supports >> binary128 floating point type... no >> checking if the target machine is at least POWER8... yes >> >> configure: error: *** >> binary128 floating point type (GCC >= 6.2) is required on powerpc64le. >> >> Tobias "Tomoko" Platen >> > > I'd recommend starting by editing gnu/packages/make-bootstrap.scm:103 > and change the line: > `(("cross-gcc" ,(cross-gcc target > to: > `(("cross-gcc" ,(cross-gcc target #:gcc-6 > > there are other places, like lines 110 and 391 (and possibly others) which > should be turned to (inherit gcc-6) > > That should work for this round, then you can decide if it's worth > upstreaming and wrap it in 'match' keywords for some of the newer > architectures (like riskv). > It still fails after changing to gcc 6