delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/08/27/04:00:25

Sender: tim AT mxrelay DOT g-net DOT be
Message-ID: <3B89FD0B.5E2AB900@falconsoft.be>
Date: Mon, 27 Aug 2001 09:55:55 +0200
From: Tim Van Holder <tim DOT vanholder AT falconsoft DOT be>
Organization: Anubex N.V.
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.16-3 i686)
X-Accept-Language: en, nl-BE, nl
MIME-Version: 1.0
To: Will Robinson <wsr23 AT Stanford DOT EDU>
CC: djgpp AT delorie DOT com
Subject: Re: linux->dos cross-compiler
References: <Pine DOT GSO DOT 4 DOT 31 DOT 0108241100250 DOT 5799-100000 AT elaine10 DOT Stanford DOT EDU>
Reply-To: djgpp AT delorie DOT com

Will Robinson wrote:
> 
> > Unless I'm mistaken, this resolves to
> >
> >   /opt/djgpp/i586-pc-msdosdjgpp/include
> >
> > Are you sure you extracted djcrx203 into /opt/djgpp/i586-pc-msdosdjgpp?
> 
> Yes, they're definitely there:
> 
> [wsr23 AT dhcp-197-222 djbuild]$ ls /opt/djgpp/i586-pc-msdosdjgpp/include
> ar.h      dir.h     float.h         ieeefp.h  machine/  pc.h
> [...]

Could you try
  ls
/opt/djgpp/lib/gcc-lib/i586-pc-msdosdjgpp/3.0.1/../../../../i586-pc-msdosdjgpp/include
  test -d
/opt/djgpp/lib/gcc-lib/i586-pc-msdosdjgpp/3.0.1/../../../../i586-pc-msdosdjgpp/include
&& echo OK
  (cd
/opt/djgpp/lib/gcc-lib/i586-pc-msdosdjgpp/3.0.1/../../../../i586-pc-msdosdjgpp/include
&& pwd)
in the shell to see whether this is a gcc issue, or something
to do with your system (though the latter is unlikely)?
If it is not your system that has problems with this path, try adding
some
diagnostic code to append_include_chain() in cppinit.c to see why it
thinks
that path doesn't exist (apparently, stat() returns ENOENT).
At least one issue seems apparent: append_include_chain() calls
_cpp_simplify_pathname, which is supposed to get rid of all the '../',
but clearly does not.  You may want to instrument that function for
debugging as well.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019