This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [help] Problem with fixincludes?
- From: Bruce Korb <bkorb at veritas dot com>
- To: "C Jaiprakash, Noida" <cjaiprakash at hcltech dot com>, gcc at gcc dot gnu dot org
- Date: Wed, 27 Oct 2004 06:58:10 -0700
- Subject: Re: [help] Problem with fixincludes?
- References: <267988DEACEC5A4D86D5FCD780313FBB01323FAA@exch-03.noida.hcltech.com>
- Reply-to: bkorb at veritas dot com
Hi,
This does not look like a fixinclude process. It comes from a Makefile
rule that looks like this:
# Build the version of limits.h that we will install.
xlimits.h: glimits.h limitx.h limity.h
if $(LIMITS_H_TEST) ; then \
cat $(srcdir)/limitx.h $(srcdir)/glimits.h \
$(srcdir)/limity.h > tmp-xlimits.h; \
else \
cat $(srcdir)/glimits.h > tmp-xlimits.h; \
fi
mv tmp-xlimits.h xlimits.h
which says that $(srcdir) expands to a non-existent path.
This is, indeed, very odd. I don't know how you could do that.
- Bruce
"C Jaiprakash, Noida" wrote:
>
> Hi,
> I forwarded this mail to you thinking you might be interested or can help me.
>
> 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
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> > 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-r
> > elease/gcc/limitx.h
> > /node4/home/cjaiprakash/work/devel/sources/gcc-3.4/gcc-3.4.0-r
> > elease/gcc/glimits.h
> > /node4/home/cjaiprakash/work/devel/sources/gcc-3.4/gcc-3.4.0-r
> > elease/gcc/limity.h > tmp-xlimits.h; \
> > else \
> > cat
> > /node4/home/cjaiprakash/work/devel/sources/gcc-3.4/gcc-3.4.0-r
> > elease/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?