This message generated a parse failure. Raw output follows here. Please use 'back' to navigate. From devnull@lkml.org Wed Jun 5 10:59:23 2024 >From spaans Mon Feb 22 09:54:29 2016 Envelope-to: lkml@grols.ch Delivery-date: Mon, 22 Feb 2016 09:44:35 +0100 Received: from srv.grols.ch [2a00:d10:4002:1::101] by squeeze.vs19.net with IMAP (fetchmail-6.3.21) for (single-drop); Mon, 22 Feb 2016 09:54:29 +0100 (CET) Received: from vger.kernel.org ([209.132.180.67]) by home.grols.ch with esmtp (Exim 4.84) (envelope-from ) id 1aXm6b-0006QQ-UN for lkml@grols.ch; Mon, 22 Feb 2016 09:44:35 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753472AbcBVIob (ORCPT ); Mon, 22 Feb 2016 03:44:31 -0500 Received: from mail-vk0-f47.google.com ([209.85.213.47]:34513 "EHLO mail-vk0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752484AbcBVIoa convert rfc822-to-8bit (ORCPT ); Mon, 22 Feb 2016 03:44:30 Received: by mail-vk0-f47.google.com with SMTP id e185so123099713vkb.1 for ; Mon, 22 Feb 2016 00:44:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landley-net.20150623.gappssmtp.com; s=20150623; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=3VvG3RbjMmyyCeOpGIwl4RXjZqtbkirCBnhWSX7IU0g=; X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=3VvG3RbjMmyyCeOpGIwl4RXjZqtbkirCBnhWSX7IU0g=; X-Gm-Message-State: AG10YOSMRUJSe+1Dhb+x1WMWln82KNDMTwAmk2zEPGWVltz52HAAT9Pt/Yl3fcrt+0yHThtYkd+gshp5R/nA3g== Mime-Version: 1.0 X-Received: by 10.31.183.209 with SMTP id h200mr22196058vkf.141.1456130669862; Mon, 22 Feb 2016 00:44:29 -0800 (PST) Received: by 10.159.33.139 with HTTP; Mon, 22 Feb 2016 00:44:29 -0800 (PST) X-Originating-IP: [72.182.52.210] Date: Mon, 22 Feb 2016 02:44:29 -0600 Message-Id: Subject: scripts/ld-version.sh doesn't work, breaking mips build with older toolchain. From: Rob Landley To: Andi Kleen , Kernel Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-Id: X-Mailing-List: linux-kernel@vger.kernel.org Received-SPF: none client-ip=209.132.180.67; envelope-from=linux-kernel-owner@vger.kernel.org; helo=vger.kernel.org X-Spam-Score: -6.9 X-Spam-Score-Bar: ------ X-Spam-Report: Content analysis details: (-6.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high The 4.4 kernel no longer builds for me on mips, ala: /tmp/ccXLGh3W.s: Assembler messages: /tmp/ccXLGh3W.s:44: Error: can't resolve `_start' {*UND* section} - `L0' {.text section} /tmp/ccXLGh3W.s:1217: Error: can't resolve `_start' {*UND* section} - `L0' {.text section} make[2]: *** [arch/mips/vdso/gettimeofday.o] Error 1 make[1]: *** [arch/mips/vdso] Error 2 And the reason is: $ ld --version scripts/ld-version.sh GNU ld (GNU Binutils for Ubuntu) 2.22 ... $ ld --version | scripts/ld-version.sh 22200000 $ mips-ld --version GNU ld (GNU Binutils) 2.17.50.20070703 ... $ mips-ld --version | scripts/ld-version.sh 2029270300 Well, the _other_ reason is that busybox awk complains the regex doesn't compile due to an unmatched ")" but that's easy enough to fix: diff --git a/scripts/ld-version.sh b/scripts/ld-version.sh index 198580d..9ae1666 100755 --- a/scripts/ld-version.sh +++ b/scripts/ld-version.sh @@ -1,7 +1,7 @@ #!/usr/bin/awk -f # extract linker version number from stdin and turn into single number { - gsub(".*)", ""); + gsub(".*[)]", ""); split($1,a, "."); print a[1]*10000000 + a[2]*100000 + a[3]*10000 + a[4]*100 + a[5]; exit And possibly the busybox guys are at fault for using ERE when they should be using BRE, but once that's fixed the "longer number vs larger number" issue crops up. Rob