delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/10/04:25:38

Date: Tue, 10 Oct 2000 10:13:08 +0200 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
To: Jose Manuel Lara Bauche Alcalde <bauche AT bigfoot DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: cross compiler
In-Reply-To: <39E28EB1.133F4047@bigfoot.com>
Message-ID: <Pine.A41.4.05.10010101005290.39970-100000@ieva06.lanet.lv>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com


Add command line option -v to command line and post output. Otherwise I
cannot guess what is wrong.

On Mon, 9 Oct 2000, Jose Manuel Lara Bauche Alcalde wrote:

> Hello Andris.
> 
> I tried to install your binaries. I installed it on /usr/local.
> Something went wrong: If I try to compile a simple Hello World program,
> using
> 
> $ dos-g++ -c -g ./hello.C ./hello.o
> 
> I get
> 
> dos-g++: ./hello.o: No such file or directory
> cpp: unrecognized option `-remap'
> cpp: djgpp.ver: No such file or directory
> 

try  
	dos-g++ -c -v hello.C -o hello.o
(see also option -o which was missing from command line above) 

> Or, if I try with
> 
> $ g++ -c -g ./hello.C ./hello.o -b i586-pc-msdosdjgpp
> 
> I get
> 
> g++: ./hello.o: No such file or directory
> 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

The same thing. No one  can say anything without actually seeing what
happens (hint use command line option -v)

> 
> Also, I tried to compile the binaries by myself:
> Using djcrx203.zip and building binutils and gcc under djgpp/cross:
> First I applied the patch to binutils and installed binutils and gcc as
> a native compiler
> Then, I configured binutils with the --target=i586-pc-msdosdjgpp and
> --prefix=/usr/local
> options and installed with no problem
> Finally, configured gcc with the above --target and --prefix options;
> edited the makefile
> for not do libgcc1-test,
> ran make and after a few hours of compile time, I got this error:
> 
> ../../../gcc-2.95.2/libiberty/pexecute.c: In function `pexecute':
> ../../../gcc-2.95.2/libiberty/pexecute.c:153: `spawnvp' undeclared
> (first use in this function)
> ../../../gcc-2.95.2/libiberty/pexecute.c:153: `spawnv' undeclared (first
> use in this function)
> ../../../gcc-2.95.2/libiberty/pexecute.c:200: warning: assignment
> discards qualifiers from pointer target type
> 
> 
> Please help!
> I hope to can either fix the installation of your binaries, or compile
> my own. ;-)
> Thanks for your support.
> 

To build cross-compiler Yourself You are expected to able to solve the
problems You met. It's hard to find what is source of Your problem from
distance.

Andris

- Raw text -


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