Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp549059ybl; Fri, 6 Dec 2019 02:16:38 -0800 (PST) X-Google-Smtp-Source: APXvYqwDCHM852Yo+2Y/4itioHmJJVbdia7UH9bdMAcZIWY8EFxOxuFvAghjFakOf0iZDaQWXuIw X-Received: by 2002:a9d:6b06:: with SMTP id g6mr10303477otp.93.1575627398182; Fri, 06 Dec 2019 02:16:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575627398; cv=none; d=google.com; s=arc-20160816; b=UCEdUsc5w/rHXOk+CGafvxjIztElHXZW7GJxgr+hoXvp3dqgVVYqW3kpuLtqmERMiX Wvunsr+BnC70XqONZs/TJpR4GPhAwkzslt/1S1/R4uBqkqYP95qYaPN1cJQ+xxf9jEr6 kyv/3ZQdeVoSg1pEDAisoc/NCepFHDhQRnN1eP4N+DRlQhjCkyirYcnSKmYXo64M0Oz9 08+QxiDQad+sYM6HN5s6PmKiEepPyaYh5HaJiOyALvsFY3gFIOT1qCm1+frZ7VSQQ+eZ k/B2xqCTELkiP4AYuq7EmWmzNE7oEliX84g/BDzmhiOyJqilCPsfzwPxwn2rtZOjbzgw JrHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=VU3mVyUkXK8D+5hcPVZwalL5AuDR8H2cjqY0VrfsIGs=; b=aqkbb5aUucXdMbG6UbUqBeaEqT75RR/CRdrkeEmfD4MadQXisVeKcWOwJHzIKiLlhG WGubCuPTiWsrCtj2BsHmKbvkXPH/4ef5HlIWU4RTY+63/DdL3QyShQtDg1RG6yA/wGU6 4TY5kYqU04CUMKAu3uV9pH4d6BZh0rdCFVIiCxY3+cij+WVQ/M5AP6LDAKAYgM29++Td 5UBhaI649n+DDPQXYhS63IYlpuNe7n5aoRt6Wxyzc28tXLg1NOJeKwqKRDMTKoldZ2W0 ITtzI+oQfT2ho7wRLiYfXoqLSmaDmhW11HAZH+oOb5G6ZUgirkYatE5sxMQ3PhghCgpz X6xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=i300ShWI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w24si6624292oic.260.2019.12.06.02.16.26; Fri, 06 Dec 2019 02:16:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=i300ShWI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726325AbfLFKPt (ORCPT + 99 others); Fri, 6 Dec 2019 05:15:49 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:32899 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726070AbfLFKPs (ORCPT ); Fri, 6 Dec 2019 05:15:48 -0500 Received: by mail-qt1-f194.google.com with SMTP id d5so6689309qto.0 for ; Fri, 06 Dec 2019 02:15:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=VU3mVyUkXK8D+5hcPVZwalL5AuDR8H2cjqY0VrfsIGs=; b=i300ShWIGz7B69dphO/d6qYVCvhOcTJlYu0V2vvAYKjePCceV9peff0AoaANqUbv74 DqVEbA/siL/dTwELPyh7q5131eBoHuY7WVIJ32rXrEEa/hT3wYfv+zR5iMIXtfyZtWHF ARCNZwG2+md5GSmY4V1hoJMYv0UJYHgj8bPkh9kyHjKrJdKjtZWyfQL2HG9HaViWZD/G QT5vhIyhOBpy6btdS22c8PaSSbpDjfF2IbTFCRAou32sqphSmpIOGJ/VXNfHrCZybydL CXZHJj0PVs4s26ODNoqedb7VD/FH+6skhC66zbnxoHf2Y1cPyDIZ+4QQAt8ncABiRx6D 5Tog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=VU3mVyUkXK8D+5hcPVZwalL5AuDR8H2cjqY0VrfsIGs=; b=cPbTliHO42+49POgCYwUXgFA3HGrJ++I7U1SZVjRRAuJSHDvrXYyRupmT2/ZawhZ/n VmfRWiin49tCyABQX+nJizZd01ZXo1uj4I/7vqF/Ed7Ra3CqV5hV06CemXRBVV8u3TKu C0QSAGkg6aippcG+ovdpV1UG6+cy5czSN3xw9onvqxr+TM25RycQVewoDVrCsB34wuW7 cHrkINuxW5/tZETwC3pSwtusXKjNbvL5cw8mae69hJZ4EJUxheybsi2q8+hQZj9Fxa9o 4S1CKmWXBeUyWzN7dBGZ+3zEVOeBolzQZ+iICJ2sUx8PYvuHiteaVCp3YW1VsJsJnQDw 5B0Q== X-Gm-Message-State: APjAAAX5xF/U4PhaGEt1Q2vnTZ+9mdFHAbALfkDblLs8801T1z+c0wza PFZ8wK2A6GKfcVY3MV42wbm4n7Skq4s3C+7a0aE= X-Received: by 2002:ac8:5548:: with SMTP id o8mr12269193qtr.338.1575627346187; Fri, 06 Dec 2019 02:15:46 -0800 (PST) MIME-Version: 1.0 References: <201912060818.dgGGxpRK%lkp@intel.com> In-Reply-To: From: Greentime Hu Date: Fri, 6 Dec 2019 18:15:08 +0800 Message-ID: Subject: Re: drivers/scsi/.tmp_mc_st.s:3: Error: invalid operands (*UND* and *UND* sections) for `^' To: Arnd Bergmann , Nickhu Cc: kbuild test robot , kbuild-all@lists.01.org, "linux-kernel@vger.kernel.org" , Vincent Chen Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Greentime Hu =E6=96=BC 2019=E5=B9=B412=E6=9C=886=E6=97= =A5 =E9=80=B1=E4=BA=94 =E4=B8=8B=E5=8D=884:38=E5=AF=AB=E9=81=93=EF=BC=9A > > Greentime Hu =E6=96=BC 2019=E5=B9=B412=E6=9C=886=E6= =97=A5 =E9=80=B1=E4=BA=94 =E4=B8=8B=E5=8D=884:19=E5=AF=AB=E9=81=93=EF=BC=9A > > > > Arnd Bergmann =E6=96=BC 2019=E5=B9=B412=E6=9C=886=E6=97= =A5 =E9=80=B1=E4=BA=94 =E4=B8=8B=E5=8D=884:00=E5=AF=AB=E9=81=93=EF=BC=9A > > > > > > On Fri, Dec 6, 2019 at 2:05 AM kbuild test robot wrot= e: > > > > > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/li= nux.git master > > > > head: 2f13437b8917627119d163d62f73e7a78a92303a > > > > commit: 1207045da5a7c94344e0ea9a9e7495985eef499a compat_ioctl: move= tape handling into drivers > > > > date: 6 weeks ago > > > > config: nds32-allyesconfig (attached as .config) > > > > compiler: nds32le-linux-gcc (GCC) 9.2.0 > > > > reproduce: > > > > wget https://raw.githubusercontent.com/intel/lkp-tests/mast= er/sbin/make.cross -O ~/bin/make.cross > > > > chmod +x ~/bin/make.cross > > > > git checkout 1207045da5a7c94344e0ea9a9e7495985eef499a > > > > # save the attached .config to linux build tree > > > > GCC_VERSION=3D9.2.0 make.cross ARCH=3Dnds32 > > > > > > > > If you fix the issue, kindly add following tag > > > > Reported-by: kbuild test robot > > > > > > > > All errors (new ones prefixed by >>): > > > > > > > > drivers/scsi/.tmp_mc_st.s: Assembler messages: > > > > >> drivers/scsi/.tmp_mc_st.s:3: Error: invalid operands (*UND* and = *UND* sections) for `^' > > > > drivers/scsi/.tmp_mc_st.s:4: Error: invalid operands (*UND* and = *UND* sections) for `^' > > > > drivers/scsi/.tmp_mc_st.s:5: Error: invalid operands (*UND* and = *UND* sections) for `^' > > > > drivers/scsi/.tmp_mc_st.s:6: Error: invalid operands (*UND* and = *UND* sections) for `^' > > > > drivers/scsi/.tmp_mc_st.s:7: Error: invalid operands (*UND* and = *UND* sections) for `^' > > > > drivers/scsi/.tmp_mc_st.s:8: Error: invalid operands (*UND* and = *UND* sections) for `^' > > > > drivers/scsi/.tmp_mc_st.s:9: Error: invalid operands (*UND* and = *UND* sections) for `^' > > > > > > Adding nds32 maintainers to Cc: > > > > > > It looks like a regression caused by my patch, but I don't think it's= something > > > I did wrong, but rather a toolchain bug being uncovered by the modifi= ed sources. > > > > > > Are you able to reproduce this? > > > > Hi Arnd, > > > > I am trying to reproduce this problem, but it happened to me. > > > > greentimeh@gamma07:/scratch/greentimeh/nds32/linux <(1207045da5a7...)> > > $ GCC_VERSION=3D9.2.0 make.cross ARCH=3Dnds32 > > cd: received redirection to `https://download.01.org/0day-ci/cross-pack= age/' > > Cannot find nds32-linux under > > https://download.01.org/0day-ci/cross-package check > > /tmp/crosstool-files > > > > Can you reproduce it? > > I can reproduce it now by adding these 2 lines to make.cross. > 177 nds32) > 178 gcc_arch=3Dnds32le-linux > > It will be built failed with gcc-9.2.0-nolibc toolchain, but it can be > built pass with gcc-8.1.0-nolibc toolchain. It seems nds32le-linux-objdump -hdr xxx.o will generate different strings. For example: 00000050 <.L2^B1>: This string is different when generated by 9.2 toolchain and 8.1 toolchain. "^B" is treated as 2 character in 9.2 toolchain "^B" is treated as 1 character in 8.1 toolchain This causes ./scripts/recordmcount.pl to call `$cc -o $mcount_o -c $mcount_s`; failed to cause this issue. I have a quick patch to fix this build error, but I am not sure if it is a good solution. Maybe Nick could have a look at it? diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl index 3f77a5d695c1..807b61fc5f5d 100755 --- a/scripts/recordmcount.pl +++ b/scripts/recordmcount.pl @@ -551,7 +551,8 @@ while () { # if this is either a local function or a weak function # keep looking for functions that are global that # we can use safely. - if (!defined($locals{$text}) && !defined($weak{$text})) { + if (!defined($locals{$text}) && !defined($weak{$text}) && + $text !~ /^\.L/) { $ref_func =3D $text; $read_function =3D 0; $offset =3D hex $1;