www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - -cov and linking bugs

reply John Demme <me teqdruid.com> writes:
On Linux with DMD 0.150:

When I try to build my Mango programs with -cov, I get some linking issues. 
Anybody have any idea why?

Thanks,
John Demme

/home/teqdruid/workspace/include/mango/convert/Format.o:(.data+0x11c):
undefined reference to `_ModuleInfo_3std6stdarg'
/home/teqdruid/workspace/include/mango/io/FileProxy.o:(.data+0x12c):
undefined reference to `_ModuleInfo_3std1c5stdio'
/home/teqdruid/workspace/include/mango/io/DisplayWriter.o:(.data+0x8c):
undefined reference to `_ModuleInfo_3std6stdarg'
/home/teqdruid/workspace/include/mango/sys/ByteSwap.o:(.data+0x48):
undefined reference to `_ModuleInfo_3std9intrinsic'
/home/teqdruid/workspace/include/mango/xml/sax/parser/teqXML.o
(.data+0x21c): undefined reference to `_ModuleInfo_3std1c6stdlib'
collect2: ld returned 1 exit status
--- errorlevel 1
Mar 19 2006
parent "Unknown W. Brackets" <unknown simplemachines.org> writes:
I reported the same issue on 2006-02-18, and from what I've seen it 
looks like it has to do with how the library was built and linked together.

On Windows, or at least with the Windows version of phobos, I do not see 
this problem - but strangely, I get an error at runtime (with perfectly 
valid code) then.

So, it seems the code coverage - as current - only works on smaller 
bases of code.  Hopefully we'll see improvements to it in the future.

-[Unknown]


 On Linux with DMD 0.150:
 
 When I try to build my Mango programs with -cov, I get some linking issues. 
 Anybody have any idea why?
 
 Thanks,
 John Demme
 
 /home/teqdruid/workspace/include/mango/convert/Format.o:(.data+0x11c):
 undefined reference to `_ModuleInfo_3std6stdarg'
 /home/teqdruid/workspace/include/mango/io/FileProxy.o:(.data+0x12c):
 undefined reference to `_ModuleInfo_3std1c5stdio'
 /home/teqdruid/workspace/include/mango/io/DisplayWriter.o:(.data+0x8c):
 undefined reference to `_ModuleInfo_3std6stdarg'
 /home/teqdruid/workspace/include/mango/sys/ByteSwap.o:(.data+0x48):
 undefined reference to `_ModuleInfo_3std9intrinsic'
 /home/teqdruid/workspace/include/mango/xml/sax/parser/teqXML.o
 (.data+0x21c): undefined reference to `_ModuleInfo_3std1c6stdlib'
 collect2: ld returned 1 exit status
 --- errorlevel 1
 
Mar 19 2006