[U-Boot] u-boot-2010.03 build errors with USE_PRIVATE_LIBGCC=yes option

Vipin KUMAR
2010-07-15T09:08:24Z

On 7/15/2010 2:34 PM, Fabio Giovagnini wrote:
> Ciao Vipin,
Ciao Again,

> ok, so the only way is to select the source file containing the fuction from
> libgcc and include at source level into your source u-boot tree.
> I did the same but I started from the lib dir of linux kernel
>

Hmmm, I was just avoiding it thinking that maybe someone somewhere would have
already done that. May be that patch can also be sent to the community

Regards
Vipin
> Regards
>
>
>
> In data gioved? 15 luglio 2010 10:59:52, Vipin KUMAR ha scritto:
> : > Ciao Fabio,
>>
>> On 7/15/2010 1:45 PM, Fabio Giovagnini wrote:
>>> I had a similar problem with sh2a 7203 based board and gcc version 4.4.1
>>> (Sourcery G++ Lite 4.4-206)
>>> Verify if the undefined symbols are of libgcc.
>>
>> They must be, because I can compile the source without
>> USE_PRIVATE_LIBGCC=yes option But due to a few constraints, I have to
>> compile the code with USE_PRIVATE_LIBGCC=yes option enabled
>>
>> Regards
>> Vipin
>>
>>> Regards
>>>
>>> In data gioved? 15 luglio 2010 09:01:43, Vipin KUMAR ha scritto:
>>> : > Hello,
>>>>
>>>> While building uboot-2010.03 for any arm board, with
>>>> USE_PRIVATE_LIBGCC=yes is throwing the following errors.
>>>>
>>>> Any help would be appriciated
>>>>
>>>> net/libnet.a(net.o): In function `ip_to_string':
>>>> /data/csd_sw/spear/drives_os/vipink/spear/uboot/u-boot/net/net.c:1886:
>>>> undefined reference to `__bswapsi2' net/libnet.a(nfs.o): In function
>>>> `__fswab32':
>>>> /data/csd_sw/spear/drives_os/vipink/spear/uboot/u-boot/include/linux/byt
>>>> eor der/swab.h:113: undefined reference to `__bswapsi2'
>>>> net/libnet.a(bootp.o): In function `__fswab32':
>>>> /data/csd_sw/spear/drives_os/vipink/spear/uboot/u-boot/include/linux/byt
>>>> eor der/swab.h:113: undefined reference to `__bswapsi2'
>>>> common/libcommon.a(cmd_bootm.o): In function `__fswab32':
>>>> /data/csd_sw/spear/drives_os/vipink/spear/uboot/u-boot/include/linux/byt
>>>> eor der/swab.h:113: undefined reference to `__bswapsi2'
>>>> common/libcommon.a(cmd_nand.o): In function `nand_load_image':
>>>> /data/csd_sw/spear/drives_os/vipink/spear/uboot/u-boot/common/cmd_nand.c
>>>> :54 2: undefined reference to `__bswapsi2'
>>>>
>>>> common/libcommon.a(cmd_nvedit.o):/data/csd_sw/spear/drives_os/vipink/spe
>>>> ar /uboot/u-boot/common/cmd_nvedit.c:369: more undefined references to
>>>> `__bswapsi2' follow lib/libgeneric.a(display_options.o): In function
>>>> `print_size':
>>>> /data/csd_sw/spear/drives_os/vipink/spear/uboot/u-boot/lib/display_optio
>>>> ns. c:66: undefined reference to `__aeabi_uldivmod'
>>>>
>>>> /data/csd_sw/spear/drives_os/vipink/spear/uboot/u-boot/lib/display_optio
>>>> ns .c:69: undefined reference to `__aeabi_uldivmod'
>>>>
>>>> /data/csd_sw/spear/drives_os/vipink/spear/uboot/u-boot/lib/display_optio
>>>> ns .c:70: undefined reference to `__aeabi_uldivmod'
>>>> lib/libgeneric.a(net_utils.o): In function `string_to_ip':
>>>> /data/csd_sw/spear/drives_os/vipink/spear/uboot/u-boot/lib/net_utils.c:4
>>>> 0: undefined reference to `__bswapsi2' make: *** [u-boot] Error 1
>>>>
>>>> Thanks in advance
>>>>
>>>> Regards
>>>> Vipin
>>>> _______________________________________________
>>>> U-Boot mailing list
>>>> U-Boot at lists.denx.de
>>>> http://lists.denx.de/mailman/listinfo/u-boot
>>
>