Sign up

problems compiling gtkd 3.3.0 (TestWindow) with gdc version 5.4.0 on ubuntu mate 16.04

I compiled and used gtkd 3.3.0 with gdc version 5.3.1 on xubuntu 16.04 without any problems that i was aware of.

On a different machine, which is running ubuntu mate 16.04 with gdc version 5.4, it no longer compiles.

I get a linking error when it tries to compile TestWindow, multiple definition of some symbol with a very long name that includes GMarkupParser as a substring:

./libgtkd-3.a(Range.o): In function _D3gtk6Widget6Widget10__mixin56514customTagStartMFC3gtk7Builder7BuilderC7gobject7ObjectG7ObjectGAyaJS4gtkc9glibtypes13GMarkupParserJPvZb':<br>Range.d:(.text+0x600): multiple definition of D3gtk6Widget6Widget10_mixin56514customTagStartMFC3gtk7Builder7BuilderC7gobject7ObjectG7ObjectGAyaJS4gtkc9glib\./libgtkd-3.a(Layout.o):Layout.d:(.text+0x60): first defined here

(It compiled for me on that machine on April 24, 2016, but i cannot tell from looking at the output what the compiler was at that time.)

(Note that there are differences between gdc 5.4.0 and 5.3.1, which is the reason that i was recompiling the library --- i had some problems linking some newly compiled code i had written. In fact, i got an undefined reference to `darraycatnT' so i figured that i needed to redo the library.)

Thanks in advance for any advice of any sort.

Re: problems compiling gtkd 3.3.0 (TestWindow) with gdc version 5.4.0 on ubuntu mate 16.04

On 07/23/2016 07:00 PM, dan hitt wrote:

I compiled and used gtkd 3.3.0 with gdc version 5.3.1 on xubuntu 16.04 without any problems that i was aware of.

On a different machine, which is running ubuntu mate 16.04 with gdc version 5.4, it no longer compiles.

I get a linking error when it tries to compile TestWindow, multiple definition of some symbol with a very long name that includes GMarkupParser as a substring:

./libgtkd-3.a(Range.o): In function _D3gtk6Widget6Widget10__mixin56514customTagStartMFC3gtk7Builder7BuilderC7gobject7ObjectG7ObjectGAyaJS4gtkc9glibtypes13GMarkupParserJPvZb':<br>Range.d:(.text+0x600): multiple definition of D3gtk6Widget6Widget10_mixin56514customTagStartMFC3gtk7Builder7BuilderC7gobject7ObjectG7ObjectGAyaJS4gtkc9glib\./libgtkd-3.a(Layout.o):Layout.d:(.text+0x60): first defined here

(It compiled for me on that machine on April 24, 2016, but i cannot tell from looking at the output what the compiler was at that time.)

(Note that there are differences between gdc 5.4.0 and 5.3.1, which is the reason that i was recompiling the library --- i had some problems linking some newly compiled code i had written. In fact, i got an undefined reference to `darraycatnT' so i figured that i needed to redo the library.)

Thanks in advance for any advice of any sort.

As far as i can tell its a bug in gdc, unfortunately i don't have any
advice.

https://github.com/gtkd-developers/GtkD/issues/156
http://bugzilla.gdcproject.org/show_bug.cgi?id=231

Re: problems compiling gtkd 3.3.0 (TestWindow) with gdc version 5.4.0 on ubuntu mate 16.04

On Sat, 23 Jul 2016 22:14:48 +0200, Mike Wey wrote:

On 07/23/2016 07:00 PM, dan hitt wrote:

I compiled and used gtkd 3.3.0 with gdc version 5.3.1 on xubuntu 16.04 without any problems that i was aware of.

On a different machine, which is running ubuntu mate 16.04 with gdc version 5.4, it no longer compiles.

.......

As far as i can tell its a bug in gdc, unfortunately i don't have any
advice.

https://github.com/gtkd-developers/GtkD/issues/156
http://bugzilla.gdcproject.org/show_bug.cgi?id=231

Thanks Mike!

That's very helpful because i (or anybody in a similar situation) can plan.

E.g., i can maybe use an older compiler until the bug is fixed.

Anyhow, the gdc 5.4 compiler was useful because it pointed out several places where i my code was kind of crummy but 5.3.1 did not object (e.g., string args[] versus string [] args, the package of stdlib, that kind of thing), but i guess not quite ready.

Thanks again, and thanks for your work on this really awesome gtkd library!

dan