Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1490465

Re: net/sunrpc/stats.c:204: undefined reference to `_GLOBAL_OFFSET_TABLE_'

From Nicolas Pitre <nicolas.pitre@linaro.org>
Newsgroups linux.kernel
Subject Re: net/sunrpc/stats.c:204: undefined reference to `_GLOBAL_OFFSET_TABLE_'
Date 2016-09-23 23:20 +0200
Message-ID <skG30-yx-29@gated-at.bofh.it> (permalink)
References <sk3l0-17N-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

net/sunrpc/stats.c:204: undefined reference to  `_GLOBAL_OFFSET_TABLE_' kbuild test robot <fengguang.wu@intel.com> - 2016-09-22 06:00 +0200
  Re: net/sunrpc/stats.c:204: undefined reference to  `_GLOBAL_OFFSET_TABLE_' Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-09-23 23:20 +0200
    Re: net/sunrpc/stats.c:204: undefined reference to  `_GLOBAL_OFFSET_TABLE_' Fengguang Wu <fengguang.wu@intel.com> - 2016-10-04 06:40 +0200
      Re: net/sunrpc/stats.c:204: undefined reference to  `_GLOBAL_OFFSET_TABLE_' Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-10-04 15:20 +0200
        Re: net/sunrpc/stats.c:204: undefined reference to  `_GLOBAL_OFFSET_TABLE_' Fengguang Wu <fengguang.wu@intel.com> - 2016-10-06 02:10 +0200
          Re: net/sunrpc/stats.c:204: undefined reference to  `_GLOBAL_OFFSET_TABLE_' Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-10-06 04:50 +0200
            Re: net/sunrpc/stats.c:204: undefined reference to  `_GLOBAL_OFFSET_TABLE_' Fengguang Wu <fengguang.wu@intel.com> - 2016-10-06 13:30 +0200

csiph-web