linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* net/sunrpc/stats.c:204: undefined reference to `_GLOBAL_OFFSET_TABLE_'
@ 2016-09-16 11:57 kbuild test robot
  0 siblings, 0 replies; 10+ messages in thread
From: kbuild test robot @ 2016-09-16 11:57 UTC (permalink / raw)
  To: Nicolas Pitre; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 3355 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   024c7e3756d8a42fc41fe8a9488488b9b09d1dcc
commit: 461a5e51060c93f5844113f4be9dba513cc92830 do_div(): generic optimization for constant divisor on 32-bit machines
date:   10 months ago
config: microblaze-mmu_defconfig (attached as .config)
compiler: microblaze-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 461a5e51060c93f5844113f4be9dba513cc92830
        # save the attached .config to linux build tree
        make.cross ARCH=microblaze 

All errors (new ones prefixed by >>):

   net/built-in.o: In function `rpc_print_iostats':
>> net/sunrpc/stats.c:204: undefined reference to `_GLOBAL_OFFSET_TABLE_'
   scripts/link-vmlinux.sh: line 52: 198800 Segmentation fault      ${LD} ${LDFLAGS} ${LDFLAGS_vmlinux} -o ${2} -T ${lds} ${KBUILD_VMLINUX_INIT} --start-group ${KBUILD_VMLINUX_MAIN} --end-group ${1}

vim +204 net/sunrpc/stats.c

840210fc Weston Andros Adamson 2014-06-24  188  				  &stats[task->tk_msg.rpc_proc->p_statidx]);
840210fc Weston Andros Adamson 2014-06-24  189  }
0a702195 Weston Andros Adamson 2012-02-17  190  EXPORT_SYMBOL_GPL(rpc_count_iostats);
11c556b3 Chuck Lever           2006-03-20  191  
ec535ce1 Adrian Bunk           2006-04-18  192  static void _print_name(struct seq_file *seq, unsigned int op,
ec535ce1 Adrian Bunk           2006-04-18  193  			struct rpc_procinfo *procs)
cc0175c1 Chuck Lever           2006-03-20  194  {
cc0175c1 Chuck Lever           2006-03-20  195  	if (procs[op].p_name)
cc0175c1 Chuck Lever           2006-03-20  196  		seq_printf(seq, "\t%12s: ", procs[op].p_name);
cc0175c1 Chuck Lever           2006-03-20  197  	else if (op == 0)
cc0175c1 Chuck Lever           2006-03-20  198  		seq_printf(seq, "\t        NULL: ");
cc0175c1 Chuck Lever           2006-03-20  199  	else
cc0175c1 Chuck Lever           2006-03-20  200  		seq_printf(seq, "\t%12u: ", op);
cc0175c1 Chuck Lever           2006-03-20  201  }
cc0175c1 Chuck Lever           2006-03-20  202  
11c556b3 Chuck Lever           2006-03-20  203  void rpc_print_iostats(struct seq_file *seq, struct rpc_clnt *clnt)
11c556b3 Chuck Lever           2006-03-20 @204  {
11c556b3 Chuck Lever           2006-03-20  205  	struct rpc_iostats *stats = clnt->cl_metrics;
2446ab60 Trond Myklebust       2012-03-01  206  	struct rpc_xprt *xprt;
11c556b3 Chuck Lever           2006-03-20  207  	unsigned int op, maxproc = clnt->cl_maxproc;
11c556b3 Chuck Lever           2006-03-20  208  
11c556b3 Chuck Lever           2006-03-20  209  	if (!stats)
11c556b3 Chuck Lever           2006-03-20  210  		return;
11c556b3 Chuck Lever           2006-03-20  211  
11c556b3 Chuck Lever           2006-03-20  212  	seq_printf(seq, "\tRPC iostats version: %s  ", RPC_IOSTATS_VERS);

:::::: The code at line 204 was first introduced by commit
:::::: 11c556b3d8d481829ab5f9933a25d29b00913b5a SUNRPC: provide a mechanism for collecting stats in the RPC client

:::::: TO: Chuck Lever <cel@netapp.com>
:::::: CC: Trond Myklebust <Trond.Myklebust@netapp.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 11783 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: net/sunrpc/stats.c:204: undefined reference to `_GLOBAL_OFFSET_TABLE_'
  2016-10-06  2:43         ` Nicolas Pitre
@ 2016-10-06 11:27           ` Fengguang Wu
  0 siblings, 0 replies; 10+ messages in thread
From: Fengguang Wu @ 2016-10-06 11:27 UTC (permalink / raw)
  To: Nicolas Pitre; +Cc: kbuild-all, linux-kernel, Michal Simek

On Wed, Oct 05, 2016 at 10:43:45PM -0400, Nicolas Pitre wrote:
>On Thu, 6 Oct 2016, Fengguang Wu wrote:
>
>> On Tue, Oct 04, 2016 at 09:08:27AM -0400, Nicolas Pitre wrote:
>> >On Tue, 4 Oct 2016, Fengguang Wu wrote:
>> >
>> > > CC Michal. It looks like a microblaze specific error. I'll blacklist
>> > > this old error on microblaze if there are no good solutions.
>> >
>> >It doesn't exhibit any build error on my end.  Which is why I suggested
>> >that you verify the integrity of your toolchain on your end.
>>
>> OK, let me try upgrade the debian package first.
>> What's your toolchain version?
>
>The one that was installed by make.cross from the reproduction
>instructions included in the error report below. Currently:
>
>gcc version 4.9.0
>GNU ld (GNU Binutils) 2.24

