Bugzilla – Bug 1212913
ldc-runtime-devel and ldc-phobos-devel conflicts with gcc-d
Last modified: 2023-07-10 14:05:02 UTC
Created attachment 867923 [details] gdc compilation error message ldc2 and gdc(gcc-d) are two compilers of D programming language. Each has its separate runtime library. They cannot be mixed together. `ldc-runtime-devel` and `ldc-phobos-devel` installs runtime and std library at /usr/include/d. `gdc` installs its runtime and std library at /usr/lib64/gcc/x86_64-suse-linux/13/include/d. Unfortunately, when both `ldc-runtime-devel` and `gdc` are installed, gdc would look into /usr/include/d first, instead of its own accompanying source. And a compilation of a hello-world.d fails. I reported the problems to `gdc` maintainer at dlang forum, https://forum.dlang.org/post/kvhckvmmfdocfbxukesc@forum.dlang.org. Iain's suggestion is to move ldc's runtime and standard library to another location instead of /usr/include/d. Attached is the stderr message of gdc compilation.
Could you try ldc packages from https://build.opensuse.org/package/show/home:Guillaume_G:branches:devel:languages:D/ldc please? And let me know if it fixes your issue.
@Guillaume GARDET Problem is fixed after installing the artifacts from your repo. Thanks for your help.
Problem fixed. Closed this bug report.
This is an autogenerated message for OBS integration: This bug (1212913) was mentioned in https://build.opensuse.org/request/show/1097968 Factory / ldc