Bug 1212913 - ldc-runtime-devel and ldc-phobos-devel conflicts with gcc-d
Summary: ldc-runtime-devel and ldc-phobos-devel conflicts with gcc-d
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: x86-64 Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Guillaume GARDET
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-01 17:16 UTC by Tori Haji
Modified: 2023-07-10 14:05 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
gdc compilation error message (10.36 KB, text/x-log)
2023-07-01 17:16 UTC, Tori Haji
Details

Note You need to log in before you can comment on or make changes to this bug.
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