[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] PATH_MAX undefined error
- To: microblaze-uclinux@xxxxxxxxxxxxxx
- Subject: Re: [microblaze-uclinux] PATH_MAX undefined error
- From: "Nathan Hillery" <nhillery1@xxxxxxxxx>
- Date: Fri, 5 Sep 2008 16:34:28 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=GtCH6ceEMGMnEltW88AMf36FzATWrJkj7GZR2iG5iAI=; b=JBVye3UkNwmowu3eTILR3Ox+YI2GOD9f12weWqnG6E4o46RdyN3k3rzZskD5LiUBih 1ROSxsN8ka7D8dlE2XbiFFvVkoyIMBhF5Rxkn8JGZ+iOAQsRYt6jFC0rsZoKpT095O4b feeUl0EWXPbmuMl4zrZ8gcJQccqjAlh76EPlc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=WJoSA1oAppNquEPi2ENQUWdRRUX+xpRi3knj9UtN//5KEKTDKaVkSITxOjnU6rtZ7W 0QuodyPdUxzuoXA4adPfhCNKUIh2KYLJE7FqqLU/AKxr15rHAcpszKapEGjjcr46R/97 zyKITRZa1D9qc5l2wbmN46C821Oqr0ljlFCDY=
- In-reply-to: <48C163F0.3070505@xxxxxxxxxxxx>
- References: <48C163F0.3070505@xxxxxxxxxxxx>
- Reply-to: microblaze-uclinux@xxxxxxxxxxxxxx
- Sender: owner-microblaze-uclinux@xxxxxxxxxxxxxx
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/