This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[help] Problem with fixincludes?
- From: "C Jaiprakash, Noida" <cjaiprakash at hcltech dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 27 Oct 2004 14:16:15 +0530
- Subject: [help] Problem with fixincludes?
Hi,
I have built gcc 3.4 for m68k-linux using --with-headers in configuration.
gcc gets build fine but when i try to use LINE_MAX in a test case i get
"undeclared LINE_MAX" error. limits.h is included though. Looking closer I
found that during headers fixing process something like this happens
if [ -f
/home/cjaiprakash/m68k-linux/gcc-3.4.0/lib/gcc/m68k-linux/3.4.0/../../../../
m68k-linux/sys-include/limits.h ] ; then \
cat
/node4/home/cjaiprakash/work/devel/sources/gcc-3.4/gcc-3.4.0-release/gcc/lim
itx.h
/node4/home/cjaiprakash/work/devel/sources/gcc-3.4/gcc-3.4.0-release/gcc/gli
mits.h
/node4/home/cjaiprakash/work/devel/sources/gcc-3.4/gcc-3.4.0-release/gcc/lim
ity.h > tmp-xlimits.h; \
else \
cat
/node4/home/cjaiprakash/work/devel/sources/gcc-3.4/gcc-3.4.0-release/gcc/gli
mits.h > tmp-xlimits.h; \
fi
Though
/home/cjaiprakash/m68k-linux/gcc-3.4.0/m68k-linux/sys-include/limits.h is
present but
/home/cjaiprakash/m68k-linux/gcc-3.4.0/lib
/home/cjaiprakash/m68k-linux/gcc-3.4.0/lib/gcc
/home/cjaiprakash/m68k-linux/gcc-3.4.0/lib/gcc/m68k-linux/
/home/cjaiprakash/m68k-linux/gcc-3.4.0/lib/gcc/m68k-linux/3.4.0/
are not yet created so i guess wrong tmp-xlimits.h gets created that's why i
am getting LINE_MAX undeclared error. Am i doing anythig wrong in
configuration? Should i use
--with-sys-root instead of --with-headers?
Thanks and best regards,
C Jaiprakash
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Contributing to the World by creating indispensable value !
System Software CoE @ HCLT-Noida
http://www.hcltechnologies.com
Ph. : +91-120-2510701/702 Ext : 3170
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~