From patchwork Wed Nov 2 17:20:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Andrzej Siewior X-Patchwork-Id: 9409665 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C8D0660585 for ; Wed, 2 Nov 2016 17:21:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B79F62A48B for ; Wed, 2 Nov 2016 17:21:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB55F2A4A7; Wed, 2 Nov 2016 17:21:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6A4102A48B for ; Wed, 2 Nov 2016 17:21:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933208AbcKBRV0 (ORCPT ); Wed, 2 Nov 2016 13:21:26 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:60277 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933140AbcKBRVX (ORCPT ); Wed, 2 Nov 2016 13:21:23 -0400 Received: from localhost ([127.0.0.1] helo=bazinga.breakpoint.cc) by Galois.linutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1c1zC6-0001th-8g; Wed, 02 Nov 2016 18:19:22 +0100 From: Sebastian Andrzej Siewior To: linux-kernel@vger.kernel.org Cc: Sven Joachim , Tomas Janousek , Joe Perches , Adam Borowski , Michal Marek , linux-kbuild@vger.kernel.org, ben@decadent.org.uk, Sebastian Andrzej Siewior , Jonathan Corbet , linux-doc@vger.kernel.org, Andrew Morton Subject: [PATCH 1/2] Documentation/HOWTO: Use a more recent gcc + binutils Date: Wed, 2 Nov 2016 18:20:57 +0100 Message-Id: <20161102172058.13641-1-bigeasy@linutronix.de> X-Mailer: git-send-email 2.10.2 MIME-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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. 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. Cc: Jonathan Corbet Cc: linux-doc@vger.kernel.org Cc: Andrew Morton Signed-off-by: Sebastian Andrzej Siewior --- Documentation/Changes | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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