delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/09/23:46:32

Sender: bauche AT delorie DOT com
Message-ID: <39E28EB1.133F4047@bigfoot.com>
Date: Mon, 09 Oct 2000 22:36:17 -0500
From: Jose Manuel Lara Bauche Alcalde <bauche AT bigfoot DOT com>
Organization: CINVESTAV Fisica
X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.13 i586)
X-Accept-Language: ex-MX, en
MIME-Version: 1.0
To: djgpp AT delorie DOT com
CC: Andris Pavenis <pavenis AT lanet DOT lv>
Subject: Re: cross compiler
References: <Pine DOT A41 DOT 4 DOT 05 DOT 10010071738330 DOT 53384-100000 AT ieva06 DOT lanet DOT lv>
Reply-To: djgpp AT delorie DOT com

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

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

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.

Andris Pavenis wrote:

>
> I think rather many poeple have done this. For DJGPP I'm using gcc-2.95.2
> which I built under Linux with such cross-compiler ...
>
> You can get my binaries at:
>         http://www.lanet.lv/~pavenis/djgpp/linux-x-djgpp/
>
> Andris

- Raw text -


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