Skip to contentSkip to conversation

u-boot-2010.03 build errors with USE_PRIVATE_LIBGCC=yes option

U-Boot Vipin KUMAR 4 participants 13 messages Jul 15, 2010

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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.

Regards

In data gioved? 15 luglio 2010 09:01:43, Vipin KUMAR ha scritto:
: > Hello,

Quoted 44 lines

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

Signature · 9 lines
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
#2 lore raw

Ciao Fabio,

Quoted 4 lines · Fabio Giovagnini

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

Quoted 49 lines

Regards

In data gioved? 15 luglio 2010 09:01:43, Vipin KUMAR ha scritto:
: > Hello,

Quoted 44 lines

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

#3 lore raw

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,

Quoted 64 lines · Fabio Giovagnini
Quoted 3 lines

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

Quoted 50 lines

Regards

In data gioved? 15 luglio 2010 09:01:43, Vipin KUMAR ha scritto:
: > Hello,

Quoted 46 lines

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

Signature · 9 lines
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
#4 lore raw
Quoted 1 line · Fabio Giovagnini

Ciao Vipin,

Ciao Again,

Quoted 4 lines

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

Quoted 71 lines

Regards

In data gioved? 15 luglio 2010 10:59:52, Vipin KUMAR ha scritto:
: > Ciao Fabio,

Quoted 64 lines · Fabio Giovagnini
Quoted 3 lines

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

Quoted 50 lines

Regards

In data gioved? 15 luglio 2010 09:01:43, Vipin KUMAR ha scritto:
: > Hello,

Quoted 46 lines

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

#5 lore raw

Dear Vipin KUMAR,

Quoted 7 lines · In message <[email protected]> you wrote:
Quoted 4 lines

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

Signature · 7 lines
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
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
#6 lore raw

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,

Quoted 16 lines
Quoted 7 lines · In message <[email protected]> you wrote:
Quoted 3 lines

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

Signature · 9 lines
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
#7 lore raw

Dear Fabio Giovagnini,

Quoted 3 lines · In message <[email protected]> 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

Signature · 5 lines
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
There are very few personal problems that cannot be solved through  a
suitable application of high explosives.
#8 lore raw

something like
u-boot-sh$ make USE_PRIVATE_LIBGCC=yes <enter>

Right?

Ok Thanks a lot

In data gioved? 15 luglio 2010 12:22:43, Wolfgang Denk ha scritto:
: > Dear Fabio Giovagnini,

Quoted 12 lines
Quoted 2 lines · In message <[email protected]> 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

Signature · 9 lines
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
#9 lore raw
In reply to Wolfgang Denk
Quoted 2 lines · Wolfgang Denk

Dear Vipin KUMAR,

Dear Wolfgang,

Quoted 11 lines
Quoted 7 lines · In message <[email protected]> you wrote:
Quoted 4 lines

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

Quoted 4 lines

Best regards,

Wolfgang Denk

#10 lore raw

Dear Vipin KUMAR,

Quoted 3 lines · In message <[email protected]> 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

Signature · 6 lines
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
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 <[email protected]>
#11 lore raw
Quoted 13 lines

-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot- bounces at lists.denx.de] On Behalf Of Wolfgang Denk
Sent: Thursday, July 15, 2010 10:58 AM
To: Vipin KUMAR
Cc: u-boot at lists.denx.de; Shiraz HASHIM
Subject: Re: [U-Boot] u-boot-2010.03 build errors with USE_PRIVATE_LIBGCC=yes option

Dear Vipin KUMAR,

Quoted 1 line · In message <[email protected]> you wrote:
Quoted 7 lines
Quoted 1 line

Since this option -msoft-float is passed from arch/arm/cpu/config.mk,

and it

Quoted 1 line

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

Quoted 15 lines

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 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 <[email protected]>
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

#12 lore raw

Dear "Dennis Ruffer",

Quoted 8 lines · In message <00ba01cb244a$629a4b90$27cee2b0$@com> you wrote:
Quoted 3 lines

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

Signature · 4 lines
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
Often it is fatal to live too long.                          - Racine