From: Der Herr Hofrat Date: Wed, 1 Sep 2004 19:35:19 +0200 (CEST) Subject: [U-Boot-Users] u-boot-1.1.1 ml300 compile problem In-Reply-To: <20040831201116.1FC58C109F@atlas.denx.de> from Wolfgang Denk at "Aug 31, 2004 10:11:11 pm" Message-ID: <200409011735.i81HZJL14974@hofr.at> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > In message <200408310956.i7V9upB32609@hofr.at> you wrote: > > > > The mails in the archive on ml300 I found say to "compile u-boot first" or > > state that it compiles successfully, the problem I have is that this step > > fails. > > Did you try the current version (top of tree in CVS) ? > > > Procedure: > > copied boot.o crt0.o and libc.a to examples > > Don't do that! > > > IT failes with an undefined reference to main > > This is because you added files which don't belong to U-Boot. > ok - then its something else - I actually added these files because of the errors I got with the stock 1.1.1 - which failed with ld not finding boot.o below is the output from make with the relevant error. make[1]: Entering directory `/root/u-boot-1.1.1/tools' make[1]: `.depend' is up to date. make[1]: Leaving directory `/root/u-boot-1.1.1/tools' make[1]: Entering directory `/root/u-boot-1.1.1/examples' make[1]: `.depend' is up to date. make[1]: Leaving directory `/root/u-boot-1.1.1/examples' make[1]: Entering directory `/root/u-boot-1.1.1/post' make[1]: `.depend' is up to date. make[1]: Leaving directory `/root/u-boot-1.1.1/post' make[1]: Entering directory `/root/u-boot-1.1.1/post/cpu' make[1]: `.depend' is up to date. make[1]: Leaving directory `/root/u-boot-1.1.1/post/cpu' make -C tools all make[1]: Entering directory `/root/u-boot-1.1.1/tools' make[1]: Leaving directory `/root/u-boot-1.1.1/tools' make -C examples all make[1]: Entering directory `/root/u-boot-1.1.1/examples' powerpc-eabi-ld -g -Ttext 0x40000 \ -o hello_world -e hello_world hello_world.o libstubs.a \ -L/root/EDK/gnu/powerpc-eabi/lin/bin/../lib/gcc-lib/powerpc-eabi/2.95.3-4 -lgcc powerpc-eabi-ld: cannot find boot.o make[1]: *** [hello_world] Error 1 make[1]: Leaving directory `/root/u-boot-1.1.1/examples' make: *** [examples] Error 2 thx ! hofrat