Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MarioBlunk opened this issue Aug 21, 2020 · 1 comment

Comments

@MarioBlunk
Copy link

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:

  • OpenSuse Tumbleweed
  • GPRBUID Community 2019 (64bit)
  • GCC 10.2.1 20200805 x86_64-suse-linux
  • gtk+ 3.24.22

How to proceed ?
Thanks.

Originally posted by @MarioBlunk in #10 (comment)

@MarioBlunk
Copy link
Author

MarioBlunk commented Sep 2, 2020

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 Build failure on x86_64 linux: relocation R_X86_64_32 can not be used #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant