[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] uClinux compile error on "make dep"
Hi Paul,
Many thanks for your replys. After intalling the zlib development files on
my Debian box, I was able to progress further. Unfortunately, another error
halted the "make" process, with a different error this time. It seems that
the "make" process was trying to copy /opt/uClinux-dist/images/image.bin
into /mnt/hgfs/Win_ublaze/. After checking my system, there appears to
be no sub-directories within /mnt. Wondering if you've ran into this as
well? Perhaps I am still missing some development files that I need to
install on my linux distro? Thank you kindly for helping along. Your time
is most appreciated.
Many thanks,
Dave.
---8<-snip---
cat /opt/uClinux-dist/images/linux.bin /opt/uClinux-dist/images/romfs.img >
/opt/uClinux-dist/images/image.bin
BSS=`mb-objdump --headers /opt/uClinux-dist/linux-2.4.x/linux | \
grep "\.bss"` ; \
ADDR=`set -- ${BSS} ; echo 0x${4}` ; \
mb-objcopy --add-section=.romfs=/opt/uClinux-dist/images/romfs.img \
--adjust-section-vma=.romfs=${ADDR} --no-adjust-warnings \
--set-section-flags=.romfs=alloc,load,data \
/opt/uClinux-dist/linux-2.4.x/linux
/opt/uClinux-dist/images/image.elf
BFD: /opt/uClinux-dist/images/image.elf: warning: allocated section `.romfs'
not in segment
mb-objcopy -O srec /opt/uClinux-dist/images/image.elf
/opt/uClinux-dist/images/image.srec
echo -ne "\000" >> /opt/uClinux-dist/images/image.bin
echo -n 3.2.0 >> /opt/uClinux-dist/images/image.bin
echo -ne "\000" >> /opt/uClinux-dist/images/image.bin
echo -n Xilinx >> /opt/uClinux-dist/images/image.bin
echo -ne "\000" >> /opt/uClinux-dist/images/image.bin
echo -n uclinux-auto >> /opt/uClinux-dist/images/image.bin
/opt/uClinux-dist/tools/cksum -b -o 2 /opt/uClinux-dist/images/image.bin >>
/opt/uClinux-dist/images/image.bin
# Copy image files into /tftpboot, if requested
[ -n "" ] || cp /opt/uClinux-dist/images/image.bin /mnt/hgfs/Win_ublaze/
cp: cannot create regular file `/mnt/hgfs/Win_ublaze/image.bin': No such
file or directory
make[1]: *** [image] Error 1
make[1]: Leaving directory `/opt/uClinux-dist/vendors/Xilinx/uclinux-auto'
make: *** [image] Error 2
------------------------------------------------------------------------------
----- Original Message -----
From: "Paul Logothetis" <pml@itee.uq.edu.au>
To: <microblaze-uclinux@itee.uq.edu.au>
Sent: Tuesday, July 26, 2005 7:10 PM
Subject: Re: [microblaze-uclinux] uClinux compile error on "make dep"
> Hi David,
>
> I ran into the same issue - it turned out that I didn't have the zlib
> development files installed on the machine I was using for compiling. For
> my
> distro (Centos 3), I had to install the "zlib-devel" package (yum install
> zlib-devel).
>
> Regards,
> Paul
>
> Quoting David Lai <dlai@irispower.com>:
>
>> Thank you Paul, for the suggestion of
>>
>> $ cvs update -d -D'July 12 2005'
>>
>> It has gotten "make dep" to complete successful again, however the
>> orginal
>> error from "make" was encountered.
>>
>> error from "make"
>> ---8<-snip---
>> In file included from /opt/uClinux-dist/user/cramfs/mkcramfs.c:36:
>> /opt/uClinux-dist/linux-2.4.x/include/linux/cramfs_fs.h:120:2: warning:
>> #warning "__BYTE_ORDER == __LITTLE_ENDIAN"
>> /opt/uClinux-dist/user/cramfs/mkcramfs.c:37:18: zlib.h: No such file or
>> directory
>> /opt/uClinux-dist/user/cramfs/mkcramfs.c: In function `cramsort':
>> /opt/uClinux-dist/user/cramfs/mkcramfs.c:156: warning: assignment
>> discards
>> qualifiers from pointer target type
>> /opt/uClinux-dist/user/cramfs/mkcramfs.c:157: warning: assignment
>> discards
>> qualifiers from pointer target type
>> /opt/uClinux-dist/user/cramfs/mkcramfs.c: In function `write_superblock':
>> /opt/uClinux-dist/user/cramfs/mkcramfs.c:397: error: `Z_NULL' undeclared
>> (first use in this function)
>> /opt/uClinux-dist/user/cramfs/mkcramfs.c:397: error: (Each undeclared
>> identifier is reported only once
>> /opt/uClinux-dist/user/cramfs/mkcramfs.c:397: error: for each function it
>> appears in.)
>> /opt/uClinux-dist/user/cramfs/mkcramfs.c: In function `main':
>> /opt/uClinux-dist/user/cramfs/mkcramfs.c:669: error: `Z_NULL' undeclared
>> (first use in this function)
>> make[1]: *** [mkcramfs] Error 1
>> make[1]: Leaving directory
>> `/opt/uClinux-dist/vendors/Xilinx/uclinux-auto'
>> make: *** [image] Error 2
>> -----------------------------------------------------------------------------
>>
>> From my interpretation, it seems the file zlib.h could not have been
>> found.
>> Thus, I have copied zlib.h into one of the directories where mkcramfs.c
>> searches for its included header files.
>> Specifically, I have copied zlib.h into /opt/uClinux-2.4.x/include/linux/
>>
>> This action has taken me another step further, or that is what I would
>> like
>> to believe.
>> However, a different error was encountered afterwards. (snip below)
>> Any help is greatly appreciated. Thank you very much for your time.
>>
>> Dave.
>
> ___________________________
> 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/
>
>
___________________________
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/