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


Groups > linux.kernel > #1715777 > unrolled thread

undefined reference to `_GLOBAL_OFFSET_TABLE_'

Started bykbuild test robot <fengguang.wu@intel.com>
First post2017-08-20 02:40 +0200
Last post2017-08-22 14:20 +0200
Articles 5 — 4 participants

Back to article view | Back to linux.kernel


Contents

  undefined reference to `_GLOBAL_OFFSET_TABLE_' kbuild test robot <fengguang.wu@intel.com> - 2017-08-20 02:40 +0200
    Re: undefined reference to `_GLOBAL_OFFSET_TABLE_' Nicholas Piggin <npiggin@gmail.com> - 2017-08-20 05:40 +0200
      Re: undefined reference to `_GLOBAL_OFFSET_TABLE_' Fengguang Wu <fengguang.wu@intel.com> - 2017-08-22 04:10 +0200
      Re: undefined reference to `_GLOBAL_OFFSET_TABLE_' Michal Simek <monstr@monstr.eu> - 2017-08-22 11:20 +0200
        Re: undefined reference to `_GLOBAL_OFFSET_TABLE_' Nicholas Piggin <npiggin@gmail.com> - 2017-08-22 14:20 +0200

#1715777 — undefined reference to `_GLOBAL_OFFSET_TABLE_'

Fromkbuild test robot <fengguang.wu@intel.com>
Date2017-08-20 02:40 +0200
Subjectundefined reference to `_GLOBAL_OFFSET_TABLE_'
Message-ID<ugmrw-8bD-13@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hi Nicholas,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   58d4e450a490d5f02183f6834c12550ba26d3b47
commit: 799c43415442414b1032580c47684cb709dfed6d kbuild: thin archives make default for all archs
date:   7 weeks ago
config: microblaze-allnoconfig (attached as .config)
compiler: microblaze-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 799c43415442414b1032580c47684cb709dfed6d
        # save the attached .config to linux build tree
        make.cross ARCH=microblaze 

All errors (new ones prefixed by >>):

   mm/slub.o: In function `__slab_free.isra.13':
