FS#62726 - [gcc] Add D language support
Attached to Project:
Arch Linux
Opened by loqs (loqs) - Thursday, 23 May 2019, 18:20 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Thursday, 24 October 2019, 16:38 GMT
Opened by loqs (loqs) - Thursday, 23 May 2019, 18:20 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Thursday, 24 October 2019, 16:38 GMT
|
Details
Description:
The gcc 9 release added D programming language support which is currently supplied by gdc 8.2.1+2.068.2-2. Additional info: * gcc 9.1.0-1 * https://www.gnu.org/software/gcc/gcc-9/changes.html |
This task depends upon
Closed by Bartłomiej Piotrowski (Barthalion)
Thursday, 24 October 2019, 16:38 GMT
Reason for closing: Fixed
Additional comments about closing: gcc 9.2.0-3
Thursday, 24 October 2019, 16:38 GMT
Reason for closing: Fixed
Additional comments about closing: gcc 9.2.0-3
UPDATE:
new files for building gcc with d support
paths.diff (1.2 KiB)
PKGBUILD (15 KiB)
gdc (0 KiB)
phobos_path.patch (1.3 KiB)
The current gdc package is useless. Also, you will need gdc 9 to bootstrap gdc 10 when upstream releases it. The merge of gdc in the gcc package is inevitable and will not break other packages because the only affected package is already broken :) .
https://bugs.archlinux.org/task/62726?getfile=17653
https://bugs.archlinux.org/task/62726?getfile=17654
https://bugs.archlinux.org/task/62726?getfile=17655
https://aur.archlinux.org/packages/gdc-static/ - this is what is part of gcc9 (c++ DMDFE 2.076.1)
https://aur.archlinux.org/packages/gdc-git/ - this is what would be part of gcc10 (dlang DMDFE 2.086.0)
Other way is to have some wrapper as I have posted her which add -shared-libphobos to gdc invokes. But to make check works you would have to somehow add this to flags. One way is add this line to prepare in PKGBUILD:
sed -i "/GDCFLAGSX=/s/-Wall/-shared-libphobos -Wall/" libphobos/configure
Server = https://pkgbuild.com/~bpiotrowski/gdc/
Should go above [core] due to reasons described above. You can find src.tar.gz files there as well.
https://github.com/gtkd-developers/GtkD/issues/282