gtkada-gtkada-17.0/src/obj/gtkada/relocatable/misc.o: relocation R_X86_64_32 against .rodata.str1.1'
Nobody has claimed this yet.
- Dominant language
- Ada
- Stars
- 110
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
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 https://github.com/AdaCore/gtkada/issues/10#issuecomment-678466802
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with the shown configure command and make invocation on the listed OpenSUSE, GCC, and GPRbuild environment. Inspect Makefile:84 and the generated src/obj/gtkada/relocatable/misc.o build inputs; done means the relocatable library builds without the reported R_X86_64_32 linker error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100