[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Thanks for the patch. Some more questions
Hi John,
John Prestwich wrote:
> Thanks for the patches I was finally able to get my
> hello world app to compile outside of the the ucLinux
> kernel. I did have to do one work around to get it to
> compile though. I kept getting the following error
> when doing a make of the hello world app:
>
> [john@248-COEN--885-23074 hello_app]$ make
> ucfront-gcc mb-gcc -c -Os -g -fomit-frame-pointer
> -fno-common -fno-builtin -Wall -mxl-soft-mul
> -mxl-soft-div -DEMBED -Dlinux -D__linux__ -Dunix
> -D__uClinux__ -o hello.o hello.c
> make: ucfront-gcc: Command not found
> make: *** [hello.o] Error 127
>
> To get around this I ended up adding
> "..uClinux-dist/tools" to my path. Is this a
> reasonable work around or is there a better way to do
> this?
It's probably worth amending the out-of-tree build instructions to add
$(ROOTDIR)/tools to the path, in the Makefile.
Something like
PATH += $(ROOTDIR)/tools
in the sample Makefile shoudl do the trick. Do you mind testing this
and confirm if it works, and I'll update the wiki?
> Also while trying to compile the kernel I am still
> running into problems. First error I came upon said
> that it could not find
> "uClinux-dist/linux-2.4.x/.configucfront-gcc". I
> removed the "ucfront-gcc" off that line (line 45) of
> the makefile in uClinux-dist and that seemed to help
> it get a little farther into the make process. Again
> was that the right correct to make?
Hmm, sounds bogus. ucfront is not involved in the kernel build at all,
it's only for libs and apps. I'm not sure why there should be any
involvement of it here. You may have already worked around this, but if
not I'd suggest doing a make clean and starting fresh with the kernel.
Certainly haven't seen anything like it at this end.
Regards,
John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/