Messages in this thread | | | From | Geert Uytterhoeven <> | Date | Fri, 10 Jun 2022 10:46:21 +0200 | Subject | Re: {standard input}:3978: Error: value 178 out of range |
| |
On Fri, Jun 10, 2022 at 2:47 AM kernel test robot <lkp@intel.com> wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: 6bfb56e93bcef41859c2d5ab234ffd80b691be35 > commit: 43ca110050988c7a0e581d24ce212ef34a4cdf29 scsi: mpi3mr: Add support for PEL commands > date: 5 weeks ago > config: m68k-randconfig-r036-20220608 (https://download.01.org/0day-ci/archive/20220610/202206100855.uY63FJUH-lkp@intel.com/config) > compiler: m68k-linux-gcc (GCC) 11.3.0 > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=43ca110050988c7a0e581d24ce212ef34a4cdf29 > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > git fetch --no-tags linus master > git checkout 43ca110050988c7a0e581d24ce212ef34a4cdf29 > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash > > If you fix the issue, kindly add following tag where applicable > Reported-by: kernel test robot <lkp@intel.com> > > All errors (new ones prefixed by >>): > > {standard input}: Assembler messages: > >> {standard input}:3978: Error: value 178 out of range > >> {standard input}:3978: Error: value of 178 too large for field of 1 byte at 00000fdb
This failure happens while building drivers/scsi/mpi3mr/mpi3mr_fw.o.
How to check:
make ARCH=m68k drivers/scsi/mpi3mr/mpi3mr_fw.s make ARCH=m68k V=1 drivers/scsi/mpi3mr/mpi3mr_fw.o
Run the output from the last command with mpi3mr_fw.c by mpi3mr_fw.s, so you will get sensible line numbers:
drivers/scsi/mpi3mr/mpi3mr_fw.s: Assembler messages: drivers/scsi/mpi3mr/mpi3mr_fw.s:1849: Error: value -168 out of range drivers/scsi/mpi3mr/mpi3mr_fw.s:1849: Error: value of -168 too large for field of 1 byte at 3175
Note that the value differs, but I'm using a different compiler (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04)).
The offending instruction is:
| drivers/scsi/mpi3mr/mpi3mr_fw.c:299: switch (host_tag) { mvz.w %d2,%d0 | tmp160, host_tag mov3q.l #5,%d1 |, cmp.l %d0,%d1 | host_tag, jcs .L154 | tst.w %d6 | host_tag jeq .L133 | subq.l #2,%d2 |, tmp238 mvz.w %d2,%d2 | tmp238, tmp240 mov3q.l #3,%d0 |, cmp.l %d2,%d0 | tmp240, jcs .L140 | add.l %d2,%d2 | tmp244 >>> move.w .L155(%pc,%d2.l),%d0 |, tmp245 jra .L186 |
And the table L155 is just too far from the above instruction, so the displacement is too large, causing the failure.
Looks like a compiler bug to me?
Gr{oetje,eeting}s,
Geert
-- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
| |