[Issue 22605] New: undefined references in druntime when using DMD on Illumos/Solaris

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 16 22:46:52 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=22605

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

Hello,

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:

/usr/bin/ld:
./dmd/generated/solaris/release/64/../../../../../phobos/generated/solaris/release/64/libphobos2.a(sections_solaris_afa_4e2.o):
in function
`_D2rt16sections_solaris12SectionGroup8ehTablesMxFNbNdNiZAySQCf15deh_w
in64_posix9FuncTable':                                                          
src/rt/sections_solaris.d:(.text._D2rt16sections_solaris12SectionGroup8ehTablesMxFNbNdNiZAySQCf15deh_win64_posix9FuncTable+0x7):
undefined reference to `__stop_deh'                                             
/usr/bin/ld:
src/rt/sections_solaris.d:(.text._D2rt16sections_solaris12SectionGroup8ehTablesMxFNbNdNiZAySQCf15deh_win64_posix9FuncTable+0xe):
undefined reference to `__start_deh'                                            
/usr/bin/ld:
src/rt/sections_solaris.d:(.text._D2rt16sections_solaris12SectionGroup8ehTablesMxFNbNdNiZAySQCf15deh_win64_posix9FuncTable+0x36):
undefined reference to `__start_deh'                                            
collect2: error: ld returned 1 exit status

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

--


More information about the Digitalmars-d-bugs mailing list