All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] u-boot compile problem
@ 2004-10-11 16:06 Luca Contini
  2004-10-11 17:51 ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: Luca Contini @ 2004-10-11 16:06 UTC (permalink / raw)
  To: u-boot

Sorry for the subject in previous e-mail...

Hi all,
I've downloaded the latest u-boot-1.1.1 and I'm trying to compile,
but I get this error at the end... any idea?
Toolchain: cross-3.2  (from arm linux)
regards



arm-linux-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 
-mshort-load-bytes -msoft-float -D__KERNEL__ -DTEXT_BASE=0x33F80000 
-I/root/audiotel/u-boot-1.1.1nand/include -fno-builtin -ffreestanding 
-nostdinc -isystem 
/usr/local/arm/current/bin/../lib/gcc-lib/arm-linux/3.2/include -pipe  
-DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -Wall -Wstrict-prototypes 
-g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 
-mshort-load-bytes -msoft-float -D__KERNEL__ -DTEXT_BASE=0x33F80000 
-I/root/audiotel/u-boot-1.1.1nand/include -fno-builtin -ffreestanding 
-nostdinc -isystem 
/usr/local/arm/current/bin/../lib/gcc-lib/arm-linux/3.2/include -pipe  
-DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -I.. -Bstatic -T 
/root/audiotel/u-boot-1.1.1nand/board/smdk2410/u-boot.lds -Ttext 
0x33F80000   hello_world.c   -o hello_world
/usr/local/arm/current/bin/../lib/gcc-lib/arm-linux/3.2/../../../../arm-linux/bin/ld: 
cannot find -lfloat
collect2: ld returned 1 exit status
make[1]: *** [hello_world] Error 1
make[1]: Leaving directory `/root/audiotel/u-boot-1.1.1nand/examples'
make: *** [examples] Error 2
[root at tecne184 u-boot-1.1.1nand]#

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

* [U-Boot-Users] u-boot compile problem
  2004-10-11 16:06 [U-Boot-Users] u-boot compile problem Luca Contini
@ 2004-10-11 17:51 ` Wolfgang Denk
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2004-10-11 17:51 UTC (permalink / raw)
  To: u-boot

In message <416AAF81.7010605@akhela.com> you wrote:
> 
> I've downloaded the latest u-boot-1.1.1 and I'm trying to compile,
> but I get this error at the end... any idea?
> Toolchain: cross-3.2  (from arm linux)
> regards
> 
> 
> 
> arm-linux-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 
> -mshort-load-bytes -msoft-float -D__KERNEL__ -DTEXT_BASE=0x33F80000 
> -I/root/audiotel/u-boot-1.1.1nand/include -fno-builtin -ffreestanding 
> -nostdinc -isystem 
> /usr/local/arm/current/bin/../lib/gcc-lib/arm-linux/3.2/include -pipe  
> -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -Wall -Wstrict-prototypes 
> -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 
> -mshort-load-bytes -msoft-float -D__KERNEL__ -DTEXT_BASE=0x33F80000 
> -I/root/audiotel/u-boot-1.1.1nand/include -fno-builtin -ffreestanding 
> -nostdinc -isystem 
> /usr/local/arm/current/bin/../lib/gcc-lib/arm-linux/3.2/include -pipe  
> -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -I.. -Bstatic -T 
> /root/audiotel/u-boot-1.1.1nand/board/smdk2410/u-boot.lds -Ttext 
> 0x33F80000   hello_world.c   -o hello_world
> /usr/local/arm/current/bin/../lib/gcc-lib/arm-linux/3.2/../../../../arm-linux/bin/ld: 
> cannot find -lfloat

Your toolchain is broken, and seriously. It cannot find  one  of  the
libraries it thinks it needs (libfloat).

This is off topic here. Please ask such questions on the
linux-arm-toolchain mailing list.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Anarchy may not be the best form of government, but it's better  than
no government at all.

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

* [U-Boot-Users] u-boot compile problem
@ 2004-10-12 10:03 Rainer Brestan
  2005-01-09 23:39 ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: Rainer Brestan @ 2004-10-12 10:03 UTC (permalink / raw)
  To: u-boot

>Hi all,
>I've downloaded the latest u-boot-1.1.1 and I'm trying to compile,
>but I get this error at the end... any idea?
>Toolchain: cross-3.2  (from arm linux)
>regards
>
>
>
>arm-linux-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 
>-mshort-load-bytes -msoft-float -D__KERNEL__ -DTEXT_BASE=0x33F80000 
>-I/root/audiotel/u-boot-1.1.1nand/include -fno-builtin -ffreestanding 
>-nostdinc -isystem 
>/usr/local/arm/current/bin/../lib/gcc-lib/arm-linux/3.2/include -pipe  
>-DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -Wall -Wstrict-prototypes 
>-g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 
>-mshort-load-bytes -msoft-float -D__KERNEL__ -DTEXT_BASE=0x33F80000 
>-I/root/audiotel/u-boot-1.1.1nand/include -fno-builtin -ffreestanding 
>-nostdinc -isystem 
>/usr/local/arm/current/bin/../lib/gcc-lib/arm-linux/3.2/include -pipe  
>-DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -I.. -Bstatic -T 
>/root/audiotel/u-boot-1.1.1nand/board/smdk2410/u-boot.lds -Ttext 
>0x33F80000   hello_world.c   -o hello_world
>/usr/local/arm/current/bin/../lib/gcc-lib/arm-linux/3.2/../../../../arm-linux/bin/ld: 
>cannot find -lfloat
>collect2: ld returned 1 exit status
>make[1]: *** [hello_world] Error 1
>make[1]: Leaving directory `/root/audiotel/u-boot-1.1.1nand/examples'
>make: *** [examples] Error 2
>[root at tecne184 u-boot-1.1.1nand]#
>

You run into the same problem i had.
It is not a problem with the toolchain, it is due to the fact how the makefile
in examples is written.

When you first run make without arm-linux-gcc in the path make does a lot, but it
created only empty .depend files (because of compiler not found).
Afterwards you include arm-linux-gcc in the path and run make again.
Everything is running then except the examples directory.

Make does not compile hello_world.c, instead it uses a builtin implicit rule to
make hello_world (there is no dependency from OBJS and the explicit dependency for
hello_world.o is missing, because of empty .depend). When you run make -r (no
builtin implicit rules) it works.

Work around:
make clobber (deletes your wrong .depend)
mkconfig ...
adding arm-linux-gcc to your path
make

Hint to Wolfgang:
If you add OBJS to the all rule in Makefile for examples, it will work in any case.
all:	.depend $(LIB) $(OBJS) $(SREC) $(BIN)

Rainer
 

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

* [U-Boot-Users] u-boot compile problem
  2004-10-12 10:03 Rainer Brestan
@ 2005-01-09 23:39 ` Wolfgang Denk
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2005-01-09 23:39 UTC (permalink / raw)
  To: u-boot

In message <2574043332486841A5B27A5FE9769E4508EE914D@esealnt888.al.sw.ericsson.se> you wrote:
>
> It is not a problem with the toolchain, it is due to the fact how the makefile
> in examples is written.
...
> Hint to Wolfgang:
> If you add OBJS to the all rule in Makefile for examples, it will work in any case.
> all:	.depend $(LIB) $(OBJS) $(SREC) $(BIN)

Added, thanks!

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Any excuse will serve a tyrant."                             - Aesop

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

end of thread, other threads:[~2005-01-09 23:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-11 16:06 [U-Boot-Users] u-boot compile problem Luca Contini
2004-10-11 17:51 ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2004-10-12 10:03 Rainer Brestan
2005-01-09 23:39 ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.