* [U-Boot-Users] Uboot compiling problem...
@ 2004-06-22 10:35 Stephan Magnier
2004-06-22 10:38 ` Andy Hawkins
2004-06-22 12:55 ` Wolfgang Denk
0 siblings, 2 replies; 5+ messages in thread
From: Stephan Magnier @ 2004-06-22 10:35 UTC (permalink / raw)
To: u-boot
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 at 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 at 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] Uboot compiling problem...
2004-06-22 10:35 [U-Boot-Users] Uboot compiling problem Stephan Magnier
@ 2004-06-22 10:38 ` Andy Hawkins
2004-06-22 12:57 ` Wolfgang Denk
2004-06-22 12:55 ` Wolfgang Denk
1 sibling, 1 reply; 5+ messages in thread
From: Andy Hawkins @ 2004-06-22 10:38 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] Uboot compiling problem...
2004-06-22 10:35 [U-Boot-Users] Uboot compiling problem Stephan Magnier
2004-06-22 10:38 ` Andy Hawkins
@ 2004-06-22 12:55 ` Wolfgang Denk
1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2004-06-22 12:55 UTC (permalink / raw)
To: u-boot
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 at 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 at 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
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
In a survey taken several years ago, all incoming freshmen at MIT
were asked if they expected to graduate in the top half of their
class. Ninety-seven percent responded that they did.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] Uboot compiling problem...
2004-06-22 10:38 ` Andy Hawkins
@ 2004-06-22 12:57 ` Wolfgang Denk
2004-06-22 13:05 ` Andy Hawkins
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2004-06-22 12:57 UTC (permalink / raw)
To: u-boot
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
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
Another Armenia, Belgium ... the weak innocents who always seem to be
located on a natural invasion route.
-- Kirk, "Errand of Mercy", stardate 3198.4
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] Uboot compiling problem...
2004-06-22 12:57 ` Wolfgang Denk
@ 2004-06-22 13:05 ` Andy Hawkins
0 siblings, 0 replies; 5+ messages in thread
From: Andy Hawkins @ 2004-06-22 13:05 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-06-22 13:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-22 10:35 [U-Boot-Users] Uboot compiling problem Stephan Magnier
2004-06-22 10:38 ` Andy Hawkins
2004-06-22 12:57 ` Wolfgang Denk
2004-06-22 13:05 ` Andy Hawkins
2004-06-22 12:55 ` 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.