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

Re: [microblaze-uclinux] HELP ME¡¡¡



Hi John,

I think this is a bug in the ucfront-ld tools, in the latest uClinux-dist. Please try the attached patch and see if it helps. You will need to do the following from your uclinux-dist directory:

$ patch -p0 < ucfront-ld.patch
$ make -C tools/ucfront clean
$ make

Please let me know if this helps, I have submitted the patch to the uclinux-dist maintainers as well.

Regards,

John



john osorio wrote:
hello everybody, my name is john and I'm trying build the kernel for a xilinx ml403 development board, I don't know what happen, please help me. Here is the output that I get when I type make in the uclinux-dist, I'm red xapp730.pdf, and I follow all the instructions but don't works, please help me.Thanks.
P.D my english it's not very good, excuse me




D__linux__ -Dunix -D__uClinux__ -D_BSD_SOURCE=1 -c -o udpipgen.o udpipgen.c
rm.c:42: warning: control reaches end of non-void function
ucfront-gcc mb-gcc -Os -g -fomit-frame-pointer -pipe -fno-common -fno-builtin -Wall -msoft-float -mno-xl-soft-mul -mxl-barrel-shift -mno-xl-soft-div -DEMBED -Dlinux -D__linux__ -Dunix -D__uClinux__ -c -o rmdir.o rmdir.c
rmdir.c: In function `main':
rmdir.c:50: warning: implicit declaration of function `exit'
rmdir.c:54: warning: control reaches end of non-void function
ucfront-gcc mb-gcc -Os -g -fomit-frame-pointer -pipe -fno-common -fno-builtin -Wall -msoft-float -mno-xl-soft-mul -mxl-barrel-shift -mno-xl-soft-div -DEMBED -Dlinux -D__linux__ -Dunix -D__uClinux__ -c -o sync.o sync.c
sync.c: In function `main':
sync.c:9: warning: implicit declaration of function `exit'
sync.c:10: warning: control reaches end of non-void function
ucfront-gcc mb-gcc -Os -g -fomit-frame-pointer -pipe -fno-common -fno-builtin -Wall -msoft-float -mno-xl-soft-mul -mxl-barrel-shift -mno-xl-soft-div -DEMBED -Dlinux -D__linux__ -Dunix -D__uClinux__ -c -o touch.o touch.c
touch.c: In function `main':
touch.c:22: warning: implicit declaration of function `creat'
touch.c:24: warning: implicit declaration of function `utime'
touch.c:13: warning: unused variable `fd'
touch.c:27: warning: control reaches end of non-void function
ucfront-gcc mb-gcc -Wl,--fatal-warnings -Wl,-elf2flt -Wl,--fatal-warnings -Wl,-elf2flt -o dhcpcd arp.o buildmsg.o client.o dhcpcd.o peekfd.o signals.o udpipgen.o ucfront-gcc mb-gcc -Wl,--fatal-warnings -Wl,-elf2flt -Wl,--fatal-warnings -Wl,-elf2flt -o cat cat.o /usr/local/microblaze-elf-tools/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/bin/ld.real: opci?n desconocida `--fatal-warnings' /usr/local/microblaze-elf-tools/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/bin/ld.real: use the --help option for u*sage information
collect2: ld returned 1 exit status
make[3]: *** [cat] Error 1
make[3]: se sale del directorio `/home/kala855/uClinux-cvs/uClinux-dist/user/fileutils'
make[2]: *** [fileutils] Error 2
/usr/local/microblaze-elf-tools/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/bin/ld.real: opci?n desconocida `--fatal-warnings' /usr/local/microblaze-elf-tools/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/bin/ld.real: use the --help option for usage information
collect2: ld returned 1 exit status
make[3]: *** [dhcpcd] Error 1
make[3]: se sale del directorio `/home/kala855/uClinux-cvs/uClinux-dist/user/dhcpcd-new'
make[2]: *** [dhcpcd-new] Error 2
make
make[4]: Entering directory `/home/kala855/uClinux-cvs/uClinux-dist/user/busybox'
sh ./mkconfig > .config.tmp
./mkconfig: 17: source: not found
if cmp -s .config.mkconfig .config.tmp ; \
       then \*
               rm -f .config.tmp ; \
       else \
               make clean; \
               mv -f .config.tmp .config.mkconfig ; \
       fi
ucfront-gcc mb-gcc -Os -g -fomit-frame-pointer -pipe -fno-common -fno-builtin -Wall -msoft-float -mno-xl-soft-mul -mxl-barrel-shift -mno-xl-soft-div -DEMBED -Dlinux -D__linux__ -Dunix -D__uClinux__ -I/home/kala855/uClinux-cvs/uClinux-dist/user/busybox/include -I/home/kala855/uClinux-cvs/uClinux-dist/user/busybox/include -I -D_BSD_SOURCE -D__USE_BSD -Wall -Wstrict-prototypes -Wshadow -Os -fomit-frame-pointer -D_GNU_SOURCE -DNDEBUG -c -o /home/kala855/uClinux-cvs/uClinux-dist/user/busybox/applets/applets.o /home/kala855/uClinux-cvs/uClinux-dist/user/busybox/applets/applets.c ucfront-gcc mb-gcc -Os -g -fomit-frame-pointer -pipe -fno-common -fno-builtin -Wall -msoft-float -mno-xl-soft-mul -mxl-barrel-shift -mno-xl-soft-div -DEMBED -Dlinux -D__linux__ -Dunix -D__uClinux__ -I/home/kala855/uClinux-cvs/uClinux-dist/user/busybox/include -I/home/kala855/uClinux-cvs/uClinux-dist/user/busybox/include -I -D_BSD_SOURCE -D__USE_BSD -Wall -Wstrict-prototypes -Wshadow -Os -fomit-frame-pointer -D_GNU_SOURCE -DNDEBUG -c -o /home/kala855/uClinux-cvs/uClinux-dist/user/busybox/applets/busybox.o /home/kala855/uClinux-cvs/uClinux-dist/user/busybox/applets/busybox.c mb-ar -ro /home/kala855/uClinux-cvs/uClinux-dist/user/busybox/applets/applets.a /home/kala855/uClinux-cvs/uClinux-dist/user/busybox/applets/applets.o /home/kala855/uClinu



AND, this is the final output.


*make[4]: *** [busybox] Error 1
make[4]: Leaving directory `/home/kala855/uClinux-cvs/uClinux-dist/user/busybox'
make[3]: *** [all] Error 2
make[3]: se sale del directorio `/home/kala855/uClinux-cvs/uClinux-dist/user/busybox'
make[2]: *** [busybox] Error 2
make[2]: se sale del directorio `/home/kala855/uClinux-cvs/uClinux-dist/user'
make[1]: *** [all] Error 2
make[1]: se sale del directorio `/home/kala855/uClinux-cvs/uClinux-dist/user'
make: *** [subdirs] Error 1
*kala855@kala855-desktop:~/uClinux-cvs/uClinux-dist$
___________________________
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/



Index: tools/ucfront/ucfront-ld.c
===================================================================
--- tools/ucfront/ucfront-ld.c	(revision 2231)
+++ tools/ucfront/ucfront-ld.c	(working copy)
@@ -282,6 +282,9 @@
 			x_asprintf(&libc_libdir, "%s/lib/%s", rootdir, config_libcdir);
 		}
 	}
+	else if (getenv("CONFIG_DEFAULTS_LIBC_NONE")) {
+		libtype = LIBTYPE_NONE;
+	}
 	else {
 		fatal("Could not determine libc. Are $CONFIG_DEFAULTS_LIBC_... and $CONFIG_LIBCDIR set correctly?"); 
 	}
@@ -325,8 +328,10 @@
 	if (!nostdlib) {
 		args_add(stripped_args, "-nostdlib");
 
-		args_add(stripped_args, "-L");
-		args_add(stripped_args, libc_libdir);
+		if(libc_libdir) {
+			args_add(stripped_args, "-L");
+			args_add(stripped_args, libc_libdir);
+		}
 
 		x_asprintf(&e, "%s/lib", rootdir);
 		args_add(stripped_args, "-L");