From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44CDFC43603 for ; Mon, 9 Dec 2019 07:09:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 05202206D3 for ; Mon, 9 Dec 2019 07:09:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="R8fe3KSv" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727188AbfLIHJD (ORCPT ); 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-Google-Smtp-Source: APXvYqzEhY1weRee2E5uV0RoeR2aMsIzSVlLeNcjwk+gLGbYLBIE8Rw/YISOsOPCg3QXQSv0QNMGFbLsYVqqZ363vRo= 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)));