www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22605] New: undefined references in druntime when using DMD


          Issue ID: 22605
           Summary: undefined references in druntime when using DMD on
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Solaris
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: jkruth telecolumbus.net


I tried to build and use DMD on OpenIndiana, a descendant of Solaris.
For this I chose the following procedure:

1. Build gdc
2. use gdc to build dmd from the github master branch (necessary because of
some recent Solaris specific fixes)
3. use dmd to compile druntime and phobos from master branches
4. tried to compile dub, dmd and a simple "Hello World!" program using the just
compiled dmd

With this approach I allways got the same output:

in function
undefined reference to `__stop_deh'                                             
undefined reference to `__start_deh'                                            
undefined reference to `__start_deh'                                            
collect2: error: ld returned 1 exit status

Compiling the targets of step 4 using GDC works without problems.

Dec 16 2021