Ah yes. It's a problem with the gcc 6.2 I built recently:

% gcc-6.2.0/microblaze-linux/bin/microblaze-linux-gcc -v
Using built-in specs.
COLLECT_GCC=gcc-6.2.0/microblaze-linux/bin/microblaze-linux-gcc
COLLECT_LTO_WRAPPER=/opt/kbuild/opt/cross/gcc-6.2.0/microblaze-linux/bin/../libexec/gcc/microblaze-linux/6.2.0/lto-wrapper
Target: microblaze-linux
Configured with: /c/gcc/configure --target=microblaze-linux --enable-targets=all --prefix=/opt/cross/gcc-6.2.0/microblaze-linux --enable-languages=c --without-headers --disable-bootstrap --enable-sjlj-exceptions --with-system-libunwind --disable-nls --disable-threads --disable-shared --disable-libmudflap --disable-libssp --disable-libgomp --disable-decimal-float --disable-libquadmath --disable-libatomic --disable-libcc1 --disable-libmpx --enable-checking=release --enable-lto --enable-plugin
Thread model: single
gcc version 6.2.0 (GCC)

The below 2 both works. I'll revert to the working gcc 4.9.

% gcc-4.9.0-nolibc/microblaze-linux/bin/microblaze-linux-gcc -v
Using built-in specs.
COLLECT_GCC=gcc-4.9.0-nolibc/microblaze-linux/bin/microblaze-linux-gcc
COLLECT_LTO_WRAPPER=/opt/kbuild/opt/cross/gcc-4.9.0-nolibc/microblaze-linux/bin/../libexec/gcc/microblaze-linux/4.9.0/lto-wrapper
Target: microblaze-linux
Configured with: /home/tony/buildall/src/gcc/configure --target=microblaze-linux --host=x86_64-linux-gnu --build=x86_64-linux-gnu --enable-targets=all --prefix=/opt/cross/gcc-4.9.0-nolibc/microblaze-linux/ --enable-languages=c --with-newlib --without-headers --enable-sjlj-exceptions --with-system-libunwind --disable-nls --disable-threads --disable-shared --disable-libmudflap --disable-libssp --disable-libgomp --disable-decimal-float --enable-checking=release --with-mpfr=/home/tony/buildall/src/sys-x86_64 --with-gmp=/home/tony/buildall/src/sys-x86_64 --disable-bootstrap
Thread model: single
gcc version 4.9.0 (GCC)

% gcc-4.6.4-nolibc/microblaze-xilinx-elf/bin/microblaze-xilinx-elf-gcc -v
Using built-in specs.
COLLECT_GCC=gcc-4.6.4-nolibc/microblaze-xilinx-elf/bin/microblaze-xilinx-elf-gcc
COLLECT_LTO_WRAPPER=/opt/kbuild/opt/cross/gcc-4.6.4-nolibc/microblaze-xilinx-elf/bin/../libexec/gcc/microblaze-xilinx-elf/4.6.4/lto-wrapper
Target: microblaze-xilinx-elf
Configured with: /home/buildbot/plgx_bld/xils005/2012_12_19/toolchains/lin64-microblaze-xilinx-elf/crosstool-ng/targets/src/gcc-4.6.1/configure --build=x86_64-build_unknown-linux-gnu --host=x86_64-build_unknown-linux-gnu --target=microblaze-xilinx-elf --prefix=/home/buildbot/plgx_bld/xils005/2012_12_19/toolchains/lin64-microblaze-xilinx-elf/tool-build --with-local-prefix=/home/buildbot/plgx_bld/xils005/2012_12_19/toolchains/lin64-microblaze-xilinx-elf/tool-build/microblaze-xilinx-elf/sysroot --disable-libmudflap --with-sysroot=/home/buildbot/plgx_bld/xils005/2012_12_19/toolchains/lin64-microblaze-xilinx-elf/tool-build/microblaze-xilinx-elf/sysroot --with-newlib --enable-threads=no --disable-shared --with-pkgversion='crosstool-NG 1.15.3' --disable-__cxa_atexit --with-gmp=/home/buildbot/plgx_bld/xils005/2012_12_19/toolchains/lin64-microblaze-xilinx-elf/crosstool-ng/targets/microblaze-xilinx-elf/buildtools --with-mpfr=/home/buildbot/plgx_bld/xils005/2012_12_19/toolchains/lin64-microblaze-xilinx-elf/crosstool-ng/targets/microblaze-xilinx-elf/buildtools --with-mpc=/home/buildbot/plgx_bld/xils005/2012_12_19/toolchains/lin64-microblaze-xilinx-elf/crosstool-ng/targets/microblaze-xilinx-elf/buildtools --with-ppl=no --with-cloog=no --with-libelf=no --disable-lto --enable-target-optspace --without-long-double-128 --disable-libgomp --disable-libmudflap --disable-nls --disable-libstdcxx-pch --with-system-zlib --enable-multilib --enable-languages=c,c++
Thread model: single
gcc version 4.6.4 20120924 (prerelease) (crosstool-NG 1.15.3)

