Mail Archives: djgpp/1997/12/15/06:20:05
On Mon, 15 Dec 1997, Gertjan Klein wrote:
> Unfortunately, I can't seem to get the docs produced. I downloaded
> the library source, started compiling, found out I needed gpp for the
> mkdoc utility that was needed for the creation of the docs, downloaded
> that - but I still can't get mkdoc to compile (the whole libc compiles
> just fine).
This is one of the difficulties. The libc build setup doesn't work for
everyone without some wrestling.
> This is what I get (long lines wrapped and indented):
>
> u:\djgpp\src\mkdoc>make
> ld ../../lib/crt0.o mkdoc.o -L../../lib/ -lgcc -lc -o ../../bin/mkdoc.exe
> -T ../../lib/djgpp.djl
> ../../lib//libc.a(doprnt.o)(.text+0xa0b):doprnt.c: undefined reference to
> `__umoddi3'
__umoddi3 is from libgcc.a. The problem is that the Makefile is wrong in
saying "-lgcc -lc"; it should have said "-lc -lgcc -lc" instead.
> Do you have any idea what could be the problem?
> The faq doesn't mention it either.
The present version of the FAQ was written when nobody was bold enough to
rebuild the library (or at least they did that quietly). The next
release of the FAQ will probably include a section about that. The libc
build procedure is being revised for v2.02, so some of the problems will
go away.
> gcc @../../gcc.opt -I. -I- -I../../../include -Wno-error
> -Wno-strict-prototypes -D_USE_LIBM_MATH_H -c s_finite.S
> u:/djgpp/tmp\ccbaaaaa: Assembler messages:
> u:/djgpp/tmp\ccbaaaaa:114: Error: register does not match opcode suffix
> make.exe: *** [s_finite.o] Error 1
The assembler from Binutils 2.7 is less tolerant to operand-opcode
mismatches (such as using movl to move a byte), and the current version of
libc was built before Binutils 2.7 appeared. You need to correct that
assembly source to say "setneb" instead of "setnel".
> BTW - I got the messages from you two in email, but not in the newsgroup
> - even though you responded to each other (and hence must see each
> other's messages). I assume you are on some mailinglist, could there be
> a problem in the mail->news gateway?
This is normal: the propagation delays of the news servers can be as much
as several days, depending on where do you live. Mailing list is much
faster, but if you can use Usenet news, please do that, to ease the load
on DJ Delorie's server (which runs the gateway). For urgent queries,
include your (un-antispammed) email address in the From: field, as many
newsreaders will automatically cc: you.
> Anyway, since I can't see what's
> being said on the mailing list I responded via email; I hope you don't
> mind.
Please also cc: the mailing list or post to the news group. Otherwise,
others won't see the continuation of this thread and couldn't help you.
- Raw text -