[U-Boot] which toolchain version for Microblaze

Hi Michal, Hi David
which version of binutils and gcc you are currently using for embedded Linux development? Just now I've played a little bit with the new one I've found in the Xilinx git repository on:
git://git.xilinx.com/microblaze-gnu.git
Unfortunately both the binaries and the sources seems to be buggy. When I try to compile U-Boot with it the final linker stage runs into a SIGSEGV -- here is the (reduced) output:
UNDEF_SYM=`microblaze-unknown-linux-gnu-objdump -x board/xilinx/microblaze-generic/libmicroblaze-generic.o api/libapi.o arch/microblaze/cpu/libmicroblaze.o arch/microblaze/lib/libmicroblaze.o **/*.o | sed -n -e 's/.*(__u_boot_cmd_.*)/-u\1/p'|sort|uniq`; cd /store/devel/MICROBLAZE/u-boot-mbref && microblaze-unknown-linux-gnu-ld.bfd -T u-boot.lds -Bstatic -Ttext 0x29000000 $UNDEF_SYM arch/microblaze/cpu/start.o --start-group api/libapi.o arch/microblaze/cpu/libmicroblaze.o arch/microblaze/lib/libmicroblaze.o **/*.o board/xilinx/microblaze-generic/libmicroblaze-generic.o --end-group -L /opt/tools-4.6.2-mb-xilinx-v3.0/microblaze-unknown-linux-gnu/bin/../lib/gcc/microblaze-unknown-linux-gnu/4.6.2 -lgcc -Map u-boot.map -o u-boot
/opt/tools-4.6.2-mb-xilinx-v3.0/microblaze-unknown-linux-gnu/bin/../lib/gcc/microblaze-unknown-linux-gnu/4.6.2/libgcc.a(_muldi3.o): In function `__muldi3': /home/buildbot/plgx_bld/xils005/2012_06_30/toolchains/lin32-microblaze-xilinx-linux-gnu/crosstool-ng/targets/src/gcc-4.6.2/libgcc/../gcc/libgcc2.c:549: undefined reference to `_GLOBAL_OFFSET_TABLE_' /bin/sh: line 1: 17792 Segmentation fault
@David: This error can be reproduced with the binaries in Xilinx git repo. Have you any idea?
@Michal: which version did you use currently?
@all: Is there anybody who can give me a hint how I can / should handle this error?
br, Stephan

Hi Stephan,
2012/10/12 Stephan Linz linz@li-pro.net:
Hi Michal, Hi David
which version of binutils and gcc you are currently using for embedded Linux development? Just now I've played a little bit with the new one I've found in the Xilinx git repository on:
git://git.xilinx.com/microblaze-gnu.git
Unfortunately both the binaries and the sources seems to be buggy. When I try to compile U-Boot with it the final linker stage runs into a SIGSEGV -- here is the (reduced) output:
UNDEF_SYM=`microblaze-unknown-linux-gnu-objdump -x board/xilinx/microblaze-generic/libmicroblaze-generic.o api/libapi.o arch/microblaze/cpu/libmicroblaze.o arch/microblaze/lib/libmicroblaze.o **/*.o | sed -n -e 's/.*(__u_boot_cmd_.*)/-u\1/p'|sort|uniq`; cd /store/devel/MICROBLAZE/u-boot-mbref && microblaze-unknown-linux-gnu-ld.bfd -T u-boot.lds -Bstatic -Ttext 0x29000000 $UNDEF_SYM arch/microblaze/cpu/start.o --start-group api/libapi.o arch/microblaze/cpu/libmicroblaze.o arch/microblaze/lib/libmicroblaze.o **/*.o board/xilinx/microblaze-generic/libmicroblaze-generic.o --end-group -L /opt/tools-4.6.2-mb-xilinx-v3.0/microblaze-unknown-linux-gnu/bin/../lib/gcc/microblaze-unknown-linux-gnu/4.6.2 -lgcc -Map u-boot.map -o u-boot
/opt/tools-4.6.2-mb-xilinx-v3.0/microblaze-unknown-linux-gnu/bin/../lib/gcc/microblaze-unknown-linux-gnu/4.6.2/libgcc.a(_muldi3.o): In function `__muldi3': /home/buildbot/plgx_bld/xils005/2012_06_30/toolchains/lin32-microblaze-xilinx-linux-gnu/crosstool-ng/targets/src/gcc-4.6.2/libgcc/../gcc/libgcc2.c:549: undefined reference to `_GLOBAL_OFFSET_TABLE_' /bin/sh: line 1: 17792 Segmentation fault
This is bug in the toolchain if you hw has this setup BS=1, MUL=0, DIV=0 and maybe others combination with MUL=0 setup.
We are working on fixing it.
Thanks, Michal
participants (2)
-
Michal Simek
-
Stephan Linz