Hi all,
i am quite a newbie to Linux. Can someone tell me how to apply the patch ? I have the following error while trying to make image for virtex 4.
gzio.c:10: stdio.h: No such file or directory
In file included from gzio.c:12:
zutil.h:19: stddef.h: No such file or directory
zutil.h:20: string.h: No such file or directory
zutil.h:21: stdlib.h: No such file or directory
zutil.h:26: errno.h: No such file or directory
gzio.c:523: stdarg.h: No such file or directory
make[2]: *** [gzio.o] Error 1
make[2]: Leaving directory `/root/uClinux-dist/lib/zlib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/uClinux-dist/lib'
make: *** [subdirs] Error 1
Regards,
Zijia
-----Original Message-----
From: owner-microblaze-uclinux@itee.uq.edu.au on behalf of John Williams
Sent: Fri 9/9/2005 10:02 AM
To: microblaze-uclinux@itee.uq.edu.au
Cc:
Subject: Re: [microblaze-uclinux] errors on "make"
Hi David,
There is a bunch of small patches pending in the SnapGear tree that have
not yet made it to the public CVS for uClinux-dist.
Can you please try the attached patch?
Regards,
John
Deli Geng (David) wrote:
> Hi, there,
>
> I got some errors on making the uClinux for MicroBlaze.
>
> I'm using microblaze-elf-tools-20050308 and the source checked out from the
> CVS.
>
> First, when I type "make" after all the configuration (Xilinx ML401). I got
> an "ln" error in the dist/include folder. The message said "include/gcc"
> already exists when trying to create the symbol link. So I changed the "ln
> -s" in the Makefile to "ln -sf". The making then passed this stage.
>
> However, I got another error in the dist/lib/zlib folder. It complained
> about not being able to find some include files, e.g. "string.h". I found
> there is the "-nostdinc" option. OK, I manually compiled it without the
> "-nostdinc" option. It passed anyway. But I'm still wondering if it is
> really ok?????
>
> Next, there is a similar error as attached. It looks like the similar error
> with the zlib folder. However, I don't think it's a good idea to keep
> manually compiling it.
>
> So my questions are:
>
> 1. Will the force link "ln -sf" cause the later "include file can not find"
> problem?
>
> 2. Is the source checked from CVS reliable? Or I should apply some patch
> first? BTW, the MicroBlaze-vendors-20050215.patch does not work well with
> the CVS source.
>
> 3. Is there any special procedure for setting up the microblaze-elf-tools so
> that some include files can be "seen" even with the "-nostdinc" option?
>
> I feel it might just several lines setting up things. Could anyone shed me
> some light on it?
>
> Apologize in advance if I asked stupid questions as a freshman.
>
> Thanks a lot for any help.
>
> Regards
> David
>
> Attached the error message.
>
> make[2]: Entering directory
> `/home/deli/uclinux/src/uClinux-dist/user/agetty'
> mb-gcc -Os -g -fomit-frame-pointer -fno-common -Wall -mno-xl-soft-mul
> -mxl-barrel-shift -mno-xl-soft-div -Dlinux -D__linux__ -Dunix -D__uClinux__
> -DEMBED -nostdinc -I/home/deli/uclinux/src/uClinux-dist/include
> -I/home/deli/uclinux/src/uClinux-dist/include/include -fno-builtin
> -D__USE_BSD -c -o agetty.o agetty.c
> agetty.c:13: stdio.h: No such file or directory
> agetty.c:14: unistd.h: No such file or directory
> agetty.c:15: stdlib.h: No such file or directory
> agetty.c:16: sys/ioctl.h: No such file or directory
> agetty.c:17: termio.h: No such file or directory
> agetty.c:18: signal.h: No such file or directory
> agetty.c:19: errno.h: No such file or directory
> agetty.c:20: sys/types.h: No such file or directory
> agetty.c:21: sys/stat.h: No such file or directory
> agetty.c:22: fcntl.h: No such file or directory
> agetty.c:23: stdarg.h: No such file or directory
> agetty.c:24: ctype.h: No such file or directory
> agetty.c:25: utmp.h: No such file or directory
> agetty.c:26: getopt.h: No such file or directory
> agetty.c:27: memory.h: No such file or directory
> agetty.c:28: sys/file.h: No such file or directory
> agetty.c:31: sys/param.h: No such file or directory
> agetty.c:39: syslog.h: No such file or directory
>
>
> ___________________________
> 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/
--
Dr John Williams, Research Fellow,
Embedded Systems Group / Reconfigurable Computing
School of ITEE, The University of Queensland, Brisbane, Australia
(p) +61 7 33652185 (f) +61 7 33654999 (m) +61 403969243
<<winmail.dat>>