public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] v2013.10 failed build with jffs2 cmd
@ 2013-10-22  2:15 Chris Ruehl
       [not found] ` <20131022060753.9F8EB380A62@gemini.denx.de>
  0 siblings, 1 reply; 5+ messages in thread
From: Chris Ruehl @ 2013-10-22  2:15 UTC (permalink / raw)
  To: u-boot

Dear List,

when I tried to build v2013.10 with the Option: CONFIG_CMD_JFFS2
using linao tool-chain 2013.09 (and earlier) I run into the well known problem

  uses VFP register arguments, u-boot does not

the u-boot.map shows this as source of the trouble -

/opt/armhf/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/libgcc.a(_aeabi_uldivmod.o)
                               fs/jffs2/libjffs2.o (__aeabi_uldivmod)
/opt/armhf/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/libgcc.a(_dvmd_lnx.o)
 
/opt/armhf/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/libgcc.a(_udivsi3.o) 
(__aeabi_idiv0)
/opt/armhf/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/libgcc.a(bpabi.o)
 
/opt/armhf/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/libgcc.a(_aeabi_uldivmod.o) 
(__gnu_uldivmod_helper)
/opt/armhf/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/libgcc.a(_divdi3.o)
 
/opt/armhf/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/libgcc.a(bpabi.o) 
(__divdi3)
/opt/armhf/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/libgcc.a(_udivdi3.o)
 
/opt/armhf/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/libgcc.a(bpabi.o) 
(__udivdi3)


any hints to solve this?


Chris

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] v2013.10 failed build with jffs2 cmd
       [not found] ` <20131022060753.9F8EB380A62@gemini.denx.de>
@ 2013-10-22  6:54   ` Chris Ruehl
  0 siblings, 0 replies; 5+ messages in thread
From: Chris Ruehl @ 2013-10-22  6:54 UTC (permalink / raw)
  To: u-boot

Hi Wolfgang,

On Tuesday, October 22, 2013 02:07 PM, Wolfgang Denk wrote:
> Dear Chris Ruehl,
>
> In message<5265DFD1.9000709@gtsys.com.hk>  you wrote:
>>
>> when I tried to build v2013.10 with the Option: CONFIG_CMD_JFFS2
>> using linao tool-chain 2013.09 (and earlier) I run into the well known problem
>>
>>    uses VFP register arguments, u-boot does not
>
> You failed to tell who is using VFP register arguments - it's your
> compiler's library, libgcc.
>

Yes, sure, the libgcc is the one trigger it, but if I compile the uboot w/o 
JFFS2 other functions of the libgcc are linked into the u-boot loader without 
trigger the problem. libcommon , libnand + libmmmc uses udivsi3 and others

see (u-boot.map link without jffs2):
Archive member included because of file (symbol)

/opt/armhf/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/libgcc.a(_udivsi3.o)
                               arch/arm/cpu/arm926ejs/mx27/libmx27.o (__aeabi_uidiv)
/opt/armhf/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/libgcc.a(_divsi3.o)
                               common/libcommon.o (__aeabi_idiv)
/opt/armhf/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/libgcc.a(_lshrdi3.o)
                               drivers/mtd/nand/libnand.o (__aeabi_llsr)
/opt/armhf/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/libgcc.a(_ashrdi3.o)
                               drivers/mtd/nand/libnand.o (__aeabi_lasr)
/opt/armhf/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/libgcc.a(_ashldi3.o)
                               drivers/mmc/libmmc.o (__aeabi_llsl)
/opt/armhf/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/libgcc.a(_dvmd_lnx.o)
 
/opt/armhf/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/libgcc.a(_udivsi3.o) 
(__aeabi_idiv0)


I think the root of the evil is
libgcc.a(_aeabi_uldivmod.o) (__gnu_uldivmod_helper)

regards
Chris

>> any hints to solve this?
>
> Fix your toolchain (i. e. make sure it also provides a libgcc usable
> with softfloat settings).
>
> If everything else fails, use "USE_PRIVATE_LIBGCC=y" on the make
> command line.
>
> Best regards,
>
> Wolfgang Denk
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] v2013.10 failed build with jffs2 cmd
@ 2013-10-22 12:13 Wolfgang Denk
  2013-10-23  0:36 ` Chris Ruehl
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2013-10-22 12:13 UTC (permalink / raw)
  To: u-boot

