[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Kernel compilation error: compr_rtime
Hi guys,
A couple of options to fixing this were posted to uClinux-dev in the
last day. Start here and follow the thread:
http://mailman.uclinux.org/pipermail/uclinux-dev/2004-July/027313.html
Cheers,
Davidm
Jivin John Williams lays it down ...
> Hi Dan,
>
> Dan Vestergaard wrote:
>
> >I have followed the instructions on the 'Microblaze uClinux Project Home
> >Page'.
> >I've downloaded the newest toolchain binaries and applied the patches
> >(there were 2, correct?).
>
> Yes, although neither is critical at this stage.
>
>
> >"make xconfig" - like this better than menuconfig
> >"make dep" - returns no errors
> >"make linux" - likewise
>
> So far so good.
>
> >"make" - returns this error
> >...
> >make[2]: Entering directory `/opt/uClinux/uClinux-dist/user/mtd-utils'
> >gcc -I/usr/include -c -o build/compr_rtime.o compr_rtime.c
> >compr_rtime.c:31: error: parse error before "uint32_t"
> >compr_rtime.c: In function `jffs2_rtime_compress':
> >compr_rtime.c:39: error: `sourcelen' undeclared (first use in this
> >function)
>
> [snip]
>
> First thing to note is that this is an invocation of "gcc", not
> "mb-gcc". When the mtd-utils are built, the build system creates host
> versions (with gcc), and target versions (in this case with mb-gcc) of
> the various tools.
>
> So, the problem realtes to the host build, not target.
>
> Looking at the error, it seems that maybe your host gcc is not happy
> with the type uint32_t. On my RedHat 8.0 system, this type is defined
> in /usr/include/linux/types.h
>
> You don't mention what linux distro you are using, perhaps it is
> something to do with that? I seem to recall problems a few people had
> similar strange host-based building issues under RedHat7.2 - it was
> fixed by upgrading to either 8.0 or 9. I think there are also people
> now using Fedora core, not sure.
>
> Not an answer yet, but a suggestion of where to go looking!
>
> Cheers,
>
> John
>
>
>
>
>
>
> >compr_rtime.c:39: error: (Each undeclared identifier is reported only once
> >compr_rtime.c:39: error: for each function it appears in.)
> >compr_rtime.c:39: error: `dstlen' undeclared (first use in this function)
> >compr_rtime.c:43: error: `data_in' undeclared (first use in this function)
> >compr_rtime.c:45: error: `cpage_out' undeclared (first use in this
> >function)
> >compr_rtime.c: At top level:
> >compr_rtime.c:71: error: parse error before "uint32_t"
> >compr_rtime.c: In function `jffs2_rtime_decompress':
> >compr_rtime.c:79: error: `destlen' undeclared (first use in this function)
> >compr_rtime.c:84: error: `data_in' undeclared (first use in this function)
> >compr_rtime.c:85: error: `cpage_out' undeclared (first use in this
> >function)
> >make[2]: *** [build/compr_rtime.o] Error 1
> >make[2]: Leaving directory `/opt/uClinux/uClinux-dist/user/mtd-utils'
> >make[1]: *** [all] Error 2
> >make[1]: Leaving directory `/opt/uClinux/uClinux-dist/user'
> >make: *** [subdirs] Error 1
> >
> >I have the kernel configured to the default values, jffs2 is not
> >selected, so it should no be compiled?
> >I have even tried enabling jffs2, but I get the same error.
> >
> >I get this same error for both the mbvanilla_net and mbvanilla_ddr targets.
> >
> >As I understand, the kernel image is built after the 'make linux'
> >command. Therefor I have an image file (appr. 11 MB), but this file
> >needs to be converted to image.elf and image.bin by 'make'.
> >
> >I hope that someone can help.
> >
> >Regards
> >Dan Vestergaard
> >
> >___________________________
> >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,
> Reconfigurable Computing, School of ITEE
> University of Queensland, Brisbane, Australia
> Ph : (07) 3365 8305
> ___________________________
> 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/
>
--
David McCullough, davidm@snapgear.com Ph:+61 7 34352815 http://www.SnapGear.com
Custom Embedded Solutions + Security Fx:+61 7 38913630 http://www.uCdot.org
___________________________
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/