From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by sourceware.org (Postfix) with ESMTPS id 4157A398B860 for ; Fri, 28 May 2021 21:50:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4157A398B860 Received: by mail-wm1-x32d.google.com with SMTP id f75-20020a1c1f4e0000b0290171001e7329so3128319wmf.1 for ; Fri, 28 May 2021 14:50:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=uoMQjms6JvM3g3lOkE/VwD1fvlUFz6t3LLsvBzWokKI=; b=Tuvcrusx9rd3+gcrP3Wfak7xe/yYtjS/Aczbrywirmpm20/BizPRXPNHpagV09DgDE 0fvavRKMhTovT+TNeu0odOjx+tRZ6V8NqIf61atPZ9D8+JQub1NQCyNdRpHdWFZXLGfx qcSgn8ZxW+ekksoLMJyBw/05kh4Glrh61c1rVsF9d7YKEQrZbcDxlCH4r1NjwCTfSv2u xiRUJQZw83PKzMlPIjsPPXOaQZYBEaXi8GAsnXthxCbCeZcMx/7PSVU+gbDGH6JxgAv6 iMo8fIihBr2I7geD5FhPLGOkhPwBIPMoq8He7c0XXyy8yeKFlsTO5OWFARzvtoAAjNQO tbxg== X-Gm-Message-State: AOAM532x5/X+ozegSpTRffXm4xTqeuRy+3t1njaEAptfO7VK3Iv0DFi8 ksTZj0bniiIrwEhDU1aFrDM= X-Google-Smtp-Source: ABdhPJzDRNFboRJ3u6LZAUiyk0xCuGiFXkwM3bxVEyt8iRN/evnAZOupTue/S3kXb+0KgG/LYNqMEg== X-Received: by 2002:a7b:cd98:: with SMTP id y24mr15456887wmj.4.1622238647235; Fri, 28 May 2021 14:50:47 -0700 (PDT) Received: from ?IPv6:2001:b07:5d33:3d2:e014:f75:c1e5:88cc? ([2001:b07:5d33:3d2:e014:f75:c1e5:88cc]) by smtp.gmail.com with ESMTPSA id f8sm7246200wmg.43.2021.05.28.14.50.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 May 2021 14:50:46 -0700 (PDT) Message-ID: <07cf0e43ccea853fa97429dfd5846a65235c2212.camel@gmail.com> Subject: Re: Compiling for old system From: zinosat@gmail.com To: David Brown , crossgcc@sourceware.org Date: Fri, 28 May 2021 23:50:46 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, 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 21:50:49 -0000 On Fri, 2021-05-28 at 18:56 +0200, David Brown wrote: > 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. > Windows, unfortunately, is not an option (I'd happily avoid tyo use it).  msys2 / mingw-64 could be an option: I've more experience with cygwin, so I've chosen this solution. Another reaso for choosing cygin is that I could use an older version which made it possible to build old 1.5.2 crosstool: I don't know if there's an equivalent "time macine" for msys2 / mingw-64. My hope, now, is that there's a known fix for the error I stumbled into thank you Davide