[U-Boot-Users] Uboot compiling problem...

Hello there,
I have some problems with the generation of the U-boot
I am using the following version : Uboot is 1.0.2 ELDK 3.0
[root@linux-three u-boot]# make TQM823L_config rm -f include/config.h include/config.mk Configuring for TQM823L board...
Seems to be OK
"Make all" gives me this :
make[1]: Entering directory `/opt/u-boot/examples' ppc_8xx-gcc -g -Os -fPIC -ffixed-r14 -meabi -D__KERNEL__ -DTEXT_BASE= -I
/
opt/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/ELDK/usr/bin/../lib/gcc-lib/ppc-linux/3.2.2/include -pipe -DCONFIG_PP
C
-D__powerpc__ -DCONFIG_8xx -ffixed-r2 -ffixed-r29 -mstring -mcpu=860 -msof
t
-float -Wall -Wstrict-prototypes -g -Os -fPIC -ffixed-r14 -meabi -D__KER
N
EL__ -DTEXT_BASE= -I/opt/u-boot/include -fno-builtin -ffreestanding -nostdi
n
c -isystem opt/ELDK/usr/bin/../lib/gcc-lib/ppc-linux/3.2.2/include -pipe -DCONFIG_PPC -D__powerpc__ -DCONFIG_8xx -ffixed-r2 -ffixed-r29 -mstring -mcpu=860 -msoft
-
float -I.. -Bstatic -T /opt/u-boot/board/tqm8xx/u-boot.lds -Ttext -n hello_world.c -o hello_world /opt/ELDK/usr/bin/../lib/gcc-lib/ppc-linux/3.2.2/../../../../ppc-linux/bin/
a
s: option `-n' is ambiguous make[1]: *** [hello_world] Error 2 make[1]: Leaving directory `/opt/u-boot/examples' make: *** [examples] Error 2 [root@linux-three u-boot]#
I think this must be an older (much older) version of U-Boot. It cannot be compiled with the newer versions of the GNU toolchain as included with ELDK-3.0.
[WD] Please make sure to use a more recent version of U-Boot, for example the one that is included with the ELDK (see for example directory /opt/eldk/ppc_8xx/usr/src/u-boot-1.0.2).
My installation of U-boot-1.0.2 (downloaded separtely from the "Leo" website) is placed at the same level of the ELDK... but I don't think that could be a real problem.... isn't it ? (path seems to be also recognised? )
But could you please tell me why, the make file is referring to the Hello_world file ?? AFAIK, there is no "hello_world.c" file installed by default with the ELDK ???
regards,
Stephane

On Tue, 2004-06-22 at 11:35, Stephan Magnier wrote:
But could you please tell me why, the make file is referring to the Hello_world file ?? AFAIK, there is no "hello_world.c" file installed by default with the ELDK ???
It's one of the example 'standalone' applications that come with U-Boot. FWIW, I occasionally have this same problem when compiling. I just change examples/Makefile to stop it compiling the files that generate errors.
Andy

In message 1087900701.2005.6.camel@adh you wrote:
It's one of the example 'standalone' applications that come with U-Boot. FWIW, I occasionally have this same problem when compiling. I just change examples/Makefile to stop it compiling the files that generate errors.
Can you please point out which files give you errors?
Please include the error messages, for which board configuration this happens, which version of U-Boot source code and which version of which cross compiler toolchain you are using.
It is more helpful to report problems than just to silence the error messages.
Best regards,
Wolfgang Denk

Hi,
Please include the error messages, for which board configuration this happens, which version of U-Boot source code and which version of which cross compiler toolchain you are using.
Odd...it's not doing it now. I'm using MontaVista Pro 3.1 as the compile toolset, U-Boot 1.1.0. The error was very similar to the one posted by the other poster, something about 'option `-n' is ambiguous', as well as something like 'unexpected token FFFF0000 (I think this is the base address). This was while compiling the example programs.
If it happens again, I'll be sure to post to the list with the exact errors.
It is more helpful to report problems than just to silence the error messages.
True, and apologies for not doing so. As it was only the example programs (that I had no need for at the time) I just fixed the symptom and carried on.
I'll provide more info if I see it again.
Andy

In message JBEPLKHFOOGIPNGJJNBAMEPKCMAA.smagnier@hitex.co.uk you wrote:
I have some problems with the generation of the U-boot
I am using the following version : Uboot is 1.0.2 ELDK 3.0
[root@linux-three u-boot]# make TQM823L_config rm -f include/config.h include/config.mk Configuring for TQM823L board...
Seems to be OK
Can you please get used to use standard quoting rules? In this text above it is impossible to see which part was your question and what was my answer to it.
s: option `-n' is ambiguous make[1]: *** [hello_world] Error 2 make[1]: Leaving directory `/opt/u-boot/examples' make: *** [examples] Error 2 [root@linux-three u-boot]#
I think this must be an older (much older) version of U-Boot. It cannot be compiled with the newer versions of the GNU toolchain as included with ELDK-3.0.
[That was me, too.]
[WD] Please make sure to use a more recent version of U-Boot, for example the one that is included with the ELDK (see for example directory /opt/eldk/ppc_8xx/usr/src/u-boot-1.0.2).
Indeed.
My installation of U-boot-1.0.2 (downloaded separtely from the "Leo" website) is placed at the same level of the ELDK... but I don't think that could be a real problem.... isn't it ? (path seems to be also recognised? )
The code example you quoted is definitely NOT with U-Boot-1.0.2
But could you please tell me why, the make file is referring to the Hello_world file ??
Because we are bulding the example standalone applications?
AFAIK, there is no "hello_world.c" file installed by default with the ELDK ???
Of course there is. It's (assuming default installation directory) at /opt/eldk/ppc_*/usr/src/u-boot-1.0.2/examples/hello_world.c
Please check again (ideally before posting).
Best regards,
Wolfgang Denk
participants (3)
-
Andy Hawkins
-
Stephan Magnier
-
Wolfgang Denk