Mail Archives: djgpp/2001/08/24/04:53:52
Will Robinson wrote:
>
> > > Looks like the compiler is generating bogus assembler.
> >
> > Yup. Actually, I can't currently get this far, as binutils 2.11 had a
> > serious bug with DJGPP (an assertion failure in the assembler). That's
> > probably why I didn't build any of the libs.
>
> Just FYI, I found that the offending assembler line is:
>
> def __vptr$__basic_file<char>; .val 0; .scl 8; .type 01124; .endef
>
> (I compressed some excess whitespace there).
>
> My assembler knowledge is pretty shallow, so that line is Greek to me.
> Just trying to provide all the information I can...
Seems to be a bug in the debugging info (gcc is probably not very
COFF-oriented). Try changing the -g in the compiler flags to -gstabs
(or -gstabs+3 to have huge amounts of debug info); that might help.
I'd also suggest submitting a PR about this at the GCC GNATS page.
> Looks like it's indeed confused about header locations, but should be
> easy to fix(?)...
> Result:
>
> ignoring nonexistent directory
> "lib/gcc-lib/i586-pc-msdosdjgpp/3.0.1/include"
> ignoring nonexistent directory
> "lib/gcc-lib/i586-pc-msdosdjgpp/3.0.1/../../../../i586-pc-msdosdjgpp/sys-include"
> ignoring nonexistent directory
> "lib/gcc-lib/i586-pc-msdosdjgpp/3.0.1/../../../../i586-pc-msdosdjgpp/include"
Those are probably due to the -B option used and are harmless (I hope).
> ignoring nonexistent directory
> "/opt/djgpp/lib/gcc-lib/i586-pc-msdosdjgpp/3.0.1/include"
> ignoring nonexistent directory
> "/opt/djgpp/lib/gcc-lib/i586-pc-msdosdjgpp/3.0.1/../../../../i586-pc-msdosdjgpp/sys-include"
> ignoring nonexistent directory
> "/opt/djgpp/lib/gcc-lib/i586-pc-msdosdjgpp/3.0.1/../../../../i586-pc-msdosdjgpp/include"
Unless I'm mistaken, this resolves to
/opt/djgpp/i586-pc-msdosdjgpp/include
Are you sure you extracted djcrx203 into /opt/djgpp/i586-pc-msdosdjgpp?
> #include "..." search starts here:
> #include <...> search starts here:
> include
> End of search list.
> /opt/djgpp/i586-pc-msdosdjgpp/bin/as -o foo.o /tmp/ccoAMLMy.s
>
- Raw text -