X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=0dPemJPbC7DystauuiBdASuvjodqBoxIHE95K6Zsiz4=; b=JzbeST26gUUEHf3ceUOvVMA/4+y1cYWiTM+6RAY0zlGHrtQFz+jFAlOj7yfvuiSQqW G66L1ma2UxlQrNsvB8WuyMzrmbf0pBzrfMsyz3xdrCBql4Y15tk4F+obu3KnQWhCppoS FDL0RQ2GDR1E90I47+5dE81aMPzEfRiNkQDxeayCzgFg5rTrA8MjYlIKsnSvlsEHIn1j iZCKtAMCmEI2MJiadJ4BHpEXyVtN9LWMPGPR9deMx2KU8FLMYQ51c4F4CfmFY9XIOVTl M67/D7FXYnXExQ1q0AhRjcH7IUJnVopEywzKXRMHjL/SJlclgkcjJFba5yUN6ttP3FBq SU4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=0dPemJPbC7DystauuiBdASuvjodqBoxIHE95K6Zsiz4=; b=Ey5517ZfDieJ6xuUtmFlmXQSb63W1h7zzqNBDoKzLd1ftwx2HwFrp+S3LDXJS2WNRi KtG7GjJgnolI4cp5gVqwAkSslTm7mf3qPzFXXtl26QRQe9rw51zXvIjyiOAOJcrX9iTt rF8XpYt2GPiK+SwAxOD7MB/DNBhMQJ1ynYT1dawI2VjNd/0txqnkuXmVj9ox1J8NagaS QlBIJxuz0ZfP0c/90Bj66mf+pshp3ze07+IYQ7bfylfqyHRCjS7EuYRINWNSzvZTnIGb jQeLSnqpTFZC7pjP6LIZJ34XerQVwUMd0RFFWEHpZPXV1rz6Apve5AenpJFFgggJIYvM qVcg== X-Gm-Message-State: AOAM533Psnc53+LW7MB2hnG4zR5nVwdUo62c7QZshn5TnhtEA3peMGGx Skhb9rbFnc2Vhu966F0Z/NeBS4VfyHb4jOixyAX1QlYp X-Google-Smtp-Source: ABdhPJy8bifSCLDPhAkn5SNECGn6ofLxRxp1v2Tdq05NtIno3qXwAfjdiitiChw7PYVsCXe9/AEeW0J9HVpMvC5zH80= X-Received: by 2002:a54:400f:: with SMTP id x15mr77419oie.38.1610555506833; Wed, 13 Jan 2021 08:31:46 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <5FD1FEA1.7010304@gmx.de> References: <5FD1FEA1 DOT 7010304 AT gmx DOT de> From: "Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com]" Date: Wed, 13 Jan 2021 19:31:46 +0300 Message-ID: Subject: Re: Difficulties compiling libc from repository using gcc 10.N.0 To: djgpp AT delorie DOT com Content-Type: text/plain; charset="UTF-8" Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk The v1.2 commit to machine/endian.h defined some macros which may be problematic, e.g. __BIG_ENDIAN__: notice the leading _and_ trailing double-underscores. http://www.delorie.com/bin/cvsweb.cgi/djgpp/include/machine/endian.h Gcc from big-endian targeting toolchains have a tendency for defining __BIG_ENDIAN__, e.g.: $ /opt/cross_osx-ppc/bin/powerpc-apple-darwin9-gcc -E -dD -xc /dev/null | \ grep ENDIAN #define __BIG_ENDIAN__ 1 #define _BIG_ENDIAN 1 $ /gg/bin/ppc-morphos-gcc -E -dD -xc /dev/null | grep ENDIAN #define __BIG_ENDIAN__ 1 #define _BIG_ENDIAN 1 $ /opt/cross_amigaos4/bin/ppc-amigaos-gcc -E -dD -xc /dev/null | \ grep ENDIAN #define __BIG_ENDIAN__ 1 #define _BIG_ENDIAN 1 I suggest removing the additional macros with both leading and trailing double-underscores, i.e. like the following patch: Index: include/machine/endian.h =================================================================== RCS file: /cvs/djgpp/djgpp/include/machine/endian.h,v retrieving revision 1.2 diff -u -r1.2 endian.h --- include/machine/endian.h 6 Jan 2021 14:55:05 -0000 1.2 +++ include/machine/endian.h 13 Jan 2021 16:23:19 -0000 @@ -54,11 +54,6 @@ #define __PDP_ENDIAN PDP_ENDIAN #define __BYTE_ORDER LITTLE_ENDIAN -#define __LITTLE_ENDIAN__ LITTLE_ENDIAN -#define __BIG_ENDIAN__ BIG_ENDIAN -#define __PDP_ENDIAN__ PDP_ENDIAN -#define __BYTE_ORDER__ LITTLE_ENDIAN - #include -- O.S.