[Issue 9333] New: druntime module is not compiled into binary

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 17 08:13:59 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9333

           Summary: druntime module is not compiled into binary
           Product: D
           Version: D2
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: druntime
        AssignedTo: nobody at puremagic.com
        ReportedBy: maxim at maxim-fomin.ru


--- Comment #0 from Maxim Fomin <maxim at maxim-fomin.ru> 2013-01-17 08:13:55 PST ---
Two month ago etc.linux.memoryerror module was added into druntime
(https://github.com/D-Programming-Language/druntime/blob/master/src/etc/linux/memoryerror.d)
for converting linux segfaults into exceptions.

However, it seems to be absent:
----------------------------
import etc.linux.memoryerror;
import core.stdc.stdio : printf;


class A { int x; }

void main()
{
    A a;
    try
    {
        a.x = 0;
    }
    catch(NullPointerError er)
    {
        printf("catched\n");
    }
}
------------------------------------------
main.o:(.data+0xd0): undefined reference to 
`_D3etc5linux11memoryerror16NullPointerError7__ClassZ'
collect2: error: ld returned 1 exit status
--- errorlevel 1


As suggested in this
thread(http://forum.dlang.org/thread/mailman.493.1358378360.22503.digitalmars-d@puremagic.com?page=1)
the module may not reach libdruntime/libphobos.a

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list