Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932667AbcKBSx6 (ORCPT ); Wed, 2 Nov 2016 14:53:58 -0400 Received: from mout.gmx.net ([212.227.17.20]:60678 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756591AbcKBSxz (ORCPT ); Wed, 2 Nov 2016 14:53:55 -0400 From: Sven Joachim To: Sebastian Andrzej Siewior Cc: linux-kernel@vger.kernel.org, Tomas Janousek , Joe Perches , Adam Borowski , Michal Marek , linux-kbuild@vger.kernel.org, ben@decadent.org.uk, Jonathan Corbet , linux-doc@vger.kernel.org, Andrew Morton Subject: Re: [PATCH 1/2] Documentation/HOWTO: Use a more recent gcc + binutils References: <20161102172058.13641-1-bigeasy@linutronix.de> Date: Wed, 02 Nov 2016 19:52:57 +0100 In-Reply-To: <20161102172058.13641-1-bigeasy@linutronix.de> (Sebastian Andrzej Siewior's message of "Wed, 2 Nov 2016 18:20:57 +0100") Message-ID: <87vaw5k92u.fsf@turtle.gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:FRLGP3i5KsWb4jAAWwXQ2jyj30cMBMwk2Tm/vjluxM/k9sKi8s/ T4lT9Ku7H+xzIbms/20yXDmh61GJ93fDf8cBulJ2p7LJmynjemzO6bEi9iZBvJMI0RgMraM HUbZc4znyvjbZ9+tWD96q2RVeJGO2xGKWhsKXSLv5ZhHY88lejPD5o2TJkLl7bhUN0UDBUA b2+KOel/K7U6MwUlmB/xA== X-UI-Out-Filterresults: notjunk:1;V01:K0:SiQsz8EBUsw=:ZurEZC7MAPpFOUb4atzUGp ztJ8hMdAjW6ZCuP84ZCNwnUicrZsVSNOBC/piWqoPxVDxKqb2FDmaAAWSFecmHq1pcD+7DLHu AxlQQ8P5ikJBDeiZtQWW7mcgR9ls0Q8yL8ijJ9v2JIHvHjh6F6rb3PZ8KzSJvlECGnokXMUi7 uma4AJAKSTCrHig3KQzIG5NkkGLFQGvvqnzPlE1V5sRZN1KYlg0NpkgIob6TBRuZY5BEzRlac 2/m8RtHSotQu8jChjjdqBJv0m/w9cMNsrVcOTh9ORmPf8bEn9fq+ctofQThwUd0l7rKN/32tx nElhI6V9AcIMAIZ9Qc2pvrjAAuZyL0AyrjVPK92ZuIm/cf4FJRKQIW/FAHU1jiH5G4DfrbTTH VVex4VtDjUh5izssvmaDI3aMpFVxFMT51rsZco8ZJxC+yDCiHf9u2QxswFWJdMpvSjkCp2E3w Wz/b1JPohVVlTvh/UB7Ka9ZoJpwdVbhV3P696OdazZICAUxCTADUjgObwwTbptflfe4dHBQVJ 4H+Jj3ND2blxh09wYvo0k+vX1HTVWcidt5k5yss3qZ7jT0Sah8gVVYP8vFspbcfyPuBP+gxCY NBvb4BzNnyldPKvBsTPkJhaNuEsCdHQVjCMhPQCv1cqRfgblcVu/09ECNPjQEeRRCuqvB5i71 +a3o93wA8AfICWpvJzANCfI+cecNr5NqHrUFa9vfvPHtz8FIHbIZKPUbTUnEU39VabEnhZ/eu eXIuy0whNm4ZbfUftsUYUp+FHEn6pA4qEPuopc9Fi5MmhaNwNxBhcuJ9zrYi/mqbGJ4MYoIU+ /TKgPO/ Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2798 Lines: 61 On 2016-11-02 18:20 +0100, Sebastian Andrzej Siewior wrote: > Debian Woody is pre-gcc3.2 and Sarge ships 3.3 gcc. I tried to compile > v4.8.6 on Sarge failed due to binutils: > |arch/x86/entry/entry_32.S: Assembler messages: > |arch/x86/entry/entry_32.S:379: Error: invalid character '"' in operand 1 > |arch/x86/entry/entry_32.S:454: Error: too many positional arguments > |arch/x86/entry/entry_32.S:580: Error: too many positional arguments > |arch/x86/boot/bioscall.S:68: Error: `68(%esp)' is not a valid 16 bit base/index expression > > among other errors. Sarge comes with GNU ld version 2.15 with is not > recent enough. I don't see those errors on Etch which ships version 2.17 > and therefore I raise the limit to 2.17. I can confirm that binutils 2.16 is not recent enough either, while 2.17 works. > gcc is a different story. 3.3 It throws a lot of warnings > |include/linux/irq.h:402: warning: parameter has incomplete type > |include/linux/irq.h:403: warning: parameter has incomplete type > |drivers/gpu/drm/i915/i915_gem_gtt.h:312: warning: parameter has incomplete type > > during the compile and fails then with > | cc1: error: unrecognized option `-Wno-override-init' > > or later with > > |lib/lzo/lzo1x_compress.c: In function `lzo1x_1_do_compress': > |lib/lzo/lzo1x_compress.c:132: error: implicit declaration of function `__builtin_ctz' > > Etch (with gcc v4.1.2) gets to compile the kernel without plenty of > warnings and it also chokes on Wno-override-init but that one could be > easily fixed if we want to keep v4.1 as the minimum. > So I think raising the bar to gcc v4.1 isn't that bad given that the > last release of gcc 4.1 was on February 13, 2007. For the record, the -Wno-override-init problem has already been fixed in 4.9-rc3 by commit a2209b742e6 ("x86/build: Fix build with older GCC versions"). Cheers, Sven > diff --git a/Documentation/Changes b/Documentation/Changes > index 22797a15dc24..14e65b445707 100644 > --- a/Documentation/Changes > +++ b/Documentation/Changes > @@ -29,9 +29,9 @@ you probably needn't concern yourself with isdn4k-utils. > ====================== =============== ======================================== > Program Minimal version Command to check the version > ====================== =============== ======================================== > -GNU C 3.2 gcc --version > +GNU C 4.1 gcc --version > GNU make 3.80 make --version > -binutils 2.12 ld -v > +binutils 2.17 ld -v > util-linux 2.10o fdformat --version > module-init-tools 0.9.10 depmod -V > e2fsprogs 1.41.4 e2fsck -V > -- > 2.10.2