Thanks,
Fengguang

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: net/sunrpc/stats.c:204: undefined reference to `_GLOBAL_OFFSET_TABLE_'
  2016-10-05 23:57       ` Fengguang Wu
@ 2016-10-06  2:43         ` Nicolas Pitre
  2016-10-06 11:27           ` Fengguang Wu
  0 siblings, 1 reply; 10+ messages in thread
From: Nicolas Pitre @ 2016-10-06  2:43 UTC (permalink / raw)
  To: Fengguang Wu; +Cc: kbuild-all, linux-kernel, Michal Simek

On Thu, 6 Oct 2016, Fengguang Wu wrote:

> On Tue, Oct 04, 2016 at 09:08:27AM -0400, Nicolas Pitre wrote:
> >On Tue, 4 Oct 2016, Fengguang Wu wrote:
> >
> > > CC Michal. It looks like a microblaze specific error. I'll blacklist
> > > this old error on microblaze if there are no good solutions.
> >
> >It doesn't exhibit any build error on my end.  Which is why I suggested
> >that you verify the integrity of your toolchain on your end.
> 
> OK, let me try upgrade the debian package first.
> What's your toolchain version?

The one that was installed by make.cross from the reproduction 
instructions included in the error report below. Currently:

gcc version 4.9.0
GNU ld (GNU Binutils) 2.24


