[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] ld.real: cannot open crt0.o: No such file or directory while building agetty
On Tue, February 5, 2008 01:11, John Williams wrote:
> Something is terribly wrong with your build process for all of this to
> be necessary! IT could be to do with running on SuSe, but I cannot be
> sure (CentOS / RHEL is recommended because that's what we test on).
Indeed it is, indeed it is... :) But the customer is arguing for OpenSUSE for the
moment so we have to keep him happy. On the other hand did I avoid Solaris as the
company platform. Personally I can go with almost any Linux-platform.
> For starters, you should select "none" as the C library in toplevel
> menuconfig, this is a signal to the build system that you want to use
> the built-in uClibc that is part of the microblaze-uclinux toolchain.
As with uClinux for Nios II I remember this setting, but without reading any docs I
did cut some corners but choosing uClibc to just complete the first full build
process. There's a post-it note on the wall for this.
> As a test, can you create simple hello.c file (just hello world). then do
>
> $ source settings.sh (in petalinux toplevel dir)
>
> $ microblaze-uclinux-gcc -o hello hello.c
>
> and tell me the result. It should work cleanly.
Which it doesn't do. Work cleanly:
olof@ehc-labdator03:petalinux-v0.30-rc1> microblaze-uclinux-gcc -o hello hello.c
/home/olof/svn/petalinux-v0.30-rc1/tools/linux-i386/microblaze-uclinux-tools/bin/../lib/gcc/microblaze-uclinux/3.4.1/../../../../microblaze-uclinux/bin/ld.real:
cannot open crt0.o: No such file or directory
collect2: ld returned 1 exit status
And this bothers me. I did a find(1) on crt0.o in petalinux-v0.30-rc1 and came up with:
olof@ehc-labdator03:petalinux-v0.30-rc1> find . -name crt0.o -print
./software/petalinux-dist/uClibc/lib/crt0.o
./software/petalinux-dist/uClibc/libc/sysdeps/linux/microblaze/crt0.o
But they might have been built from the build process with uClibc chosen in the
Kernel/Library menu.
Regards, Olof
--
Olof Backing
Contactor Data AB Office: +46 (0)8 752 81 00
Finlandsgatan 14 Mobile: +46 (0)70 995 98 99
SE-164 74 KISTA Fax: +46 (0)8 752 05 30
___________________________
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/