On 05/25/2014 07:09 AM, dan hitt wrote:

I'm using gdc 4.8.2 on ubuntu 14.04 for trying to build gtkd 2.3.2.

When i try 'make all', it compiles hundreds of sources, but then fails on the long long command to create libgtkd-2.so.

The command is:
gdc -shared -o libgtkd-2.so -Xlinker -ldl -m64 -Xlinker -soname=libgtkd-2.so.0 src/atk/Action.pic.o . . .

and the error message is:
/usr/bin/ld: /usr/lib/gcc/x8664-linux-gnu/4.8/libgphobos2.a(object.o): relocation RX866432S against `D10TypeInfom6initZ' can not be used when making a shared object; recompile with -fPIC<br>/usr/lib/gcc/x8664-linux-gnu/4.8/libgphobos2.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [libgtkd-2.so] Error 1

(Note: i did 'make' first, which went ok, then 'make all'.)

So, three questions:
(1) from this small amount of information, is there some corrective action anybody can recommend?

(2) what additional information would be helpful?

(3) if i cannot build this on ubuntu 14.04, what distro would be reasonable to try it with?

TIA for any advice!

dan

"make all" tries to build the shared version of GtkD, which is currently
only supported with dmd. I'll update the make file to not build the
shared version, plain "make" should build everything you'll need.