delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/23/20:15:06

Sender: nate AT cartsys DOT com
Message-ID: <3590156A.457103C7@cartsys.com>
Date: Tue, 23 Jun 1998 13:51:54 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
MIME-Version: 1.0
To: Eric Devolder <eric DOT devolder AT eft DOT be>
CC: djgpp AT delorie DOT com
Subject: Re: as error message when trying to recompile djgpp lib
References: <199806231410 DOT QAA09228 AT sol2 DOT tvd DOT be>

Eric Devolder wrote:
> 
> Help please!
> 
> I try to recompile the standard libraries of djgpp, but
> I get problems when compiling assembly files. I do have all the
> sources, development tools, etc.
> 
> The error is the same for each module containing the FUNC() macro:
> 
> (the following lines are extracted from makefile output)
> 
> as   -o d0000.o d0000.s
> d0000.s: Assembler messages:
> d0000.s:4: Error: invalid character '(' in opcode
> d0000.s:5: Error: operands given don't match any known 386 instruction
> d0000.s:8: Error: invalid character '(' in opcode
> make.exe: *** [d0000.o] Error 1
[deleted]

If it's trying to assemble by running through `as', that's wrong.  It's
supposed to be doing something like this:

gcc -o d0000.o -c d0000.S

Only GCC knows about passing an assembly file through `cpp', and it has
to see the capital "S" extension to do it.

I suspect the problem is that you have Windows 95.  The library source
zipfile is not LFN-correct, so the .S files come out as .s.  You'll have
to rename them manually.

Btw, the library was written to compile with a somewhat older toolchain,
and as such is non-trivial to rebuild.  I recommend against doing it
unless you really feel you need to.  If you do, contact me by e-mail; I
have some suggestions/patches.

-- 

Nate Eldredge
nate AT cartsys DOT com


- Raw text -


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