> > > On Fri, Sep 23, 2016 at 05:11:32PM -0400, Nicolas Pitre wrote:
> > > >On Thu, 22 Sep 2016, kbuild test robot wrote:
> > > >
> > > > > Hi Nicolas,
> > > > >
> > > > > FYI, the error/warning still remains.
> > > > >
> > > > > tree:
> > > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> > > > > master
> > > > > head:   7d1e042314619115153a0f6f06e4552c09a50e13
> > > > > commit: 461a5e51060c93f5844113f4be9dba513cc92830 do_div(): generic
> > > > > optimization for constant divisor on 32-bit machines
> > > > > date:   10 months ago
> > > > > config: microblaze-mmu_defconfig (attached as .config)
> > > > > compiler: microblaze-linux-gcc (GCC) 6.2.0
> > > > > reproduce:
> > > > >         wget
> > > > >         https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
> > > > >         -O ~/bin/make.cross
> > > > >         chmod +x ~/bin/make.cross
> > > > >         git checkout 461a5e51060c93f5844113f4be9dba513cc92830
> > > > >         # save the attached .config to linux build tree
> > > > >         make.cross ARCH=microblaze
> > > > >
> > > > > All errors (new ones prefixed by >>):
> > > > >
> > > > >    net/built-in.o: In function `rpc_print_iostats':
> > > > > > > net/sunrpc/stats.c:204: undefined reference to
> > > > > > > `_GLOBAL_OFFSET_TABLE_'
> > > > >    scripts/link-vmlinux.sh: line 52:  5714 Segmentation fault
> > > > >    ${LD}
> > > > >    ${LDFLAGS} ${LDFLAGS_vmlinux} -o ${2} -T ${lds}
> > > > >    ${KBUILD_VMLINUX_INIT}
> > > > >    --start-group ${KBUILD_VMLINUX_MAIN} --end-group ${1}
> > > >
> > > >The problem must be at your end, especially if the toolchain exhibits
> > > >segmentation faults.
> > > >
> > > >Following exactly the instructions above, I get:
> > > >
> > > >[...]
> > > >  LD      vmlinux
> > > >  SORTEX  vmlinux
> > > >  SYSMAP  System.map
> > > >  OBJCOPY arch/microblaze/boot/linux.bin
> > > >  Building modules, stage 2.
> > > >  MODPOST 3 modules
> > > >  CC      crypto/drbg.mod.o
> > > >  CC      crypto/echainiv.mod.o
> > > >  CC      crypto/jitterentropy_rng.mod.o
> > > >  LD [M]  crypto/jitterentropy_rng.ko
> > > >  LD [M]  crypto/drbg.ko
> > > >  LD [M]  crypto/echainiv.ko
> > > >Kernel: arch/microblaze/boot/linux.bin is ready  (#1)
> > > >
> > > >
> > > >Nicolas
> > >
> 
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: net/sunrpc/stats.c:204: undefined reference to `_GLOBAL_OFFSET_TABLE_'
  2016-10-04 13:08     ` Nicolas Pitre
@ 2016-10-05 23:57       ` Fengguang Wu
  2016-10-06  2:43         ` Nicolas Pitre
  0 siblings, 1 reply; 10+ messages in thread
From: Fengguang Wu @ 2016-10-05 23:57 UTC (permalink / raw)
  To: Nicolas Pitre; +Cc: kbuild-all, linux-kernel, Michal Simek

On Tue, Oct 04, 2016 at 09:08:27AM -0400, Nicolas Pitre wrote:
>On Tue, 4 Oct 2016, Fengguang Wu wrote:
>
>> CC Michal. It looks like a microblaze specific error. I'll blacklist
>> this old error on microblaze if there are no good solutions.
>
>It doesn't exhibit any build error on my end.  Which is why I suggested
>that you verify the integrity of your toolchain on your end.

OK, let me try upgrade the debian package first.
What's your toolchain version?

Thanks,
Fengguang

>> On Fri, Sep 23, 2016 at 05:11:32PM -0400, Nicolas Pitre wrote:
>> >On Thu, 22 Sep 2016, kbuild test robot wrote:
>> >
>> > > Hi Nicolas,
>> > >
>> > > FYI, the error/warning still remains.
>> > >
>> > > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>> > > master
>> > > head:   7d1e042314619115153a0f6f06e4552c09a50e13
>> > > commit: 461a5e51060c93f5844113f4be9dba513cc92830 do_div(): generic
>> > > optimization for constant divisor on 32-bit machines
>> > > date:   10 months ago
>> > > config: microblaze-mmu_defconfig (attached as .config)
>> > > compiler: microblaze-linux-gcc (GCC) 6.2.0
>> > > reproduce:
>> > >         wget
>> > >         https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
>> > >         -O ~/bin/make.cross
>> > >         chmod +x ~/bin/make.cross
>> > >         git checkout 461a5e51060c93f5844113f4be9dba513cc92830
>> > >         # save the attached .config to linux build tree
>> > >         make.cross ARCH=microblaze
>> > >
>> > > All errors (new ones prefixed by >>):
>> > >
>> > >    net/built-in.o: In function `rpc_print_iostats':
>> > > > > net/sunrpc/stats.c:204: undefined reference to `_GLOBAL_OFFSET_TABLE_'
>> > >    scripts/link-vmlinux.sh: line 52:  5714 Segmentation fault      ${LD}
>> > >    ${LDFLAGS} ${LDFLAGS_vmlinux} -o ${2} -T ${lds} ${KBUILD_VMLINUX_INIT}
>> > >    --start-group ${KBUILD_VMLINUX_MAIN} --end-group ${1}
>> >
>> >The problem must be at your end, especially if the toolchain exhibits
>> >segmentation faults.
>> >
>> >Following exactly the instructions above, I get:
>> >
>> >[...]
>> >  LD      vmlinux
>> >  SORTEX  vmlinux
>> >  SYSMAP  System.map
>> >  OBJCOPY arch/microblaze/boot/linux.bin
>> >  Building modules, stage 2.
>> >  MODPOST 3 modules
>> >  CC      crypto/drbg.mod.o
>> >  CC      crypto/echainiv.mod.o
>> >  CC      crypto/jitterentropy_rng.mod.o
>> >  LD [M]  crypto/jitterentropy_rng.ko
>> >  LD [M]  crypto/drbg.ko
>> >  LD [M]  crypto/echainiv.ko
>> >Kernel: arch/microblaze/boot/linux.bin is ready  (#1)
>> >
>> >
>> >Nicolas
>>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: net/sunrpc/stats.c:204: undefined reference to `_GLOBAL_OFFSET_TABLE_'
  2016-10-04  4:33   ` Fengguang Wu
@ 2016-10-04 13:08     ` Nicolas Pitre
  2016-10-05 23:57       ` Fengguang Wu
  0 siblings, 1 reply; 10+ messages in thread
From: Nicolas Pitre @ 2016-10-04 13:08 UTC (permalink / raw)
  To: Fengguang Wu; +Cc: kbuild-all, linux-kernel, Michal Simek

On Tue, 4 Oct 2016, Fengguang Wu wrote:

> CC Michal. It looks like a microblaze specific error. I'll blacklist
> this old error on microblaze if there are no good solutions.

It doesn't exhibit any build error on my end.  Which is why I suggested 
that you verify the integrity of your toolchain on your end.


> On Fri, Sep 23, 2016 at 05:11:32PM -0400, Nicolas Pitre wrote:
> >On Thu, 22 Sep 2016, kbuild test robot wrote:
> >
> > > Hi Nicolas,
> > >
> > > FYI, the error/warning still remains.
> > >
> > > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> > > master
> > > head:   7d1e042314619115153a0f6f06e4552c09a50e13
> > > commit: 461a5e51060c93f5844113f4be9dba513cc92830 do_div(): generic
> > > optimization for constant divisor on 32-bit machines
> > > date:   10 months ago
> > > config: microblaze-mmu_defconfig (attached as .config)
> > > compiler: microblaze-linux-gcc (GCC) 6.2.0
> > > reproduce:
> > >         wget
> > >         https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
> > >         -O ~/bin/make.cross
> > >         chmod +x ~/bin/make.cross
> > >         git checkout 461a5e51060c93f5844113f4be9dba513cc92830
> > >         # save the attached .config to linux build tree
> > >         make.cross ARCH=microblaze
> > >
> > > All errors (new ones prefixed by >>):
> > >
> > >    net/built-in.o: In function `rpc_print_iostats':
> > > > > net/sunrpc/stats.c:204: undefined reference to `_GLOBAL_OFFSET_TABLE_'
> > >    scripts/link-vmlinux.sh: line 52:  5714 Segmentation fault      ${LD}
> > >    ${LDFLAGS} ${LDFLAGS_vmlinux} -o ${2} -T ${lds} ${KBUILD_VMLINUX_INIT}
> > >    --start-group ${KBUILD_VMLINUX_MAIN} --end-group ${1}
> >
> >The problem must be at your end, especially if the toolchain exhibits
> >segmentation faults.
> >
> >Following exactly the instructions above, I get:
> >
> >[...]
> >  LD      vmlinux
> >  SORTEX  vmlinux
> >  SYSMAP  System.map
> >  OBJCOPY arch/microblaze/boot/linux.bin
> >  Building modules, stage 2.
> >  MODPOST 3 modules
> >  CC      crypto/drbg.mod.o
> >  CC      crypto/echainiv.mod.o
> >  CC      crypto/jitterentropy_rng.mod.o
> >  LD [M]  crypto/jitterentropy_rng.ko
> >  LD [M]  crypto/drbg.ko
> >  LD [M]  crypto/echainiv.ko
> >Kernel: arch/microblaze/boot/linux.bin is ready  (#1)
> >
> >
> >Nicolas
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: net/sunrpc/stats.c:204: undefined reference to `_GLOBAL_OFFSET_TABLE_'
  2016-09-23 21:11 ` Nicolas Pitre
@ 2016-10-04  4:33   ` Fengguang Wu
  2016-10-04 13:08     ` Nicolas Pitre
  0 siblings, 1 reply; 10+ messages in thread
From: Fengguang Wu @ 2016-10-04  4:33 UTC (permalink / raw)
  To: Nicolas Pitre; +Cc: kbuild-all, linux-kernel, Michal Simek

CC Michal. It looks like a microblaze specific error. I'll blacklist
this old error on microblaze if there are no good solutions.

Sorry for the noise!

On Fri, Sep 23, 2016 at 05:11:32PM -0400, Nicolas Pitre wrote:
>On Thu, 22 Sep 2016, kbuild test robot wrote:
>
>> Hi Nicolas,
>>
>> FYI, the error/warning still remains.
>>
>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>> head:   7d1e042314619115153a0f6f06e4552c09a50e13
>> commit: 461a5e51060c93f5844113f4be9dba513cc92830 do_div(): generic optimization for constant divisor on 32-bit machines
>> date:   10 months ago
>> config: microblaze-mmu_defconfig (attached as .config)
>> compiler: microblaze-linux-gcc (GCC) 6.2.0
>> reproduce:
>>         wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
>>         chmod +x ~/bin/make.cross
>>         git checkout 461a5e51060c93f5844113f4be9dba513cc92830
>>         # save the attached .config to linux build tree
>>         make.cross ARCH=microblaze
>>
>> All errors (new ones prefixed by >>):
>>
>>    net/built-in.o: In function `rpc_print_iostats':
>> >> net/sunrpc/stats.c:204: undefined reference to `_GLOBAL_OFFSET_TABLE_'
>>    scripts/link-vmlinux.sh: line 52:  5714 Segmentation fault      ${LD} ${LDFLAGS} ${LDFLAGS_vmlinux} -o ${2} -T ${lds} ${KBUILD_VMLINUX_INIT} --start-group ${KBUILD_VMLINUX_MAIN} --end-group ${1}
>
>The problem must be at your end, especially if the toolchain exhibits
>segmentation faults.
>
>Following exactly the instructions above, I get:
>
>[...]
>  LD      vmlinux
>  SORTEX  vmlinux
>  SYSMAP  System.map
>  OBJCOPY arch/microblaze/boot/linux.bin
>  Building modules, stage 2.
>  MODPOST 3 modules
>  CC      crypto/drbg.mod.o
>  CC      crypto/echainiv.mod.o
>  CC      crypto/jitterentropy_rng.mod.o
>  LD [M]  crypto/jitterentropy_rng.ko
>  LD [M]  crypto/drbg.ko
>  LD [M]  crypto/echainiv.ko
>Kernel: arch/microblaze/boot/linux.bin is ready  (#1)
>
>
>Nicolas

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: net/sunrpc/stats.c:204: undefined reference to `_GLOBAL_OFFSET_TABLE_'
  2016-10-01 23:44 kbuild test robot
@ 2016-10-04  4:06 ` Nicolas Pitre
  0 siblings, 0 replies; 10+ messages in thread
From: Nicolas Pitre @ 2016-10-04  4:06 UTC (permalink / raw)
  To: kbuild test robot; +Cc: kbuild-all, linux-kernel


As I stated before, I can't reproduce this.
Please check your toolchain. It apparently throws segmentation faults.

On Sun, 2 Oct 2016, kbuild test robot wrote:

> Hi Nicolas,
> 
> FYI, the error/warning still remains.
> 
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   f51fdffad5b7709d0ade40736b58a2da2707fa15
> commit: 461a5e51060c93f5844113f4be9dba513cc92830 do_div(): generic optimization for constant divisor on 32-bit machines
> date:   11 months ago
> config: microblaze-mmu_defconfig (attached as .config)
> compiler: microblaze-linux-gcc (GCC) 6.2.0
> reproduce:
>         wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         git checkout 461a5e51060c93f5844113f4be9dba513cc92830
>         # save the attached .config to linux build tree
>         make.cross ARCH=microblaze 
> 
> All errors (new ones prefixed by >>):
> 
>    net/built-in.o: In function `rpc_print_iostats':
> >> net/sunrpc/stats.c:204: undefined reference to `_GLOBAL_OFFSET_TABLE_'
>    scripts/link-vmlinux.sh: line 52: 107322 Segmentation fault      ${LD} ${LDFLAGS} ${LDFLAGS_vmlinux} -o ${2} -T ${lds} ${KBUILD_VMLINUX_INIT} --start-group ${KBUILD_VMLINUX_MAIN} --end-group ${1}
> 
> vim +204 net/sunrpc/stats.c
> 
> 840210fc Weston Andros Adamson 2014-06-24  188  				  &stats[task->tk_msg.rpc_proc->p_statidx]);
> 840210fc Weston Andros Adamson 2014-06-24  189  }
> 0a702195 Weston Andros Adamson 2012-02-17  190  EXPORT_SYMBOL_GPL(rpc_count_iostats);
> 11c556b3 Chuck Lever           2006-03-20  191  
> ec535ce1 Adrian Bunk           2006-04-18  192  static void _print_name(struct seq_file *seq, unsigned int op,
> ec535ce1 Adrian Bunk           2006-04-18  193  			struct rpc_procinfo *procs)
> cc0175c1 Chuck Lever           2006-03-20  194  {
> cc0175c1 Chuck Lever           2006-03-20  195  	if (procs[op].p_name)
> cc0175c1 Chuck Lever           2006-03-20  196  		seq_printf(seq, "\t%12s: ", procs[op].p_name);
> cc0175c1 Chuck Lever           2006-03-20  197  	else if (op == 0)
> cc0175c1 Chuck Lever           2006-03-20  198  		seq_printf(seq, "\t        NULL: ");
> cc0175c1 Chuck Lever           2006-03-20  199  	else
> cc0175c1 Chuck Lever           2006-03-20  200  		seq_printf(seq, "\t%12u: ", op);
> cc0175c1 Chuck Lever           2006-03-20  201  }
> cc0175c1 Chuck Lever           2006-03-20  202  
> 11c556b3 Chuck Lever           2006-03-20  203  void rpc_print_iostats(struct seq_file *seq, struct rpc_clnt *clnt)
> 11c556b3 Chuck Lever           2006-03-20 @204  {
> 11c556b3 Chuck Lever           2006-03-20  205  	struct rpc_iostats *stats = clnt->cl_metrics;
> 2446ab60 Trond Myklebust       2012-03-01  206  	struct rpc_xprt *xprt;
> 11c556b3 Chuck Lever           2006-03-20  207  	unsigned int op, maxproc = clnt->cl_maxproc;
> 11c556b3 Chuck Lever           2006-03-20  208  
> 11c556b3 Chuck Lever           2006-03-20  209  	if (!stats)
> 11c556b3 Chuck Lever           2006-03-20  210  		return;
> 11c556b3 Chuck Lever           2006-03-20  211  
> 11c556b3 Chuck Lever           2006-03-20  212  	seq_printf(seq, "\tRPC iostats version: %s  ", RPC_IOSTATS_VERS);
> 
> :::::: The code at line 204 was first introduced by commit
> :::::: 11c556b3d8d481829ab5f9933a25d29b00913b5a SUNRPC: provide a mechanism for collecting stats in the RPC client
> 
> :::::: TO: Chuck Lever <cel@netapp.com>
> :::::: CC: Trond Myklebust <Trond.Myklebust@netapp.com>
> 
> ---
> 0-DAY kernel test infrastructure                Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* net/sunrpc/stats.c:204: undefined reference to `_GLOBAL_OFFSET_TABLE_'
@ 2016-10-01 23:44 kbuild test robot
  2016-10-04  4:06 ` Nicolas Pitre
  0 siblings, 1 reply; 10+ messages in thread
From: kbuild test robot @ 2016-10-01 23:44 UTC (permalink / raw)
  To: Nicolas Pitre; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 3407 bytes --]

Hi Nicolas,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f51fdffad5b7709d0ade40736b58a2da2707fa15
commit: 461a5e51060c93f5844113f4be9dba513cc92830 do_div(): generic optimization for constant divisor on 32-bit machines
date:   11 months ago
config: microblaze-mmu_defconfig (attached as .config)
compiler: microblaze-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 461a5e51060c93f5844113f4be9dba513cc92830
        # save the attached .config to linux build tree
        make.cross ARCH=microblaze 

All errors (new ones prefixed by >>):

   net/built-in.o: In function `rpc_print_iostats':
>> net/sunrpc/stats.c:204: undefined reference to `_GLOBAL_OFFSET_TABLE_'
   scripts/link-vmlinux.sh: line 52: 107322 Segmentation fault      ${LD} ${LDFLAGS} ${LDFLAGS_vmlinux} -o ${2} -T ${lds} ${KBUILD_VMLINUX_INIT} --start-group ${KBUILD_VMLINUX_MAIN} --end-group ${1}

vim +204 net/sunrpc/stats.c

840210fc Weston Andros Adamson 2014-06-24  188  				  &stats[task->tk_msg.rpc_proc->p_statidx]);
840210fc Weston Andros Adamson 2014-06-24  189  }
0a702195 Weston Andros Adamson 2012-02-17  190  EXPORT_SYMBOL_GPL(rpc_count_iostats);
11c556b3 Chuck Lever           2006-03-20  191  
ec535ce1 Adrian Bunk           2006-04-18  192  static void _print_name(struct seq_file *seq, unsigned int op,
ec535ce1 Adrian Bunk           2006-04-18  193  			struct rpc_procinfo *procs)
cc0175c1 Chuck Lever           2006-03-20  194  {
cc0175c1 Chuck Lever           2006-03-20  195  	if (procs[op].p_name)
cc0175c1 Chuck Lever           2006-03-20  196  		seq_printf(seq, "\t%12s: ", procs[op].p_name);
cc0175c1 Chuck Lever           2006-03-20  197  	else if (op == 0)
cc0175c1 Chuck Lever           2006-03-20  198  		seq_printf(seq, "\t        NULL: ");
cc0175c1 Chuck Lever           2006-03-20  199  	else
cc0175c1 Chuck Lever           2006-03-20  200  		seq_printf(seq, "\t%12u: ", op);
cc0175c1 Chuck Lever           2006-03-20  201  }
cc0175c1 Chuck Lever           2006-03-20  202  
11c556b3 Chuck Lever           2006-03-20  203  void rpc_print_iostats(struct seq_file *seq, struct rpc_clnt *clnt)
11c556b3 Chuck Lever           2006-03-20 @204  {
11c556b3 Chuck Lever           2006-03-20  205  	struct rpc_iostats *stats = clnt->cl_metrics;
2446ab60 Trond Myklebust       2012-03-01  206  	struct rpc_xprt *xprt;
11c556b3 Chuck Lever           2006-03-20  207  	unsigned int op, maxproc = clnt->cl_maxproc;
11c556b3 Chuck Lever           2006-03-20  208  
11c556b3 Chuck Lever           2006-03-20  209  	if (!stats)
11c556b3 Chuck Lever           2006-03-20  210  		return;
11c556b3 Chuck Lever           2006-03-20  211  
11c556b3 Chuck Lever           2006-03-20  212  	seq_printf(seq, "\tRPC iostats version: %s  ", RPC_IOSTATS_VERS);

:::::: The code at line 204 was first introduced by commit
:::::: 11c556b3d8d481829ab5f9933a25d29b00913b5a SUNRPC: provide a mechanism for collecting stats in the RPC client

:::::: TO: Chuck Lever <cel@netapp.com>
:::::: CC: Trond Myklebust <Trond.Myklebust@netapp.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 11783 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: net/sunrpc/stats.c:204: undefined reference to `_GLOBAL_OFFSET_TABLE_'
  2016-09-22  3:52 kbuild test robot
@ 2016-09-23 21:11 ` Nicolas Pitre
  2016-10-04  4:33   ` Fengguang Wu
  0 siblings, 1 reply; 10+ messages in thread
From: Nicolas Pitre @ 2016-09-23 21:11 UTC (permalink / raw)
  To: kbuild test robot; +Cc: kbuild-all, linux-kernel

On Thu, 22 Sep 2016, kbuild test robot wrote:

> Hi Nicolas,
> 
> FYI, the error/warning still remains.
> 
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   7d1e042314619115153a0f6f06e4552c09a50e13
> commit: 461a5e51060c93f5844113f4be9dba513cc92830 do_div(): generic optimization for constant divisor on 32-bit machines
> date:   10 months ago
> config: microblaze-mmu_defconfig (attached as .config)
> compiler: microblaze-linux-gcc (GCC) 6.2.0
> reproduce:
>         wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         git checkout 461a5e51060c93f5844113f4be9dba513cc92830
>         # save the attached .config to linux build tree
>         make.cross ARCH=microblaze 
> 
> All errors (new ones prefixed by >>):
> 
>    net/built-in.o: In function `rpc_print_iostats':
> >> net/sunrpc/stats.c:204: undefined reference to `_GLOBAL_OFFSET_TABLE_'
>    scripts/link-vmlinux.sh: line 52:  5714 Segmentation fault      ${LD} ${LDFLAGS} ${LDFLAGS_vmlinux} -o ${2} -T ${lds} ${KBUILD_VMLINUX_INIT} --start-group ${KBUILD_VMLINUX_MAIN} --end-group ${1}

The problem must be at your end, especially if the toolchain exhibits 
segmentation faults.

Following exactly the instructions above, I get:

[...]
  LD      vmlinux
  SORTEX  vmlinux
  SYSMAP  System.map
  OBJCOPY arch/microblaze/boot/linux.bin
  Building modules, stage 2.
  MODPOST 3 modules
  CC      crypto/drbg.mod.o
  CC      crypto/echainiv.mod.o
  CC      crypto/jitterentropy_rng.mod.o
  LD [M]  crypto/jitterentropy_rng.ko
  LD [M]  crypto/drbg.ko
  LD [M]  crypto/echainiv.ko
Kernel: arch/microblaze/boot/linux.bin is ready  (#1)


Nicolas

^ permalink raw reply	[flat|nested] 10+ messages in thread

* net/sunrpc/stats.c:204: undefined reference to `_GLOBAL_OFFSET_TABLE_'
@ 2016-09-22  3:52 kbuild test robot
  2016-09-23 21:11 ` Nicolas Pitre
  0 siblings, 1 reply; 10+ messages in thread
From: kbuild test robot @ 2016-09-22  3:52 UTC (permalink / raw)
  To: Nicolas Pitre; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 3406 bytes --]

Hi Nicolas,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7d1e042314619115153a0f6f06e4552c09a50e13
commit: 461a5e51060c93f5844113f4be9dba513cc92830 do_div(): generic optimization for constant divisor on 32-bit machines
date:   10 months ago
config: microblaze-mmu_defconfig (attached as .config)
compiler: microblaze-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 461a5e51060c93f5844113f4be9dba513cc92830
        # save the attached .config to linux build tree
        make.cross ARCH=microblaze 

All errors (new ones prefixed by >>):

   net/built-in.o: In function `rpc_print_iostats':
>> net/sunrpc/stats.c:204: undefined reference to `_GLOBAL_OFFSET_TABLE_'
   scripts/link-vmlinux.sh: line 52:  5714 Segmentation fault      ${LD} ${LDFLAGS} ${LDFLAGS_vmlinux} -o ${2} -T ${lds} ${KBUILD_VMLINUX_INIT} --start-group ${KBUILD_VMLINUX_MAIN} --end-group ${1}

vim +204 net/sunrpc/stats.c

840210fc Weston Andros Adamson 2014-06-24  188  				  &stats[task->tk_msg.rpc_proc->p_statidx]);
840210fc Weston Andros Adamson 2014-06-24  189  }
0a702195 Weston Andros Adamson 2012-02-17  190  EXPORT_SYMBOL_GPL(rpc_count_iostats);
11c556b3 Chuck Lever           2006-03-20  191  
ec535ce1 Adrian Bunk           2006-04-18  192  static void _print_name(struct seq_file *seq, unsigned int op,
ec535ce1 Adrian Bunk           2006-04-18  193  			struct rpc_procinfo *procs)
cc0175c1 Chuck Lever           2006-03-20  194  {
cc0175c1 Chuck Lever           2006-03-20  195  	if (procs[op].p_name)
cc0175c1 Chuck Lever           2006-03-20  196  		seq_printf(seq, "\t%12s: ", procs[op].p_name);
cc0175c1 Chuck Lever           2006-03-20  197  	else if (op == 0)
cc0175c1 Chuck Lever           2006-03-20  198  		seq_printf(seq, "\t        NULL: ");
cc0175c1 Chuck Lever           2006-03-20  199  	else
cc0175c1 Chuck Lever           2006-03-20  200  		seq_printf(seq, "\t%12u: ", op);
cc0175c1 Chuck Lever           2006-03-20  201  }
cc0175c1 Chuck Lever           2006-03-20  202  
11c556b3 Chuck Lever           2006-03-20  203  void rpc_print_iostats(struct seq_file *seq, struct rpc_clnt *clnt)
11c556b3 Chuck Lever           2006-03-20 @204  {
11c556b3 Chuck Lever           2006-03-20  205  	struct rpc_iostats *stats = clnt->cl_metrics;
2446ab60 Trond Myklebust       2012-03-01  206  	struct rpc_xprt *xprt;
11c556b3 Chuck Lever           2006-03-20  207  	unsigned int op, maxproc = clnt->cl_maxproc;
11c556b3 Chuck Lever           2006-03-20  208  
11c556b3 Chuck Lever           2006-03-20  209  	if (!stats)
11c556b3 Chuck Lever           2006-03-20  210  		return;
11c556b3 Chuck Lever           2006-03-20  211  
11c556b3 Chuck Lever           2006-03-20  212  	seq_printf(seq, "\tRPC iostats version: %s  ", RPC_IOSTATS_VERS);

:::::: The code at line 204 was first introduced by commit
:::::: 11c556b3d8d481829ab5f9933a25d29b00913b5a SUNRPC: provide a mechanism for collecting stats in the RPC client

:::::: TO: Chuck Lever <cel@netapp.com>
:::::: CC: Trond Myklebust <Trond.Myklebust@netapp.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 11783 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-10-06 11:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-16 11:57 net/sunrpc/stats.c:204: undefined reference to `_GLOBAL_OFFSET_TABLE_' kbuild test robot
2016-09-22  3:52 kbuild test robot
2016-09-23 21:11 ` Nicolas Pitre
2016-10-04  4:33   ` Fengguang Wu
2016-10-04 13:08     ` Nicolas Pitre
2016-10-05 23:57       ` Fengguang Wu
2016-10-06  2:43         ` Nicolas Pitre
2016-10-06 11:27           ` Fengguang Wu
2016-10-01 23:44 kbuild test robot
2016-10-04  4:06 ` Nicolas Pitre

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).