From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta001.cacentral1.a.cloudfilter.net (omta001.cacentral1.a.cloudfilter.net [3.97.99.32]) by sourceware.org (Postfix) with ESMTPS id 42ACF3858414 for ; Sat, 24 Jun 2023 05:02:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 42ACF3858414 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=Shaw.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=shaw.ca Received: from shw-obgw-4003a.ext.cloudfilter.net ([10.228.9.183]) by cmsmtp with ESMTP id CpFuqHkt4LAoICvPLqVak5; Sat, 24 Jun 2023 05:01:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=shaw.ca; s=s20180605; t=1687582919; bh=NgXXDTMbHHA1LPXtwPj9gdOUVLS0hFzEraC6ISOxn10=; h=Date:Reply-To:Subject:To:References:Cc:From:In-Reply-To; b=jW5vAnz4HW4mB7ViSbImx6NiO6hgGd3ruIVXKGd7XUSyr7i+OZN42k+30R0ZjlOh2 /jhAzAg/I7FAvV6JGi4ud9hN+xhX4bWXL/1/DkbaM6QkvV7U2OdbLF8Q/y8adpc/ws E+4Zuqrpt2Pdepn2I3p8yB/XVIW2lsqInW447vBfHc4QFBvPl5n1fJ3567LbpRRmbh w2/+hrLEAHnS+fV4BJLPe6zNTH9/5zpvjmp5uRdjh2ezSyA/bn+9/4gCmeo3T8yWJf bttQw6hN12S9xxoUpZCzPf/rMyZq9jpB+kC+RVjKc1abyknIUlYgjoxkgX4vinnWgq TSsLc9lytRj6A== Received: from [10.0.0.5] ([184.64.102.149]) by cmsmtp with ESMTP id CvPKqNkZbcyvuCvPLqgD32; Sat, 24 Jun 2023 05:01:59 +0000 X-Authority-Analysis: v=2.4 cv=VbHkgXl9 c=1 sm=1 tr=0 ts=649678c7 a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17 a=IkcTkHD0fZMA:10 a=773hz53WJlgqFPv9wYMA:9 a=QEXdDO2ut3YA:10 Message-ID: <7d7765bf-785b-e384-1249-f71b3afcd13a@Shaw.ca> Date: Fri, 23 Jun 2023 23:01:58 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Reply-To: newlib@sourceware.org Subject: Re: Newlib build fails Content-Language: en-CA To: newlib@sourceware.org References: <054401d9a62e$7f6da9a0$7e48fce0$@tranaptic.ca> Cc: Keith Clifford From: Brian Inglis Organization: Inglis In-Reply-To: <054401d9a62e$7f6da9a0$7e48fce0$@tranaptic.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfIgBpDOUZwuxfy5tGfvRvolMe7usztoyzav2nwoMt+ZpbslABowJF85Pfqa3c+Ce7l7NoD/ERCjvx5D6r/uK46KaYE/nVqzoHcjdQPbT+gf05FdVzTJ2 YM2KC9kANQOfA0SD+vqPULEHNdIHIYFLXoTTjbdqJdJjm6ci6xoQZPq2pcZ1tfqFIL1JbiEY9j68LhyVi5mDlFo3kqKDOWZDO8WG2rQmjIdElh7m/XTOJUuR X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2023-06-23 17:57, Keith Clifford wrote: > I am building newlib for a MinGW cross compiler tool chain for ARM, M68K, > and PowerPC. The build fails in all cases and I've included a patch that > allows me to get the build to work. > The pertinent details are: > Newlib version: 4.3.0 > Build system: CYGWIN_NT-10.0-19045 Keith-PC 3.4.6-1.x86_64 2023-02-14 13:23 > UTC x86_64 Cygwin > Host: MinGW > Target: arm-eabi, m68k-elf, and powerpc-eabi (see ${TARGET} below) > Configure parameters: --target=${TARGET} --prefix=${PREFIX} > The -print-multi-lib option for the respective built gcc generates output > for which the end of line is "\r\n" and config-ml.in leaves the '\r' in the > "flags" variable, in the following patch, confusing subsequent processing. Mingw is a native Windows hosted compiler using CR-LF EoLs, as is the Git for Windows you are using, and the patch you generated appears to be double spaced with a bunch of blank lines. If you built Cygwin-hosted cross-compilers and target binutils, and used Cygwin git, you would not have to deal with any CR-LF EoLs. -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry