Thread overview
[Issue 9333] New: druntime module is not compiled into binary
Jan 17, 2013
Maxim Fomin
Jan 29, 2013
Maxim Fomin
January 17, 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@puremagic.com
        ReportedBy: maxim@maxim-fomin.ru


--- Comment #0 from Maxim Fomin <maxim@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: -------
January 22, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9333


Alex Rønne Petersen <alex@lycus.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alex@lycus.org


--- Comment #1 from Alex Rønne Petersen <alex@lycus.org> 2013-01-22 11:51:34 CET ---
I can't repro this issue. It links fine with 2.061: http://dpaste.dzfl.pl/96d98549

However, using the module at all is impossible until this PR is merged: https://github.com/D-Programming-Language/druntime/pull/389

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 29, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9333


Maxim Fomin <maxim@maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME


--- Comment #2 from Maxim Fomin <maxim@maxim-fomin.ru> 2013-01-29 11:58:55 PST ---
I placed druntime sources and binaries (as well as phobos) not in default place on linux. I am using such installation for many month and have never experienced linker errors. It is strange that switching to ldc2 fixes linking problem.

Since it is linkable using default settings and nobody else complained, I blame myself and mark issue as WORKSFORME, despite this is strange.

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