Re: a mysterious linking error introduced by import a library

2023-10-14 Thread Johann via D.gnu
On Saturday, 14 October 2023 at 19:01:53 UTC, Iain Buclaw wrote: On Saturday, 14 October 2023 at 17:53:01 UTC, Johann wrote: I cannot figure out this error is caused by `squiz_box` libray, `gdc` or `dub`. My apologies to you if I should have filed this bug in other places. Thanks for your atten

Re: a mysterious linking error introduced by import a library

2023-10-14 Thread Johann via D.gnu
On Saturday, 14 October 2023 at 18:15:11 UTC, Richard (Rikki) Andrew Cattermole wrote: The frontend will attempt to not emit all template instantiations if it thinks that the instantiation isn't used. However it sometimes get this wrong, so you have to override it and tell it to emit them all a

Re: a mysterious linking error introduced by import a library

2023-10-14 Thread Johann via D.gnu
On Saturday, 14 October 2023 at 17:58:27 UTC, Richard (Rikki) Andrew Cattermole wrote: This may be a simple case of template emission eliding. Did you try ``-fall-instantiations`` inside of a dflags directive? Yeah, that works perfectly, thank you a lot. This may be a simple case of templat

a mysterious linking error introduced by import a library

2023-10-14 Thread Johann via D.gnu
The following is a project created by `dub init`. dub.json ```json { "authors": [ "john" ], "dependencies": { "squiz-box": { "repository": "git+https://github.com/rtbo/squiz-box.git";, "versio

Re: Instruct gdc to look for standard library in another directory

2023-07-08 Thread Johann via D.gnu
On Saturday, 1 July 2023 at 16:53:10 UTC, Johann wrote: On Saturday, 1 July 2023 at 15:36:55 UTC, Johann wrote: On Saturday, 1 July 2023 at 10:18:43 UTC, Iain Buclaw wrote: Is it too much to ask downstream package maintainers to politely use `/usr/share/dlang/{ldc,dmd}` ? :-) Thanks for your

Re: Instruct gdc to look for standard library in another directory

2023-07-01 Thread Johann via D.gnu
On Saturday, 1 July 2023 at 15:36:55 UTC, Johann wrote: On Saturday, 1 July 2023 at 10:18:43 UTC, Iain Buclaw wrote: Is it too much to ask downstream package maintainers to politely use `/usr/share/dlang/{ldc,dmd}` ? :-) Thanks for your help, Iain. I am going to report a bug to the distro mai

Re: Instruct gdc to look for standard library in another directory

2023-07-01 Thread Johann via D.gnu
On Saturday, 1 July 2023 at 10:18:43 UTC, Iain Buclaw wrote: Is it too much to ask downstream package maintainers to politely use `/usr/share/dlang/{ldc,dmd}` ? :-) Thanks for your help, Iain. I am going to report a bug to the distro maintainers then.

Instruct gdc to look for standard library in another directory

2023-06-30 Thread Johann via D.gnu
I have both `ldc` and `gdc` install on my OpenSUSE tumbleweed machine. Without `ldc-runtime-devel`, `gdc` is able to compile successfully. ```bash binary/usr/lib64/gcc/x86_64-suse-linux/13/d21 version v2.103.0-rc.1 predefs GNU D_Version2 LittleEndian GNU_DWARF2_Exceptions GNU_StackGr