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/simple; d=gmx.net; s=badeba3b8450; t=1607628372; bh=CGNLeCV+0ElHADx2fGN2xPrALdqbCu9IBWFEIdIKj7g=; h=X-UI-Sender-Class:Date:From:To:Subject:References:In-Reply-To; b=VDkVFWEvhvLzPtmyslT641Uhoq6Jm4n5JIdYpJIQzDnM6vQzra2Xu5MNKLbDEnLe+ vJ7Eoc4hWsZ14qprlclwATdBl1nZzxqyJBm6DZxrYzE5tDWlhtx0fQ6UaPwxuNCHSD wgYR4k427Fn2fSx1tlxBePuzkrX/idIDJk27vLHo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Message-ID: <5FD27652.6000302@gmx.de> Date: Thu, 10 Dec 2020 20:26:10 +0100 From: "Juan Manuel Guerrero (juan DOT guerrero AT gmx DOT de) [via djgpp AT delorie DOT com]" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.13) Gecko/20101206 SUSE/3.1.7 Thunderbird/3.1.7 MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: Difficulties compiling libc from repository using gcc 10.N.0 References: <5FD1FEA1 DOT 7010304 AT gmx DOT de> <8816d501-9f33-4d68-4235-1935a83580f6 AT gmail DOT com> <111383e4-b3db-f346-b71c-749dee17dc9e AT gmail DOT com> In-Reply-To: Content-Type: multipart/mixed; boundary="------------080907010001090603080904" X-Provags-ID: V03:K1:bA2P/FJSTyr5kyGDS9TIYH2GgXqBt/2ntRTGNs/d0Yz4VUalgLx OGeZ5jKWUqvGA0/c8ARPYVYbDBUafGrhb/6X4N2odUvJaYExkbLbyciY8ht0hySGOjuNxhw t0K6hqXkWTp238mPz7aNBDv6aoA76CjO1P6KuGD7rl2n/EWJtsjRGsY6RugD0J0PzhiFA+9 RkcCjxgVjGEkOvnwKaDhw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:CG9Bsv6SjPA=:SEOlp/AJVsoqsKv5PnFJWd RSvRm4hT3P7oivlp1nSF+KpLD7O7ZBsQKH5ZaYDfqI8nFf41lJA+DF/ccbarYo1Yhg7MAeH3+ NDCVKHlBbbjOynTiL2Ha4CbJ0kza/xzHZPoY/wGfKtD+8MxqriNBU2RSakoWborpMBKAWQXO1 PZUfHWK8nE9TDhXKBQV8u0SFZcD8AqnDIaugXsHcO4NW++uQ/c0bmXyHBLbnROdWfpFpMYXZE w3Qrvz9Gad03FODE96BSrqh9CwSCrAfB9sAgJRICvWxMr9skVPeRg4VsBvVwNFScx6quA/4MM 0hGFIw1IvL56oI/fthabE7CtGSt02ONv3YAGbCv3til7RwEFNPQ2dzSaSBeaiEbCzAp3IciGE guT9D2d0s8TT2rc5+Qgz+KXbvNARm5gv3P2MRkMvnGJlnilklmrdMvje7qmi3sOJd+VNT/tN4 uoX75soZLm4M9OG2e1+gE+TXHwSEE4ZEW8NVK+bZ8AAMuq2G9Uf65C4BI4g0JBDpRKaLbSCki 5Mu8DVB/X2WOzwNPEZVnLVezicvsD6YDqJ+ztQbPa+eXkxpUA2HQNxDzUekFkUYqv7tV48mv0 q6XGn0BpYh9YjI1syntuQIsfgebRBkB4QwP7zCKG/e7iUPnrVsDX3JTa80iDzR7ZGvE1ROB58 1cxb8qtC9m93zdnoxDoPo3Vlx027h7jFb0U8KRWVjblyLBBj2cQkz0gXCucG0IPTlkeLiLrla zI02G7z/kpEuD7AauvNW8W5eIwjnMybLhmRnZ1Rthk6I4KlQVptbbRgS4wI6VE3EG+QL78Uba v/xQprkoE+Hsualu7EhqcsAicuCsO/w8WBUDGi+1ro9ZM+5S9ewHDiP09JkVb3hRAw9mxuKt4 6ZZlATNmvFhhtD7Nh5Tg== Reply-To: djgpp AT delorie DOT com This is a multi-part message in MIME format. --------------080907010001090603080904 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Am 10.12.2020 18:44, schrieb Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com]: > On 12/10/20, J.W. Jagersma (jwjagersma AT gmail DOT com) [via > djgpp AT delorie DOT com] wrote: >>> Which are the duplicated symbols causing trouble? >> >> Only __stdio_cleanup_hook in libc, which I marked extern, and almost all global >> symbols in fsdb. I figured it would be okay to compile just fsdb with -fcommon. > > The attached patch avoid duplicated symbols with gcc-10 > where -fno-common is on by default. > > The patch is from J. W. Jagersma, I only added comments. > OK to apply? > > -- > O.S. As has been told, a lot of these issues are triggered by different values of the -O flag. To get it compiled with -O2 the makefile of the djtar directory had to be adjusted accordingly. Of course, because we use -Werror the repository code does not compile out-of-the-box. So here a some work remains to be done for some one who has the time to fix all the issues. But with removed -Werror it compoiles so far. Regards, Juan M. Guerrero --------------080907010001090603080904 Content-Type: text/x-patch; name="djtar.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="djtar.patch" avoid duplicated symbols with gcc-10 where -fno-common is on by default patch from J. W. Jagersma. diff -aprNU3 djgpp.orig/src/utils/djtar/makefile djgpp/src/utils/djtar/mak= efile =2D-- djgpp.orig/src/utils/djtar/makefile 2098-07-04 10:19:56 +0000 +++ djgpp/src/utils/djtar/makefile 2020-12-10 19:34:14 +0000 @@ -1,3 +1,4 @@ +# Copyright (C) 2020 DJ Delorie, see COPYING.DJ for details # Copyright (C) 2015 DJ Delorie, see COPYING.DJ for details # Copyright (C) 2002 DJ Delorie, see COPYING.DJ for details # Copyright (C) 2000 DJ Delorie, see COPYING.DJ for details @@ -33,6 +34,9 @@ EXTRA_FILES +=3D $(BIN)/djtart.exe include $(TOP)/../makefile.inc XGCC =3D $(XLGCC) +# Avoid duplicated symbols with gcc-10 where -fno-common is on by default= . +CFLAGS +=3D -fcommon + all :: $(BIN)/djtar.exe $(BIN)/djtar.exe : $(C) $(EOBJS) $(L) --------------080907010001090603080904--