Mail Archives: djgpp/1998/06/23/20:15:06
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 -