Bug 22605 – undefined references in druntime when using DMD on Illumos/Solaris

Status
NEW
Severity
normal
Priority
P3
Component
druntime
Product
D
Version
D2
Platform
x86_64
OS
Solaris
Creation time
2021-12-16T22:46:52Z
Last change time
2024-12-07T13:41:38Z
Assigned to
No Owner
Creator
jkruth
Moved to GitHub: dmd#17433 →

Comments

Comment #0 by jkruth — 2021-12-16T22:46:52Z
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.
Comment #1 by robert.schadek — 2024-12-07T13:41:38Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17433 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB