Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1490465 > unrolled thread
| Started by | Nicolas Pitre <nicolas.pitre@linaro.org> |
|---|---|
| First post | 2016-09-23 23:20 +0200 |
| Last post | 2016-10-06 13:30 +0200 |
| Articles | 6 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
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
| From | Nicolas Pitre <nicolas.pitre@linaro.org> |
|---|---|
| Date | 2016-09-23 23:20 +0200 |
| Subject | Re: net/sunrpc/stats.c:204: undefined reference to `_GLOBAL_OFFSET_TABLE_' |
| Message-ID | <skG30-yx-29@gated-at.bofh.it> |
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
[toc] | [next] | [standalone]
| From | Fengguang Wu <fengguang.wu@intel.com> |
|---|---|
| Date | 2016-10-04 06:40 +0200 |
| Message-ID | <sopGh-60G-1@gated-at.bofh.it> |
| In reply to | #1490465 |
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
[toc] | [prev] | [next] | [standalone]
| From | Nicolas Pitre <nicolas.pitre@linaro.org> |
|---|---|
| Date | 2016-10-04 15:20 +0200 |
| Message-ID | <soxNv-3co-23@gated-at.bofh.it> |
| In reply to | #1495194 |
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
>
[toc] | [prev] | [next] | [standalone]
| From | Fengguang Wu <fengguang.wu@intel.com> |
|---|---|
| Date | 2016-10-06 02:10 +0200 |
| Message-ID | <sp4q5-ON-9@gated-at.bofh.it> |
| In reply to | #1495424 |
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
>>
[toc] | [prev] | [next] | [standalone]
| From | Nicolas Pitre <nicolas.pitre@linaro.org> |
|---|---|
| Date | 2016-10-06 04:50 +0200 |
| Message-ID | <sp6UV-2mL-3@gated-at.bofh.it> |
| In reply to | #1496122 |
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
> > >
>
>
[toc] | [prev] | [next] | [standalone]
| From | Fengguang Wu <fengguang.wu@intel.com> |
|---|---|
| Date | 2016-10-06 13:30 +0200 |
| Message-ID | <spf29-7Uz-9@gated-at.bofh.it> |
| In reply to | #1496145 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web