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

2010-07-15 Thread Vipin KUMAR
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/byteorder/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/byteorder/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/byteorder/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:542: 
undefined reference to `__bswapsi2'
common/libcommon.a(cmd_nvedit.o):/data/csd_sw/spear/drives_os/vipink/spear/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_options.c:66:
 undefined reference to `__aeabi_uldivmod'
/data/csd_sw/spear/drives_os/vipink/spear/uboot/u-boot/lib/display_options.c:69:
 undefined reference to `__aeabi_uldivmod'
/data/csd_sw/spear/drives_os/vipink/spear/uboot/u-boot/lib/display_options.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:40: 
undefined reference to `__bswapsi2'
make: *** [u-boot] Error 1

Thanks in advance

Regards
Vipin
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


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

2010-07-15 Thread Fabio Giovagnini
Ciao Vipin,
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

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@lists.denx.de
  http://lists.denx.de/mailman/listinfo/u-boot
 

-- 
Fabio Giovagnini

Aurion s.r.l.
P.I e C.F.
00885711200
skype: aurion.giovagnini
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919
www.aurion-tech.com
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


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

2010-07-15 Thread Vipin KUMAR
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@lists.denx.de
 http://lists.denx.de/mailman/listinfo/u-boot

 

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


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

2010-07-15 Thread Wolfgang Denk
Dear Vipin KUMAR,

In message 4c3ed008.1080...@st.com you wrote:

  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

Feel free to go on - we're looking forward to seeing your patch.

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: w...@denx.de
Your csh still thinks true is false. Write to your vendor  today  and
tell them that next year Configure ought to rm /bin/csh unless they
fix  their blasted shell. :-)
 - Larry Wall in Configure from the perl distribution
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


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

2010-07-15 Thread Fabio Giovagnini
Just for my info.
I did  USE_PRIVATE_LIBGCC=yes modifing directly the makfile.
Is iot possible to specify this in board dependent config file?

I'll send my patches as soon as i'll finish the porting on my boadl called 
mlcd7203

Regards


In data giovedì 15 luglio 2010 11:13:08, Wolfgang Denk ha scritto:
:  Dear Vipin KUMAR,
 
 In message 4c3ed008.1080...@st.com you wrote:
   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
 
 Feel free to go on - we're looking forward to seeing your patch.
 
 Best regards,
 
 Wolfgang Denk
 

-- 
Fabio Giovagnini

Aurion s.r.l.
P.I e C.F.
00885711200
skype: aurion.giovagnini
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919
www.aurion-tech.com
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


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

2010-07-15 Thread Wolfgang Denk
Dear Fabio Giovagnini,

In message 201007151151.58747.fabio.giovagn...@aurion-tech.com you wrote:

 I did  USE_PRIVATE_LIBGCC=yes modifing directly the makfile.
 Is iot possible to specify this in board dependent config file?

Why? Just pass it on the command line, or set it as envrionment
variable.

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: w...@denx.de
There are very few personal problems that cannot be solved through  a
suitable application of high explosives.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


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

2010-07-15 Thread Vipin KUMAR
On 7/15/2010 2:43 PM, Wolfgang Denk wrote:
 Dear Vipin KUMAR,
 
Dear Wolfgang,

 In message 4c3ed008.1080...@st.com you wrote:

 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
 
 Feel free to go on - we're looking forward to seeing your patch.
 

The problem why I was looking for this is that the tool-chain I am using only 
supports -mhard-float option and this toolchain is specifically meant for armv7 
(basically Cortex-A9 with FPU enabled).

Since this option -msoft-float is passed from arch/arm/cpu/config.mk, and it 
is common for all arm configurations. Is there a good way to pass -mhard-float..

Regards
Vipin

 Best regards,
 
 Wolfgang Denk
 

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


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

2010-07-15 Thread Wolfgang Denk
Dear Vipin KUMAR,

In message 4c3eecdb.7000...@st.com you wrote:

 Since this option -msoft-float is passed from arch/arm/cpu/config.mk, and it 
 is common for all arm configurations. Is there a good way to pass 
 -mhard-float..

Why would you want to do that? We don't use any FP code in U-Boot
anyway.

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: w...@denx.de
When you say I wrote a program that crashed  Windows,  people  just
stare  at you blankly and say Hey, I got those with the system, *for
free*.- Linus Torvalds in 3itc77$...@ninurta.fer.uni-lj.si
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


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

2010-07-15 Thread Dennis Ruffer
 -Original Message-
 From: u-boot-boun...@lists.denx.de [mailto:u-boot-
 boun...@lists.denx.de] On Behalf Of Wolfgang Denk
 Sent: Thursday, July 15, 2010 10:58 AM
 To: Vipin KUMAR
 Cc: u-boot@lists.denx.de; Shiraz HASHIM
 Subject: Re: [U-Boot] u-boot-2010.03 build errors with
 USE_PRIVATE_LIBGCC=yes option
 
 Dear Vipin KUMAR,
 
 In message 4c3eecdb.7000...@st.com you wrote:
 
  Since this option -msoft-float is passed from arch/arm/cpu/config.mk,
 and it
  is common for all arm configurations. Is there a good way to pass -
 mhard-float..
 
 Why would you want to do that? We don't use any FP code in U-Boot
 anyway.

We have actually seen issues with the post memory tests using the -mfpu=neon
and -ftree-vectorize under gcc 4.4.1.  So, I would be very careful with FP
flags until someone figures out how to fix the 64-bit access operators that
the memory test uses.

DaR

 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: w...@denx.de
 When you say I wrote a program that crashed  Windows,  people  just
 stare  at you blankly and say Hey, I got those with the system, *for
 free*.- Linus Torvalds in 3itc77$...@ninurta.fer.uni-lj.si
 ___
 U-Boot mailing list
 U-Boot@lists.denx.de
 http://lists.denx.de/mailman/listinfo/u-boot

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


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

2010-07-15 Thread Wolfgang Denk
Dear Dennis Ruffer,

In message 00ba01cb244a$629a4b90$27cee2...@com you wrote:

  Why would you want to do that? We don't use any FP code in U-Boot
  anyway.
 
 We have actually seen issues with the post memory tests using the -mfpu=neon
 and -ftree-vectorize under gcc 4.4.1.  So, I would be very careful with FP
 flags until someone figures out how to fix the 64-bit access operators that
 the memory test uses.

Well, there _is_ a reason for using -msoft-float as we are doing in
U-Boot.  Thanks for confirming this again.

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: w...@denx.de
Often it is fatal to live too long.  - Racine
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot