[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] "Out of tree" ? - Inside is ok



One other thing :

The make now worked, but it used gcc instead of mb-gcc, building a program executable in my Fedora (I tested it in Fedora, it should not work, but it gave me the 'hello') ... mb-gcc is in the path. The prompt :

-bash-3.00$ make
cc    -c -o hello.o hello.c  (shouldn't it be mb-gcc?)
cc  -o hello hello.o
-bash-3.00$

Inside of tree seems to work (at least it haven't run in Fedora), I will test it in the afternoon (I'm not at the University right now) but seems ok.

"A. Arthur Mohr" <adimbox-uclinux@xxxxxxxxxxxx> escreveu:
Wonderful !
Now it worked correctly !
I wasn't aware to use tabs ... VI show those lines in red, I didn't undestand why back then, now is all clear.

Thanks for the tip John !

John Williams <jwilliams@xxxxxxxxxxxxxx> escreveu:
Hi Arthur,

A. Arthur Mohr wrote:
> Well, to make sure I could build it, I tryed to build that hello world
> inside of tree, without luck. I get the same error :
>
> make[2]: Leaving directory `/home2/adi_mohr/uClinux-dist/user/hd'
> make[2]: Entering directory `/home2/adi_mohr/uClinux-dist/user/hello'
> Makefile:7: *** missing separator. Stop.
> make[2]: Leaving directory `/home2/adi_mohr/uClinux-dist/user/hello'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home2/adi_mohr/uClinux-dist/user'
> make: *** [subdir! s] Error 1
> -bash-3.00$

Be careful with Makefiles - it is necessary to use tabs, not spaces, in
the rules.. This can cause problems when cutting and pasting the
Makefile example from the Wiki.

It should be

target:
<>rule

Does this help? If so we can edit the Wiki to point that out.

Cheers,

John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/



Yahoo! doce lar. Faça do Yahoo! sua homepage.


Yahoo! Messenger com voz - Instale agora e faça ligações de graça.