← Back to index
|
Original Bugzilla link
Bug 23161 – __mode_t defined twice for musl for non x86 arches
Status
NEW
Severity
regression
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2022-06-05T09:23:36Z
Last change time
2024-12-07T13:42:07Z
Assigned to
No Owner
Creator
Duncan
Moved to GitHub: dmd#17449 →
Comments
Comment #0
by dunk — 2022-06-05T09:23:36Z
Compilation fails for aarch64 for ldc 1.29.0 on alpine linux which includes a bundled druntime
https://gitlab.alpinelinux.org/a16bitsysop/aports/-/jobs/737278#L468
If Musl is detected __mode_t is defined here:
https://github.com/dlang/druntime/blob/9b17410d08b6dd280f71603124519d91c4a4a4d5/src/core/sys/posix/sys/stat.d#L1660
But it is also defined for HPPA:
https://github.com/dlang/druntime/blob/9b17410d08b6dd280f71603124519d91c4a4a4d5/src/core/sys/posix/sys/stat.d#L170
RISCV:
https://github.com/dlang/druntime/blob/9b17410d08b6dd280f71603124519d91c4a4a4d5/src/core/sys/posix/sys/stat.d#L486
ARM:
https://github.com/dlang/druntime/blob/9b17410d08b6dd280f71603124519d91c4a4a4d5/src/core/sys/posix/sys/stat.d#L568
Aarch64:
https://github.com/dlang/druntime/blob/9b17410d08b6dd280f71603124519d91c4a4a4d5/src/core/sys/posix/sys/stat.d#L663
Sparc:
https://github.com/dlang/druntime/blob/9b17410d08b6dd280f71603124519d91c4a4a4d5/src/core/sys/posix/sys/stat.d#L749
S390:
https://github.com/dlang/druntime/blob/9b17410d08b6dd280f71603124519d91c4a4a4d5/src/core/sys/posix/sys/stat.d#L841
SystemZ
https://github.com/dlang/druntime/blob/9b17410d08b6dd280f71603124519d91c4a4a4d5/src/core/sys/posix/sys/stat.d#L917
Currently ldc only compiles on alpine for x86_64 and aarch64
Comment #1
by robert.schadek — 2024-12-07T13:42:07Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/dmd/issues/17449
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB