Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3771550ybl; Sun, 8 Dec 2019 23:09:42 -0800 (PST) X-Google-Smtp-Source: APXvYqw+Yba+Q03w0IstaAIXkONUem0geGDRC+oqlD7eDDFx28Oj2IE5zvcTPWX1QM4Tk4/Vr727 X-Received: by 2002:a05:6830:605:: with SMTP id w5mr19414139oti.298.1575875381887; Sun, 08 Dec 2019 23:09:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575875381; cv=none; d=google.com; s=arc-20160816; b=TPfdxSaBM6/lHSD3MhdenhP5BjS/oMA5wG7OrYJbg1ETRpL1mibvsuFFaWY6SwDtJ+ fdbsehazP9tuIcoa9dJxBTe2mpKVipg3PdUjcTZoyvVXuYEZEbx2k2WbuAVOl2RESIvL 8oFmjuznxzDRjFxPvPPVc0H/b2tjD3SX/SxQ7fZQshnT4EbwnN9a10de4VCXyV+/6fT2 ainwD8P8D+SAkUsJBM32IJP87669TqhIUKIslQX8gpHzV56HDk/A+VxclG5LJ294T3sT j8ES1UnGlw9YrYakJoUZ0iGrYwcplktRb3HMjmwJRyPv4HJDU/1pfGE4pB9CPDPT7bP7 9uOA== 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=acPdwX4RR6D9eurdBV6vmv1n2rLJNB+twNd7iWdWOgA=; b=HGVlRWAYpQ74iF5ZTABWkAq8+hDpVBwBmw/5+793cZ/yWsVT+3veNPTOAcAxTjyBrP VapTKg+cVgfnSApJGdhMDk6wP88u5rabDhUgdkyvyFgUNWV/eU7dvkO/cKL/XNzom2DI 17nCkUAh+5pr7iZ7wT9+gL8PkUqvOA8mU8wAW23cKjNh4Aj6sMFyHeGrClikNwvO4NTV 4oWPddak6rUErniTEg3BZf5HLFmS36wgVF5lP5kGiB/ajsJQule3gC+zj4qvodJ0TZLs y6JEnhOMMJSj/f3hi8XfXJYF+agWRrEKNNE3uNypz6Fpv7EvXt97Diil9tBKaBXrdvQ0 cduQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=R8fe3KSv; 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 p10si11357983oib.88.2019.12.08.23.09.30; Sun, 08 Dec 2019 23:09:41 -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=R8fe3KSv; 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 S1727140AbfLIHJD (ORCPT + 99 others); Mon, 9 Dec 2019 02:09:03 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:39821 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726170AbfLIHJC (ORCPT ); Mon, 9 Dec 2019 02:09:02 -0500 Received: by mail-qk1-f196.google.com with SMTP id c16so3751590qko.6 for ; Sun, 08 Dec 2019 23:09:01 -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=acPdwX4RR6D9eurdBV6vmv1n2rLJNB+twNd7iWdWOgA=; b=R8fe3KSvuyjJ8wnh1yvCdj+K+HkNGhJDuufs8lZAHM5Lpt8xFiXunSs/ZKw9s/c6se +mqBSLIYRjSiq4+x/p1D1HSi+rDYfaxyrUPJy8cuc6uDLIp7XGEN8fYONerJYkOVRsKc kOtEjBkjRm35F2aYgC8UDuKO6xQwXm3vv+HGAsiae7TsP6+M04ACDBojTyOqeQ9kJUw9 zbxQNsyvdLX6C7AJwBVp6Debkl8pzKSjnW19zhpIPfQiSkmJs8wqkRBpWpF0ubtLVlXP jadauy5PvRRqBGtvrmB3jFwd9TZcWXdCtfpo8xB7pH8zk73ycv13YDpNM2SZSEe9h5Y/ Z0wQ== 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=acPdwX4RR6D9eurdBV6vmv1n2rLJNB+twNd7iWdWOgA=; b=OTAnqA3cDSUHUWIjlF8Mj4AKe1ch4r4J3OzOqkmnYEeCbxKL83HTr0jy1X2c0ZoQJz gvJHozAvpncNSi6Onf6WZuW4NdmVav5DH7VTBV3C51KUCY6aGyh4TQP6NI9nYAE1eiRT YjQloWIYPjad64W5Py+SXAFcI8Aj27lsxhmBDN+L5cHP9Rny8e1nPs0/WeAZTpb/ubIx ChTGvBAIG4tY9X9VKDsfXVsTJaD/iYXjybZCxNx11sA65/lsT+tPw39uOg/tL0rZqYiG AKlq/kokq/WQM4MueiQAjbYkEnXx7uE3V0KGN4K9bM8kBy2UfUSewPLzcKaSP+4N3L8W f/vA== X-Gm-Message-State: APjAAAVV+xHQgwlJCv/5wTvB6sDPQWSihLe0o/4W+QyS/V3rdxGfvHgd PMuAGkX5HvgRtTK0qnBfMe8WNTzRx1b6jhZ8asI= X-Received: by 2002:a37:8505:: with SMTP id h5mr25588045qkd.281.1575875341187; Sun, 08 Dec 2019 23:09:01 -0800 (PST) MIME-Version: 1.0 References: <201912060818.dgGGxpRK%lkp@intel.com> In-Reply-To: From: Greentime Hu Date: Mon, 9 Dec 2019 15:08:24 +0800 Message-ID: Subject: Re: drivers/scsi/.tmp_mc_st.s:3: Error: invalid operands (*UND* and *UND* sections) for `^' To: Arnd Bergmann , Nickhu , nelson.chu1990@gmail.com 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=886:15=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: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 wr= ote: > > > > > > > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/= linux.git master > > > > > head: 2f13437b8917627119d163d62f73e7a78a92303a > > > > > commit: 1207045da5a7c94344e0ea9a9e7495985eef499a compat_ioctl: mo= ve 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/ma= ster/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* an= d *UND* sections) for `^' > > > > > drivers/scsi/.tmp_mc_st.s:4: Error: invalid operands (*UND* an= d *UND* sections) for `^' > > > > > drivers/scsi/.tmp_mc_st.s:5: Error: invalid operands (*UND* an= d *UND* sections) for `^' > > > > > drivers/scsi/.tmp_mc_st.s:6: Error: invalid operands (*UND* an= d *UND* sections) for `^' > > > > > drivers/scsi/.tmp_mc_st.s:7: Error: invalid operands (*UND* an= d *UND* sections) for `^' > > > > > drivers/scsi/.tmp_mc_st.s:8: Error: invalid operands (*UND* an= d *UND* sections) for `^' > > > > > drivers/scsi/.tmp_mc_st.s:9: Error: invalid operands (*UND* an= d *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 modi= fied 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-pa= ckage/' > > > 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 toolchai= n. > "^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; Add Nelson Chu to Cc. He found this commit in binutil to cause the different "^B". 91d6fa6a (Nick Clifton 2009-12-11 13:42:17 +0000 1273) (*inf->fprintf_func) (inf->stream, " <%s", fd361982 (Alan Modra 2019-09-16 20:25:17 +0930 1274) sanitize_string (bfd_section_name (sec)));