delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/07/19:51:06

Date: Wed, 7 Jan 1998 16:49:20 -0800 (PST)
Message-Id: <199801080049.QAA10374@adit.ap.net>
Mime-Version: 1.0
To: Peter Palotas <blizzar AT hem1 DOT passagen DOT se>, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: cross-compiler, linux2dos

At 06:21  1/2/1998 -0500, Peter Palotas wrote:
>Hi, I am having troubles setting up a cross-compiler from Linux to dos.  I
>tried following the steps described in the FAQ, and the steps described in
>the djcx200.zip package (or something like that, the cross compiler package
>in the v2/ dir anyway).  Both attempts resulted in the same error while
>running gcc-dos; "Installation problem, can't find cpp", or something like
>that.
>
>I would really appreciate if someone could help me with this problem!
Follow the instructions in the `install' file, not the FAQ. It basically
worked fine for me, except that the files in the `cross' directory of
djcrx201.zip need to be moved/linked to the base directory before you do
anything else. Here are the commands I used for building a cross-compiler
hosted by i486-linux (Slackware 3.2). I used Binutils 2.7.0.9 (a version
specially patched for Linux) because I had it handy; it seems to work fine.

Eli, you may want to update the FAQ.

Oh yeah, one note: I think GCC might expect to be built with `cc'. If so,
just symlink `gcc' to `cc' and it works.

$ ls
djcrx201.zip    gcc-2.7.2.1.tar.gz      binutils-2.7.0.9.tar.gz
$ unzip -a djcrx201.zip   # The `-a' is important!
$ ln -s cross/* .   # These files belong in the top-level dir.
$ emacs makefile    # Edit per install file
$ tar xzf binutils-2.7.0.9.tar.gz
$ mv binutils-2.7.0.9 binutils-2.7 # To keep makefile happy.
$ tar xzf gcc-2.7.2.1.tar.gz 
$ patch <patch.lib
$ make all
$ make install  # You may need to run `su' depending on where you install.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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