From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from spam02.hesby.net (spam01.hesby.net [81.29.32.152]) by sourceware.org (Postfix) with ESMTP id 2A0793846402 for ; Fri, 28 May 2021 16:56:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2A0793846402 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=hesbynett.no Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=david.brown@hesbynett.no Received: from [192.168.0.63] (unknown [79.161.10.130]) by spam02.hesby.net (Halon) with ESMTPSA id b036382b-bfd5-11eb-9b5d-506b8dfa0e58; Fri, 28 May 2021 18:56:49 +0200 (CEST) Subject: Re: Compiling for old system To: Davide Viti , crossgcc@sourceware.org References: From: David Brown Message-ID: Date: Fri, 28 May 2021 18:56:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3032.5 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: crossgcc@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: crossgcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 May 2021 16:56:55 -0000 On 27/05/2021 23:03, Davide Viti via crossgcc wrote: > Hi, > I'm trying to create a toolchain targeting an old powerpc system running > kernel 2.6.18 and libc 2.5. The toolchain has to be used on a windows > machine. > > I've tried different combinations on Linux and ctng 1.5.2 fits all my needs. > I've then tried to build the same on Windows, using cygwin, but compilation > fails at "Installing shared core C compiler" [1] > The config is available at [2] > > The compilation process on cygwin is extremely slow: I've managed to enable > the experimental feature and restart the build from the last failure, but > it still i very slow, especially if compared with Linux builds: I've tried > to do a canadian cross, but it's too much for my newbie skills: if anyone > would be willing to give me some advices, It'd be great to do that! > > thank you in advance > > Davide > > [1] https://pastebin.com/BBrFVt4e > [2] https://pastebin.com/jJmMzm9m As an alternative to Cygwin, you could try msys2 / mingw-64. My experience is that this can often be a lot faster than Cygwin, and creates stand-alone programs that feel less "alien" in Windows. However, it has limitations if you need more accurate POSIX emulation, such as for fork() calls. It's worth trying. You could also install VirtualBox and run the Linux system within a virtual machine, on the Windows host, if you can't escape from using Windows on the actual PC.