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

Re: [microblaze-uclinux] PATH_MAX undefined error



This error is occurring while compiling a host utility (hence the "HOSTCC").
PATH_MAX should be defined in linux/limits.h (which appears to be
included by way of limits.h, bits/local_lim.h)
To investigate, please do the following:
1. cd software/linux-2.6.x-petalogix
2. gcc -E  -c -o scripts/mod/sumversion.E scripts/mod/sumversion.c

In my output around line 659 I have:
---
# 1 "/usr/lib/gcc/i486-linux-gnu/4.2.3/include/limits.h" 1 3 4
# 122 "/usr/lib/gcc/i486-linux-gnu/4.2.3/include/limits.h" 3 4
# 1 "/usr/include/limits.h" 1 3 4
# 145 "/usr/include/limits.h" 3 4
# 1 "/usr/include/bits/posix1_lim.h" 1 3 4
# 153 "/usr/include/bits/posix1_lim.h" 3 4
# 1 "/usr/include/bits/local_lim.h" 1 3 4
# 36 "/usr/include/bits/local_lim.h" 3 4
# 1 "/usr/include/linux/limits.h" 1 3 4                      <---------------
# 37 "/usr/include/bits/local_lim.h" 2 3 4
# 154 "/usr/include/bits/posix1_lim.h" 2 3 4
# 146 "/usr/include/limits.h" 2 3 4
----

This is shortly after the iovec struct is defined, to give a landmark.

For completeness sake, what version of gcc are you running? (gcc --version)

On Fri, Sep 5, 2008 at 12:53 PM, Chris Robson <Chris.Robson@xxxxxxxxxxxx> wrote:
>
> I followed the steps in subtitle: "Working with PetaLinux - The Basics" but
> when issuing the "make all" command the following error occurs. Any help is
> appreciated.....chris
>
> make[1]: Entering directory
> `/develop/PETALINUX/petalinux-v0.30-rc1/software/linux-2.6.x-petalogix'
> CHK include/linux/version.h
> CHK include/linux/utsrelease.h
> HOSTCC scripts/mod/sumversion.o
> scripts/mod/sumversion.c: In function 'get_src_version':
> scripts/mod/sumversion.c:384: error: 'PATH_MAX' undeclared (first use in
> this function)
> scripts/mod/sumversion.c:384: error: (Each undeclared identifier is reported
> only once
> scripts/mod/sumversion.c:384: error: for each function it appears in.)
> scripts/mod/sumversion.c:384: warning: unused variable 'filelist'
> make[3]: *** [scripts/mod/sumversion.o] Error 1
> make[2]: *** [scripts/mod] Error 2
> make[1]: *** [scripts] Error 2
>
> ___________________________
> 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/
>
>
___________________________
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/