>> (.text+0x1038): undefined reference to `_GLOBAL_OFFSET_TABLE_'
   scripts/link-vmlinux.sh: line 93: 48917 Segmentation fault      ${LD} ${LDFLAGS} ${LDFLAGS_vmlinux} -o ${2} -T ${lds} ${objects}

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

[toc] | [next] | [standalone]


#1715859

FromNicholas Piggin <npiggin@gmail.com>
Date2017-08-20 05:40 +0200
Message-ID<ugpfH-1zt-1@gated-at.bofh.it>
In reply to#1715777
On Sun, 20 Aug 2017 08:37:36 +0800
kbuild test robot <fengguang.wu@intel.com> wrote:

> Hi Nicholas,
> 
> FYI, the error/warning still remains.

Still same answer as before, i.e., it seems to be this toolchain bug:

https://sourceware.org/bugzilla/show_bug.cgi?id=21017

I've had no response from the microblaze maintainer, so please stop
generating this warning now. If we get a bug report from a user who
actually cares and will test toolchain fixes then we can easily work
with them.

Many thanks for the very good service this build system provides!

Thanks,
Nick

> 
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   58d4e450a490d5f02183f6834c12550ba26d3b47
> commit: 799c43415442414b1032580c47684cb709dfed6d kbuild: thin archives make default for all archs
> date:   7 weeks ago
> config: microblaze-allnoconfig (attached as .config)
> compiler: microblaze-linux-gcc (GCC) 6.2.0
> reproduce:
>         wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         git checkout 799c43415442414b1032580c47684cb709dfed6d
>         # save the attached .config to linux build tree
>         make.cross ARCH=microblaze 
> 
> All errors (new ones prefixed by >>):
> 
>    mm/slub.o: In function `__slab_free.isra.13':
> >> (.text+0x1038): undefined reference to `_GLOBAL_OFFSET_TABLE_'  
>    scripts/link-vmlinux.sh: line 93: 48917 Segmentation fault      ${LD} ${LDFLAGS} ${LDFLAGS_vmlinux} -o ${2} -T ${lds} ${objects}
> 
> ---
> 0-DAY kernel test infrastructure                Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[toc] | [prev] | [next] | [standalone]


#1716972

FromFengguang Wu <fengguang.wu@intel.com>
Date2017-08-22 04:10 +0200
Message-ID<uh6NH-486-1@gated-at.bofh.it>
In reply to#1715859
Hi Nick,

On Sun, Aug 20, 2017 at 01:36:37PM +1000, Nicholas Piggin wrote:
>On Sun, 20 Aug 2017 08:37:36 +0800
>kbuild test robot <fengguang.wu@intel.com> wrote:
>
>> Hi Nicholas,
>>
>> FYI, the error/warning still remains.
>
>Still same answer as before, i.e., it seems to be this toolchain bug:
>
>https://sourceware.org/bugzilla/show_bug.cgi?id=21017
>
>I've had no response from the microblaze maintainer, so please stop
>generating this warning now. If we get a bug report from a user who
>actually cares and will test toolchain fixes then we can easily work
>with them.

OK. I'll ignore this error for now. Sorry for the noise!

>Many thanks for the very good service this build system provides!

You are welcome. :)

Thanks,
Fengguang

>>
>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>> head:   58d4e450a490d5f02183f6834c12550ba26d3b47
>> commit: 799c43415442414b1032580c47684cb709dfed6d kbuild: thin archives make default for all archs
>> date:   7 weeks ago
>> config: microblaze-allnoconfig (attached as .config)
>> compiler: microblaze-linux-gcc (GCC) 6.2.0
>> reproduce:
>>         wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>>         chmod +x ~/bin/make.cross
>>         git checkout 799c43415442414b1032580c47684cb709dfed6d
>>         # save the attached .config to linux build tree
>>         make.cross ARCH=microblaze
>>
>> All errors (new ones prefixed by >>):
>>
>>    mm/slub.o: In function `__slab_free.isra.13':
>> >> (.text+0x1038): undefined reference to `_GLOBAL_OFFSET_TABLE_'
>>    scripts/link-vmlinux.sh: line 93: 48917 Segmentation fault      ${LD} ${LDFLAGS} ${LDFLAGS_vmlinux} -o ${2} -T ${lds} ${objects}
>>
>> ---
>> 0-DAY kernel test infrastructure                Open Source Technology Center
>> https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[toc] | [prev] | [next] | [standalone]


#1717210

FromMichal Simek <monstr@monstr.eu>
Date2017-08-22 11:20 +0200
Message-ID<uhdvP-jp-1@gated-at.bofh.it>
In reply to#1715859

[Multipart message — attachments visible in raw view] — view raw

On 20.8.2017 05:36, Nicholas Piggin wrote:
> On Sun, 20 Aug 2017 08:37:36 +0800
> kbuild test robot <fengguang.wu@intel.com> wrote:
> 
>> Hi Nicholas,
>>
>> FYI, the error/warning still remains.
> 
> Still same answer as before, i.e., it seems to be this toolchain bug:
> 
> https://sourceware.org/bugzilla/show_bug.cgi?id=21017
> 
> I've had no response from the microblaze maintainer, so please stop
> generating this warning now. If we get a bug report from a user who
> actually cares and will test toolchain fixes then we can easily work
> with them.
> 
> Many thanks for the very good service this build system provides!

Can you please point me to the log?

Thanks,
Michal

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP SoCs


[toc] | [prev] | [next] | [standalone]


#1717354

FromNicholas Piggin <npiggin@gmail.com>
Date2017-08-22 14:20 +0200
Message-ID<uhgk1-2fN-7@gated-at.bofh.it>
In reply to#1717210
On Tue, 22 Aug 2017 11:19:02 +0200
Michal Simek <monstr@monstr.eu> wrote:

> On 20.8.2017 05:36, Nicholas Piggin wrote:
> > On Sun, 20 Aug 2017 08:37:36 +0800
> > kbuild test robot <fengguang.wu@intel.com> wrote:
> >   
> >> Hi Nicholas,
> >>
> >> FYI, the error/warning still remains.  
> > 
> > Still same answer as before, i.e., it seems to be this toolchain bug:
> > 
> > https://sourceware.org/bugzilla/show_bug.cgi?id=21017
> > 
> > I've had no response from the microblaze maintainer, so please stop
> > generating this warning now. If we get a bug report from a user who
> > actually cares and will test toolchain fixes then we can easily work
> > with them.
> > 
> > Many thanks for the very good service this build system provides!  
> 
> Can you please point me to the log?

Hmm, don't know if they keep a full log, but the error is

   mm/slub.o: In function `__slab_free.isra.13':
>> (.text+0x1038): undefined reference to `_GLOBAL_OFFSET_TABLE_'  
   scripts/link-vmlinux.sh: line 93: 48917 Segmentation fault      ${LD} ${LDFLAGS} ${LDFLAGS_vmlinux} -o ${2} -T ${lds} ${objects}

I suspect the change to thin archives, allowed the linker more
flexibility to satisfy all relocations with GOT relative. And
that would cause the bug.

If you could verify that the upstream kernel build succeeds with
an upstream binutils using allnoconfig, then we could see about
updating the kbuild test robot's toolchain.

Thanks,
Nick

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web