[U-Boot] [PATCH] mx5: Correct a warning in clock.c

Simon Glass sjg at chromium.org
Sun Nov 20 06:08:05 CET 2011


Hi Mike,

On Fri, Nov 18, 2011 at 11:53 AM, Mike Frysinger <vapier at gentoo.org> wrote:
> On Friday 18 November 2011 12:20:02 Stefano Babic wrote:
>> On 11/05/2011 03:25 PM, Simon Glass wrote:
>> > This corects the warning below, obtained with my gcc 4.6 compiler.
>> >
>> > arch/arm/cpu/armv7/mx5/libmx5.o: In function `decode_pll':
>> > arch/arm/cpu/armv7/mx5/clock.c:94: undefined reference to
>> > `__aeabi_uldivmod'
>> >
>> > I am not able to test this on MX5x hardware, but it does improve the
>> > MAKEALL output for me. You may already have a similar patch, but I cannot
>> > see it on the list.
>>
>> Sorry to check this late, but...
>>
>>
>> ...I have built with gcc 4.6.1, no warning at all:
>>
>> Configuring for mx53loco - Board: mx53loco, Options:
>> IMX_CONFIG=board/freescale/mx53loco/imximage.cfg
>>    text          data     bss     dec     hex filename
>>  191025          3976  218384  413385   64ec9 ./u-boot
>>
>> The same for all other MX5 boards - I do not see the issue you reported.
>
> are you using PRIVATE LIBGCC ?
> -mike
>

Yes, perhaps as a side-effect of the buildall script...

Since a recent ARM patch to support widen divide was rejected, I
assume that we should use do_div() in these cases?

armv7a-cros-linux-gnueabi-gcc -v && make clobber && make
mx53smd_config && make -s -j10 USE_PRIVATE_LIBGCC=y
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/armv7a-cros-linux-gnueabi/gcc-bin/4.6.0/armv7a-cros-linux-gnueabi-gcc.real
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/armv7a-cros-linux-gnueabi/4.6.x-google/lto-wrapper
Target: armv7a-cros-linux-gnueabi
Configured with:
/var/tmp/portage/cross-armv7a-cros-linux-gnueabi/gcc-4.6.0-r7/work/gcc-4.6.0/configure
--disable-multilib --prefix=/usr
--with-slibdir=/usr/lib/gcc/armv7a-cros-linux-gnueabi/4.6.0/gcc/armv7a-cros-linux-gnueabi/4.6.x-google
--libdir=/usr/lib/gcc/armv7a-cros-linux-gnueabi/4.6.0
--bindir=/usr/x86_64-pc-linux-gnu/armv7a-cros-linux-gnueabi/gcc-bin/4.6.0
--includedir=/usr/lib/gcc/armv7a-cros-linux-gnueabi/4.6.0/include
--datadir=/usr/share/gcc-data/armv7a-cros-linux-gnueabi/4.6.0
--mandir=/usr/share/gcc-data/armv7a-cros-linux-gnueabi/4.6.0/man
--infodir=/usr/share/gcc-data/armv7a-cros-linux-gnueabi/4.6.0/info
--enable-version-specific-runtime-libs
--with-gxx-include-dir=/usr/lib/gcc/armv7a-cros-linux-gnueabi/4.6.0/include/g++-v4.6.0
--host=x86_64-pc-linux-gnu --target=armv7a-cros-linux-gnueabi
--build=x86_64-pc-linux-gnu --enable-languages=c,c++ --with-mode=thumb
--with-sysroot=/usr/armv7a-cros-linux-gnueabi --disable-libmudflap
--disable-libssp --enable-libgomp --enable-__cxa_atexit
--enable-checking=release --disable-libquadmath --with-arch=armv7-a
--disable-esp --with-bugurl=http://code.google.com/p/chromium-os/issues/entry
--with-pkgversion=gcc-4.6.0_cos_gg_180104 --enable-linker-build-id
Thread model: posix
gcc version 4.6.x-google 20110718 (prerelease) (gcc-4.6.0_cos_gg_180104)
awk '(NF && $1 !~ /^#/) { print $1 ": " $1 "_config; $(MAKE)" }'
boards.cfg > .boards.depend
Configuring for mx53smd - Board: mx53smd, Options:
IMX_CONFIG=board/freescale/mx53smd/imximage.cfg
Generating include/generated/asm-offsets.h
/usr/x86_64-pc-linux-gnu/armv7a-cros-linux-gnueabi/binutils-bin/2.21/ld.bfd.real:
cannot find -lgcc
make: *** [u-boot] Error 1

Regards,
Simon


More information about the U-Boot mailing list