From: Nathan Chancellor <natechancellor@gmail.com>
To: kbuild test robot <lkp@intel.com>
Cc: Dirk Mueller <dmueller@suse.com>,
kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
linux-kernel@vger.kernel.org, Rob Herring <robh@kernel.org>,
David Gibson <david@gibson.dropbear.id.au>
Subject: Re: lib/mpi/generic_mpih-mul1.c:37:13: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
Date: Thu, 23 Apr 2020 09:33:11 -0700 [thread overview]
Message-ID: <20200423163311.GA6774@ubuntu-s3-xlarge-x86> (raw)
In-Reply-To: <202004232041.oMgr2Xiq%lkp@intel.com>
On Thu, Apr 23, 2020 at 08:00:47PM +0800, kbuild test robot wrote:
> Hi Dirk,
>
> First bad commit (maybe != root cause):
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: c578ddb39e565139897124e74e5a43e56538cb33
> commit: e33a814e772cdc36436c8c188d8c42d019fda639 scripts/dtc: Remove redundant YYLOC global declaration
> date: 4 weeks ago
> config: powerpc-randconfig-a001-20200423 (attached as .config)
> compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project bbf386f02b05db017fda66875cc5edef70779244)
> reproduce:
> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> # install powerpc cross compiling tool for clang build
> # apt-get install binutils-powerpc-linux-gnu
> git checkout e33a814e772cdc36436c8c188d8c42d019fda639
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kbuild test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>):
>
> >> lib/mpi/generic_mpih-mul1.c:37:13: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
> umul_ppmm(prod_high, prod_low, s1_ptr[j], s2_limb);
> ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/mpi/longlong.h:790:20: note: expanded from macro 'umul_ppmm'
> : "=r" ((USItype) ph) \
> ~~~~~~~~~~^~
> 1 error generated.
> --
> >> lib/mpi/generic_mpih-mul2.c:36:13: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
> umul_ppmm(prod_high, prod_low, s1_ptr[j], s2_limb);
> ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/mpi/longlong.h:790:20: note: expanded from macro 'umul_ppmm'
> : "=r" ((USItype) ph) \
> ~~~~~~~~~~^~
> 1 error generated.
> --
> >> lib/mpi/generic_mpih-mul3.c:36:13: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
> umul_ppmm(prod_high, prod_low, s1_ptr[j], s2_limb);
> ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/mpi/longlong.h:790:20: note: expanded from macro 'umul_ppmm'
> : "=r" ((USItype) ph) \
> ~~~~~~~~~~^~
> 1 error generated.
> --
> >> lib/mpi/mpih-div.c:99:16: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
> sub_ddmmss(n1, n0, n1, n0, d1, d0);
> ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
> lib/mpi/longlong.h:750:21: note: expanded from macro 'sub_ddmmss'
> : "=r" ((USItype)(sh)), \
> ~~~~~~~~~~^~~
> lib/mpi/mpih-div.c:99:20: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
> sub_ddmmss(n1, n0, n1, n0, d1, d0);
> ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
> lib/mpi/longlong.h:751:20: note: expanded from macro 'sub_ddmmss'
> "=&r" ((USItype)(sl)) \
> ~~~~~~~~~~^~~
> >> lib/mpi/mpih-div.c:99:16: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
> sub_ddmmss(n1, n0, n1, n0, d1, d0);
> ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
> lib/mpi/longlong.h:757:21: note: expanded from macro 'sub_ddmmss'
> : "=r" ((USItype)(sh)), \
> ~~~~~~~~~~^~~
> lib/mpi/mpih-div.c:99:20: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
> sub_ddmmss(n1, n0, n1, n0, d1, d0);
> ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
> lib/mpi/longlong.h:758:20: note: expanded from macro 'sub_ddmmss'
> "=&r" ((USItype)(sl)) \
> ~~~~~~~~~~^~~
> >> lib/mpi/mpih-div.c:99:16: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
> sub_ddmmss(n1, n0, n1, n0, d1, d0);
> ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
> lib/mpi/longlong.h:764:21: note: expanded from macro 'sub_ddmmss'
> : "=r" ((USItype)(sh)), \
> ~~~~~~~~~~^~~
> lib/mpi/mpih-div.c:99:20: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
> sub_ddmmss(n1, n0, n1, n0, d1, d0);
> ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
> lib/mpi/longlong.h:765:20: note: expanded from macro 'sub_ddmmss'
> "=&r" ((USItype)(sl)) \
> ~~~~~~~~~~^~~
> >> lib/mpi/mpih-div.c:99:16: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
> sub_ddmmss(n1, n0, n1, n0, d1, d0);
> ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
> lib/mpi/longlong.h:771:21: note: expanded from macro 'sub_ddmmss'
> : "=r" ((USItype)(sh)), \
> ~~~~~~~~~~^~~
> lib/mpi/mpih-div.c:99:20: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
> sub_ddmmss(n1, n0, n1, n0, d1, d0);
> ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
> lib/mpi/longlong.h:772:20: note: expanded from macro 'sub_ddmmss'
> "=&r" ((USItype)(sl)) \
> ~~~~~~~~~~^~~
> >> lib/mpi/mpih-div.c:99:16: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
> sub_ddmmss(n1, n0, n1, n0, d1, d0);
> ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
> lib/mpi/longlong.h:778:21: note: expanded from macro 'sub_ddmmss'
> : "=r" ((USItype)(sh)), \
> ~~~~~~~~~~^~~
> lib/mpi/mpih-div.c:99:20: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
> sub_ddmmss(n1, n0, n1, n0, d1, d0);
> ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
> lib/mpi/longlong.h:779:20: note: expanded from macro 'sub_ddmmss'
> "=&r" ((USItype)(sl)) \
> ~~~~~~~~~~^~~
> lib/mpi/mpih-div.c:120:18: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
> add_ssaaaa(n1, n0, r - d0,
> ~~~~~~~~~~~^~~~~~~~~~~~~~~
> lib/mpi/longlong.h:725:21: note: expanded from macro 'add_ssaaaa'
> : "=r" ((USItype)(sh)), \
> ~~~~~~~~~~^~~
> lib/mpi/mpih-div.c:120:22: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
> add_ssaaaa(n1, n0, r - d0,
> ~~~~~~~~~~~~~~~^~~~~~~~~~~
> lib/mpi/longlong.h:726:20: note: expanded from macro 'add_ssaaaa'
> "=&r" ((USItype)(sl)) \
> ~~~~~~~~~~^~~
> lib/mpi/mpih-div.c:120:18: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
> add_ssaaaa(n1, n0, r - d0,
> ~~~~~~~~~~~^~~~~~~~~~~~~~~
> lib/mpi/longlong.h:732:21: note: expanded from macro 'add_ssaaaa'
> : "=r" ((USItype)(sh)), \
> ~~~~~~~~~~^~~
> lib/mpi/mpih-div.c:120:22: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
> add_ssaaaa(n1, n0, r - d0,
> ~~~~~~~~~~~~~~~^~~~~~~~~~~
> lib/mpi/longlong.h:733:20: note: expanded from macro 'add_ssaaaa'
> "=&r" ((USItype)(sl)) \
> ~~~~~~~~~~^~~
> lib/mpi/mpih-div.c:120:18: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
> add_ssaaaa(n1, n0, r - d0,
> ~~~~~~~~~~~^~~~~~~~~~~~~~~
> lib/mpi/longlong.h:739:21: note: expanded from macro 'add_ssaaaa'
> : "=r" ((USItype)(sh)), \
> ~~~~~~~~~~^~~
> lib/mpi/mpih-div.c:120:22: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
> add_ssaaaa(n1, n0, r - d0,
> ~~~~~~~~~~~~~~~^~~~~~~~~~~
> lib/mpi/longlong.h:740:20: note: expanded from macro 'add_ssaaaa'
> "=&r" ((USItype)(sl)) \
> ~~~~~~~~~~^~~
> lib/mpi/mpih-div.c:129:16: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
> umul_ppmm(n1, n0, d0, q);
> ~~~~~~~~~~^~~~~~~~~~~~~~
> lib/mpi/longlong.h:790:20: note: expanded from macro 'umul_ppmm'
> : "=r" ((USItype) ph) \
> ~~~~~~~~~~^~
> lib/mpi/mpih-div.c:137:17: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
> sub_ddmmss(n1, n0, n1, n0, 0, d0);
> ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
> lib/mpi/longlong.h:750:21: note: expanded from macro 'sub_ddmmss'
> : "=r" ((USItype)(sh)), \
> ~~~~~~~~~~^~~
> lib/mpi/mpih-div.c:137:21: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
> sub_ddmmss(n1, n0, n1, n0, 0, d0);
> ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
> lib/mpi/longlong.h:751:20: note: expanded from macro 'sub_ddmmss'
> "=&r" ((USItype)(sl)) \
> ~~~~~~~~~~^~~
> fatal error: too many errors emitted, stopping now [-ferror-limit=]
> 20 errors generated.
>
> vim +37 lib/mpi/generic_mpih-mul1.c
Obviously not caused by that commit but I sent a patch a week and a half
ago:
https://lore.kernel.org/lkml/20200413195041.24064-1-natechancellor@gmail.com/
https://github.com/ClangBuiltLinux/linux/issues/991
Cheers,
Nathan
prev parent reply other threads:[~2020-04-23 16:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-23 12:00 lib/mpi/generic_mpih-mul1.c:37:13: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions kbuild test robot
2020-04-23 16:33 ` Nathan Chancellor [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200423163311.GA6774@ubuntu-s3-xlarge-x86 \
--to=natechancellor@gmail.com \
--cc=clang-built-linux@googlegroups.com \
--cc=david@gibson.dropbear.id.au \
--cc=dmueller@suse.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).