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

[microblaze-uclinux] ld.real: cannot open crt0.o: No such file or directory while building agetty



Hi!
Thanks again for all help so far from the mailinglist!

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.

On a sidenote am I having the very same problem with petalinux-v0.30-rc1 and Xilinx
92 when using Xilinx-Spartan3E1600-RevA-edk92.

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/