Bug 1212913

Summary: ldc-runtime-devel and ldc-phobos-devel conflicts with gcc-d
Product: [openSUSE] openSUSE Tumbleweed Reporter: Tori Haji <kuroki>
Component: OtherAssignee: Guillaume GARDET <guillaume.gardet>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: guillaume.gardet, guillaume.gardet
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: gdc compilation error message

Description Tori Haji 2023-07-01 17:16:33 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.
Comment 1 Guillaume GARDET 2023-07-07 07:56:54 UTC
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.
Comment 2 Tori Haji 2023-07-08 08:30:07 UTC
@Guillaume GARDET

Problem is fixed after installing the artifacts from your repo. Thanks for your help.
Comment 3 Tori Haji 2023-07-08 15:50:25 UTC
Problem fixed. Closed this bug report.
Comment 4 OBSbugzilla Bot 2023-07-10 14:05:02 UTC
This is an autogenerated message for OBS integration:
This bug (1212913) was mentioned in
https://build.opensuse.org/request/show/1097968 Factory / ldc