Failed to link a 7 month old GTKD project

Steven Schveighoffer schveiguy at gmail.com
Thu Aug 5 11:43:25 UTC 2021


On 8/5/21 6:50 AM, Ki Rill wrote:
> On Thursday, 5 August 2021 at 10:15:47 UTC, Mathias LANG wrote:
>> Pretty hard to know what got wrong without log. First question would 
>> be, did you do `dub -f` to make sure you were not linking with stale 
>> object file ? Better yet, did you try compiling from a clean checkout ?
>> A link to the code and a CI run that fails in the same way would be best.
> 
> Yes, I tried. It didn't help. I have another active GTKD project and it 
> compiles successfully with the same dub.json settings.
> 
> Here is the link to the 
> [code](https://github.com/rillki/extension-er/blob/main/source/app.d).

I git-cloned and built with dub on ubuntu 20.04. DMD version 2.097.0. 
Linked, no errors.

Not sure if it helps you, but it is a data point.

Any time I've had errors like that, I've just removed my ~/.dub 
directory, and the one in the project and it seems to help clear it up.

Note that the linker error you are getting is from Phobos (you can use 
`ddemangle` command line tool to see the actual symbol name), so it 
seems like you could be compiling against one version of Phobos, and 
then linking against another? How do you install your compiler? I 
recommend [dvm](https://github.com/jacob-carlborg/dvm) if you are using dmd.

-Steve


More information about the Digitalmars-d mailing list