Dear Chris Ruehl,

I wrote:

> If everything else fails, use "USE_PRIVATE_LIBGCC=y" on the make
> command line.

I mean: use "USE_PRIVATE_LIBGCC=yes" on the make command line. 


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The human race is a race of cowards; and I am not  only  marching  in
that procession but carrying a banner.                   - Mark Twain

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] v2013.10 failed build with jffs2 cmd
  2013-10-22 12:13 Wolfgang Denk
@ 2013-10-23  0:36 ` Chris Ruehl
  2013-10-23  1:44   ` Chris Ruehl
  0 siblings, 1 reply; 5+ messages in thread
From: Chris Ruehl @ 2013-10-23  0:36 UTC (permalink / raw)
  To: u-boot

Hi Wolfgang,

On Tuesday, October 22, 2013 08:13 PM, Wolfgang Denk wrote:
> Dear Chris Ruehl,
>
> I wrote:
>
>> If everything else fails, use "USE_PRIVATE_LIBGCC=y" on the make
>> command line.
>
> I mean: use "USE_PRIVATE_LIBGCC=yes" on the make command line.

after I set this option the build failed for

/uboot.d/u-boot-git/arch/arm/lib/libgcc.o -Map u-boot.map -o u-boot
fs/jffs2/libjffs2.o: In function `jffs2_1pass_build_lists':
/opt/cross_build/uboot.d/u-boot-git/fs/jffs2/jffs2_1pass.c:1441: undefined 
reference to `__aeabi_uldivmod'

I mentioned this reference as "root of the evil" before :-)

Chris

>
>
> Best regards,
>
> Wolfgang Denk
>

-- 
GTSYS Limited RFID Technology
A01 24/F Gold King Industrial Bld
35-41 Tai Lin Pai Road, Kwai Chung, Hong Kong
Fax (852) 8167 4060 - Tel (852) 3598 9488

Disclaimer: http://www.gtsys.com.hk/email/classified.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] v2013.10 failed build with jffs2 cmd
  2013-10-23  0:36 ` Chris Ruehl
@ 2013-10-23  1:44   ` Chris Ruehl
  0 siblings, 0 replies; 5+ messages in thread
From: Chris Ruehl @ 2013-10-23  1:44 UTC (permalink / raw)
  To: u-boot

FYI

On Wednesday, October 23, 2013 08:36 AM, Chris Ruehl wrote:
> Hi Wolfgang,
>
> On Tuesday, October 22, 2013 08:13 PM, Wolfgang Denk wrote:
>> Dear Chris Ruehl,
>>
>> I wrote:
>>
>>> If everything else fails, use "USE_PRIVATE_LIBGCC=y" on the make
>>> command line.
>>
>> I mean: use "USE_PRIVATE_LIBGCC=yes" on the make command line.
>
> after I set this option the build failed for
>
> /uboot.d/u-boot-git/arch/arm/lib/libgcc.o -Map u-boot.map -o u-boot
> fs/jffs2/libjffs2.o: In function `jffs2_1pass_build_lists':
> /opt/cross_build/uboot.d/u-boot-git/fs/jffs2/jffs2_1pass.c:1441:
> undefined reference to `__aeabi_uldivmod'
>
> I mentioned this reference as "root of the evil" before :-)
>
> Chris
>
>>
>>
>> Best regards,
>>
>> Wolfgang Denk
>>
>

just to let you know, I open a thread on the linaro tool-chain mail list
for this problem.

Chris

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-10-23  1:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-22  2:15 [U-Boot] v2013.10 failed build with jffs2 cmd Chris Ruehl
     [not found] ` <20131022060753.9F8EB380A62@gemini.denx.de>
2013-10-22  6:54   ` Chris Ruehl
  -- strict thread matches above, loose matches on Subject: below --
2013-10-22 12:13 Wolfgang Denk
2013-10-23  0:36 ` Chris Ruehl
2013-10-23  1:44   ` Chris Ruehl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox