www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/10/11:25:01

From: pavenis AT lanet DOT lv
To: "Jose Manuel Lara Bauche A." <bauche AT bigfoot DOT com>, djgpp AT delorie DOT com
Date: Tue, 10 Oct 2000 15:42:17 +0200
MIME-Version: 1.0
Subject: Re: cross compiler
Message-ID: <39E338D9.23895.EDA7A6@localhost>
References: <Pine DOT A41 DOT 4 DOT 05 DOT 10010101005290 DOT 39970-100000 AT ieva06 DOT lanet DOT lv>
In-reply-to: <Pine.LNX.4.21.0010100753530.13775-100000@cuarzo.localdomain>
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp AT delorie DOT com

On 10 Oct 2000, at 7:58, Jose Manuel Lara Bauche A. wrote:

> On Tue, 10 Oct 2000, Andris Pavenis wrote:
> 
> > 
> > Add command line option -v to command line and post output. Otherwise I
> > cannot guess what is wrong.
> > 
> 
> Ok. Here it is:

If I understand correctly You have installed my binaries of Linux to 
DJGPP cross-compiler in  /usr/local. I configured them with prefix  /usr

> 
> $ dos-g++ -c -v hello.C -o hello.o
> 
> Using builtin specs.
> gcc version 2.95.2 19991024 (release)
>  cpp -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__unix__ -D__i386__ -D__GO32__ -D__DJGPP__=2 -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__MSDOS -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -
D__EXCEPTIONS -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentium__ -imacros djgpp.ver -remap hello.C /tmp/cc4xlskE.ii
> Reading specs from /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/specs
> cpp: unrecognized option `-remap'

Wrong prefix. dos-g++ unsuccesfully tries to find /usr/lib/gcc-lib/i586-
pc-msdosdjgpp/2.95.2 and falls back to invoke simply cpp and it is 
found in /usr/bin (perhaps). 

/usr/bin/cpp invokes Linux version of preprocessor. Of course You 
cannot expect right results.

> gcc version 2.95.2 19991024 (release)
>  /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/cpp -lang-c++ -v -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -Acpu(i386) -Amachine(i386) -D__cplusplus -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__linux -Asystem(posix) -
D__EXCEPTIONS -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di586 -Dpentium -D__i586 -D__i586__ -D__pentium -D__pentium__ -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__unix__ -D__i386__ -D__GO32__ -D__DJGPP__=2 -D__MSDOS__ -
D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__MSDOS -D__EXCEPTIONS -Di386 -D__i386 -D__i386__ -D__tune_pentium__ -imacros djgpp.ver hello.C -o /tmp/cc4xlskE.ii
> GNU CPP version 2.95.2 19991024 (release) (i386 Linux/ELF)
> #include "..." search starts here:
> #include <...> search starts here:
>  /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/../../../../include/g++-3
>  /usr/local/include
>  /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/../../../../i586-pc-linux-gnu/include
>  /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/include
>  /usr/include
> End of search list.
> The following default directories have been omitted from the search path:
> End of omitted list.
> cpp: djgpp.ver: No such file or directory
> 
> 
> $ g++ -c -v hello.C -o hello.o -b i586-pc-msdosdjgpp
> 
> Reading specs from /usr/local/lib/gcc-lib/i586-pc-msdosdjgpp/2.95.2/specs
> gcc version 2.95.2 19991024 (release)
>  /usr/local/lib/gcc-lib/i586-pc-msdosdjgpp/2.95.2/cpp -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__unix__ -D__i386__ -D__GO32__ -D__DJGPP__=2 -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__MSDOS -Asystem(unix) -
Asystem(msdos) -Acpu(i386) -Amachine(i386) -D__EXCEPTIONS -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentium__ -imacros /usr/local/lib/gcc-lib/i586-pc-msdosdjgpp/2.95.2/djgpp.ver -remap hello.C /tmp/ccQ6oVuc.ii
> GNU CPP version 2.95.2 19991024 (release) (80386, BSD syntax)
> #include "..." search starts here:
> End of search list.
> The following default directories have been omitted from the search path:
>  /usr/i586-pc-msdosdjgpp/lang/cxx
>  /usr/lib/gcc-lib/i586-pc-msdosdjgpp/2.95.2/include

Perhaps You have these files under /usr/local/... . As result they are 
not found. 

>  /usr/lib/gcc-lib/i586-pc-msdosdjgpp/2.95.2/../../../../i586-pc-msdosdjgpp/sys-include
>  /usr/lib/gcc-lib/i586-pc-msdosdjgpp/2.95.2/../../../../i586-pc-msdosdjgpp/include
> End of omitted list.
> In file included from hello.C:0:
> /usr/local/lib/gcc-lib/i586-pc-msdosdjgpp/2.95.2/djgpp.ver:1: No include path in which to find sys/version.h
> hello.C:3: No include path in which to find iostream.h
> 

Andris

- Raw text -


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