[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 Fri, January 25, 2008 15:13, Olof Backing wrote:
> And now something completely different... It'ssss not working. I'm running:
>
> * OpenSUSE 10.2
> * Xilinx ISE/EDK 9.1
> * petalinux-v0.20-rc3
> * Spartan-3E 1600 RevA
>
> When following the tutorial for the Spartan-3E board everything works as expected.
> Apart from me  crossing an almost 3 year old bug. I found a post from 8 Sep 2005
> about errors on make. Mine is similar:
>
> make[2]: Entering directory
> `/home/olof/svn/petalinux-v0.20-rc3/software/petalinux-dist/user/agetty'
> microblaze-uclinux-gcc  -Os -g -fomit-frame-pointer -pipe -fno-common -fno-builtin
> -Wall  -mno-xl-soft-mul -mno-xl-soft-div -mxl-barrel-shift -mcpu=v6.00.b   -DEMBED
> -I/home/olof/svn/petalinux-v0.20-rc3/software/petalinux-dist
> -I/home/olof/svn/petalinux-v0.20-rc3/software/petalinux-dist/include
> -I/home/olof/svn/petalinux-v0.20-rc3/software/petalinux-dist/include -Dlinux
> -D__linux__ -Dunix -D__uClinux__ -DLINUX -D__USE_BSD   -c -o agetty.o agetty.c
> microblaze-uclinux-gcc
> -L/home/olof/svn/petalinux-v0.20-rc3/software/petalinux-dist/lib -mno-xl-soft-mul
> -mno-xl-soft-div -mxl-barrel-shift -mcpu=v6.00.b  -o agetty agetty.o
> /home/olof/svn/petalinux-v0.20-rc3/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
>
> Of course doesn't the make produce any crt0.o in
> $PETALINUX/software/petalinux-dist/lib and the linking will fail. The patch
> mentioned back in 2005:
>
> After this, I got "crt0.o: No such file or directory" while building
> agetty,
> followed by many undefined references during the link.
> I overcame this two issues with patch to uClinux/lib/Makefile
> --- Makefile.original	2005-08-10 01:09:33.000000000 +0100
> +++ Makefile	2005-08-29 11:17:12.000000000 +0100
> @@ -130,6 +130,8 @@
>  #
>  #
>  LINKLIBS=\
> +	$(ROOTDIR)/lib/$(LIBCDIR)/lib/crt*.o \
> +	$(ROOTDIR)/lib/$(LIBCDIR)/lib/*.a \
>  	$(ROOTDIR)/lib/libjpeg/*.a \
>  	$(ROOTDIR)/lib/libpng/*.a \
>  	$(ROOTDIR)/lib/libm/*.a \
>
> But I can't see how this is going to solve the problem. And when trying it out it
> makes no difference.

Ny selecting uClibc as lib in Kernel/Library/Defaults Selection (contrary to the
tutorial) I get past that point. Only to stumble on the next one:

romfs-inst.sh
/home/olof/svn/petalinux-v0.20-rc3/software/petalinux-dist/vendors/PetaLogix/common/etc/rc/ifconfig.lo
/etc/init.d/network
cp: cannot stat
`/home/olof/svn/petalinux-v0.20-rc3/software/petalinux-dist/vendors/PetaLogix/common/etc/rc/ifconfig.lo':
No such file or directory

What's going on? I know this isn't the latest distribution, but I thought that I 
should learn how this works by using a slightly older but more stable (?)
distribution that builds correctly.

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/