public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Problem compiling examples
@ 2004-06-22 13:09 Andy Hawkins
  0 siblings, 0 replies; 3+ messages in thread
From: Andy Hawkins @ 2004-06-22 13:09 UTC (permalink / raw)
  To: u-boot

Hi all,

Typical...I tried to recreate the problem with compiling the standalone
examples and couldn't. However, as soon as I sent the previous e-mail, I
realised I had other source trees around. I tried compiling one of
those, and got this error (apologies for the horrible formatting, it's a
very long compile command).

ppc_405-gcc -g  -Os   -fPIC -ffixed-r14 -meabi -D__KERNEL__
-DTEXT_BASE=0xFFFC0000 -I/usr/src/u-boot-evo/u-boot-1.1.0-orig/include
-fno-builtin -ffreestanding -nostdinc -isystem
/opt/montavista/pro/devkit/ppc/405/bin/../lib/gcc-lib/powerpc-hardhat-linux/3.3.1/include -pipe  -DCONFIG_PPC -D__powerpc__ -DCONFIG_4xx -ffixed-r2 -ffixed-r29 -mstring -Wa,-m405 -mcpu=405 -msoft-float -Wall -Wstrict-prototypes -g  -Os   -fPIC -ffixed-r14 -meabi -D__KERNEL__ -DTEXT_BASE=0xFFFC0000 -I/usr/src/u-boot-evo/u-boot-1.1.0-orig/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/montavista/pro/devkit/ppc/405/bin/../lib/gcc-lib/powerpc-hardhat-linux/3.3.1/include -pipe  -DCONFIG_PPC -D__powerpc__ -DCONFIG_4xx -ffixed-r2 -ffixed-r29 -mstring -Wa,-m405 -mcpu=405 -msoft-float -I.. -Bstatic -T /usr/src/u-boot-evo/u-boot-1.1.0-orig/board/dave/PPChameleonEVB/u-boot.lds -Ttext 0xFFFC0000  -n  hello_world.c   -o hello_world
ppc_405-gcc: 0xFFFC0000: No such file or directory
/opt/montavista/pro/devkit/ppc/405/bin/../lib/gcc-lib/powerpc-hardhat-linux/3.3.1/../../../../powerpc-hardhat-linux/bin/as: option `-n' is ambiguous
make[1]: *** [hello_world] Error 2

This is compiling using MontaVista Pro 3.1, U-Boot 1.1.0, configured for
a PPChameleonEVB board using

make PPChameleonEVB_config

Hope this helps in tracking down the problem...not sure the other tree
(that I've modified to provide support for our custom hardware) compiles
Ok...

Andy

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [U-Boot-Users] problem compiling examples
@ 2006-07-20 12:19 Josef.Baumgartner at de.telex.com
  2006-07-20 15:49 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: Josef.Baumgartner at de.telex.com @ 2006-07-20 12:19 UTC (permalink / raw)
  To: u-boot

Hi,

im currently working with the coldfire port of u-boot. When I try to 
compile the examples, the following error occurs:

make[1]: Entering directory `/misc/usb/tmp/u-boot/u-boot-work/examples'
m68k-elf-gcc -g  -Os   -ffixed-d7 -msep-data -D__KERNEL__ 
-DTEXT_BASE=0xffe00000 -I/misc/usb/tmp/u-boot/u-boot-work/include 
-fno-builtin
-ffreestanding -nostdinc -isystem 
/usr/local/lib/gcc-lib/m68k-elf/2.95.3/include -pipe  -DCONFIG_M68K 
-D__M68K__ -m5307 -Wall -Wstrict-prototypes -c -o hello_world.o 
hello_world.c
m68k-elf-gcc -g  -Os   -ffixed-d7 -msep-data -D__KERNEL__ 
-DTEXT_BASE=0xffe00000 -I/misc/usb/tmp/u-boot/u-boot-work/include 
-fno-builtin
-ffreestanding -nostdinc -isystem 
/usr/local/lib/gcc-lib/m68k-elf/2.95.3/include -pipe  -DCONFIG_M68K 
-D__M68K__ -m5307 -Wall -Wstrict-prototypes -c -o stubs.o stubs.c
m68k-elf-ar crv libstubs.a  stubs.o
a - stubs.o
make[1]: *** No rule to make target `hello_world.srec', needed by `all'. 
Stop.
make[1]: Leaving directory `/misc/usb/tmp/u-boot/u-boot-work/examples'
make: *** [examples] Error 2

It seems, there is a problem with the chained implicit rules used to make 
the srecord file.
If I swap the targets as shown below, the problem dissapears:

--- u-boot-2006-06-30-2020/examples/Makefile   2006-07-20 
14:01:19.000000000 +0200
+++ u-boot-work/examples/Makefile    2006-07-19 12:24:29.000000000 +0200
@@ -60,7 +60,7 @@
 include $(TOPDIR)/config.mk

 SREC   = hello_world.srec
-BIN    = hello_world.bin hello_world
+BIN    =  hello_world hello_world.bin

 ifeq ($(CPU),mpc8xx)
 SREC   = test_burst.srec
@@ -122,7 +122,7 @@

 CPPFLAGS += -I..

-all:   .depend $(OBJS) $(LIB) $(SREC) $(BIN)
+all:   .depend $(OBJS) $(LIB) $(BIN) $(SREC)

 #########################################################################
 $(LIB): .depend $(LIBOBJS)

I use Gnu Make 3.81 on a debian linux host.
Has anybody else had this problem? Would it be ok to change the Makefile 
or is there another soluten?

Regards,

Josef

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20060720/4725ae67/attachment.htm 

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

end of thread, other threads:[~2006-07-20 15:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-22 13:09 [U-Boot-Users] Problem compiling examples Andy Hawkins
  -- strict thread matches above, loose matches on Subject: below --
2006-07-20 12:19 [U-Boot-Users] problem " Josef.Baumgartner at de.telex.com
2006-07-20 15:49 ` Wolfgang Denk

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