Bug 22178 – [REG 2.097] Compilers do not compile on Musl Libc
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2021-08-05T06:09:32Z
Last change time
2021-08-09T22:15:11Z
Keywords
pull
Assigned to
No Owner
Creator
Mathias LANG
Comments
Comment #0 by pro.mathias.lang — 2021-08-05T06:09:32Z
Trying to compile LDC or DMD results in:
```
core/stdc/math.d(811): Error: `pure` function `core.stdc.math.isnormal` cannot call impure function `core.stdc.math.fpclassify`
core/stdc/math.d(813): Error: `pure` function `core.stdc.math.isnormal` cannot call impure function `core.stdc.math.fpclassify`
core/stdc/math.d(815): Error: `pure` function `core.stdc.math.isnormal` cannot call impure function `core.stdc.math.fpclassify`
make[2]: *** [runtime/CMakeFiles/druntime-ldc-debug-shared.dir/build.make:334: runtime/objects-debug-shared/core/atomic.o] Error 1
make[2]: Leaving directory '/home/effortman/projects/bpfk/docker-agora-builder/ldc/src/ldc-1.27.0-src/stage1'
make[1]: *** [CMakeFiles/Makefile2:662: runtime/CMakeFiles/druntime-ldc-debug-shared.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
core/stdc/math.d(811): Error: `pure` function `core.stdc.math.isnormal` cannot call impure function `core.stdc.math.fpclassify`
core/stdc/math.d(813): Error: `pure` function `core.stdc.math.isnormal` cannot call impure function `core.stdc.math.fpclassify`
core/stdc/math.d(815): Error: `pure` function `core.stdc.math.isnormal` cannot call impure function `core.stdc.math.fpclassify`
make[2]: *** [runtime/CMakeFiles/druntime-ldc-debug.dir/build.make:334: runtime/objects-debug/core/atomic.o] Error 1
make[2]: Leaving directory '/home/effortman/projects/bpfk/docker-agora-builder/ldc/src/ldc-1.27.0-src/stage1'
make[1]: *** [CMakeFiles/Makefile2:802: runtime/CMakeFiles/druntime-ldc-debug.dir/all] Error 2
make[2]: Leaving directory '/home/effortman/projects/bpfk/docker-agora-builder/ldc/src/ldc-1.27.0-src/stage1'
make[2]: Entering directory '/home/effortman/projects/bpfk/docker-agora-builder/ldc/src/ldc-1.27.0-src/stage1'
```
Since v2.097.0
Comment #1 by dlang-bot — 2021-08-05T06:36:32Z
@Geod24 created dlang/druntime pull request #3538 "Fix 22178: fpclassify is pure on Musl too" fixing this issue:
- Fix 22178: fpclassify is pure on Musl too
https://github.com/dlang/druntime/pull/3538
Comment #2 by dlang-bot — 2021-08-05T08:58:48Z
dlang/druntime pull request #3538 "Fix 22178: fpclassify is pure on Musl too" was merged into stable:
- 0d40912e0b3283b0d114c25e8d69bae9b2365de3 by Geod24:
Fix 22178: fpclassify is pure on Musl too
https://github.com/dlang/druntime/pull/3538
Comment #3 by dlang-bot — 2021-08-09T22:15:11Z
dlang/druntime pull request #3540 "merge stable" was merged into master:
- d481db2c121828af6f3f32c91bd1d8f63d91d791 by Geod24:
Fix 22178: fpclassify is pure on Musl too
https://github.com/dlang/druntime/pull/3540