www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/14/20:00:17

Xref: news2.mv.net comp.os.msdos.djgpp:7277 gnu.gcc.help:7867
From: nleroy AT norland DOT idcnet DOT com (Nicholas R LeRoy)
Newsgroups: gnu.gcc.help,comp.os.msdos.djgpp
Subject: Building DJ cross compiler.
Date: 14 Aug 1996 19:47:39 GMT
Organization: Norland Corp, Fort Atkinson, WI
Lines: 42
Message-ID: <4utagr$k9f@norgate.norland.com>
NNTP-Posting-Host: norsun.norland.idcnet.com
Summary: Need help building a 'DJGPP' cross compiler
Keywords: djgpp cross compiler gcc
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hello all...

Recently, I've been trying to build a cross (SunOS / Linux) --> MS-DOG (DJ)
compiler, and am getting nothing but headaches.  For the life of me, I
cannot seem to generate a compiler (for either Sun or Linux) which builds
a DJ compatible object, or link DJ generated objects, or build a DOS .exe
file.

Yes, I have all of DJ, and have been reading FAQs and READMEs.  I have
'djcrx200' kit, also.  What I *think* that I need is the magic configuration
option to generate things (i.e. --target=i486-xxx-xxx).  I've tried all
kinds of incantations of this, tried studying the dj source tree itself, etc.

So far, the best I can get is .o files that 'file' reports as
'80386 COFF executable not stripped - version 30821', which is the same as
it reports for the DOS based DJGPP, but still won't link up.  Get linking
problems such as (depending upon the version that I most recently
expirimented with):

i486-coff-go32-ld: warning: cannot find entry symbol _start; defaulting to 000010a8
/home/soft/nleroy/devel/gcc/sparc/i486-coff-go32/lib/libc.a(_main.o)\
    (.text+0x1a):_main.c: undefined reference to `djgpp_last_ctor'

I also seem to be having problems with the leading '_' on symbols --
DJ seems to create _main, but my 'main' is just plain old 'main'.

Please PLEASE, if anybody out there knows the magic incantation, please
enlighten me.  Thank you *very* kindly in advance.

-Nick
--
+--------------------------------------+-------------------------------------+
| /`-_     Nicholas R LeRoy            | Linux -- What *nix was meant to be. |
|{     }/  nleroy AT norland DOT idcnet DOT com   | gcc   -- What C was meant to be.    |
| \ *  /   Norland Corp                +-------------------------------------+
| |___|    W6340 Hackbarth Rd          |  Escape the Gates of Hell with      |
|          Fort Atkinson, WI 53530     |   The choice of a GNU generation... |
+--------------------------------------+-------------------------------------+
| Hey -- These are my own ideas, not my employer's.  Don't blame them...     |
+--------------------------------------+-------------------------------------+

- Raw text -


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