AdaCore / gtkada

Ada bindings for the GTK+ graphical library.
Other
88 stars 19 forks source link

gtkada-gtkada-17.0/src/obj/gtkada/relocatable/misc.o: relocation R_X86_64_32 against .rodata.str1.1' #33

Open MarioBlunk opened 4 years ago

MarioBlunk commented 4 years ago

After a kernel update to 5.8.0 it seems the issue is back:

If I run: ./configure ./configure --with-GL=no

make

I get stuck with the error aforementioned.

/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: /home/xyz/git/BEL/ada_training/gtkada/gtkada-gtkada-17.0/src/obj/gtkada/relocatable/misc.o: relocation R_X86_64_32 against.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC collect2: error: ld returned 1 exit status gprlib: /usr/bin/gcc execution error gprbuild: could not build library for project gtkada make: *** [Makefile:84: build_library_type/relocatable] Error 4`

The system is:

How to proceed ? Thanks.

Originally posted by @MarioBlunk in https://github.com/AdaCore/gtkada/issues/10#issuecomment-678466802

MarioBlunk commented 4 years ago

Solution: Since Linux kernel 5.8.x compiling gtkada version 17.0 is not possible any longer. The issue can be solved either by:

  1. appying patches as described in https://github.com/AdaCore/gtkada/issues/10
  2. or checking out the latest commit of gtkada and compiling the package. (The preliminary unofficial release number is 18.0w). For this case I modified the install script https://github.com/Blunk-electronic/ada_training/blob/master/install-gtkada.sh . It installs gtkada 18.0w on OpenSuse Tumbleweed. Please find more on https://github.com/Blunk-electronic/ada_training/blob/master/gtkada-installation.md .

I appreciate all kinds of feedback to improve the install script.