Skip to content

undefined references in druntime when using DMD on Illumos/Solaris #2479

Open
@dlangBugzillaToGithub

Description

@dlangBugzillaToGithub

jkruth reported this on 2021-12-16T22:46:52Z

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

CC List

  • Brian Callahan
  • Iain Buclaw

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions