AdaCore / AdaCore/gnatcoll-bindings

Compiling Issue

Open
#10 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ada
Stars
15
Forks
15
PR merge metrics
No merged PRs in 30d

Description

I'm getting this error
hon_support.o: relocation R_X86_64_PC32 against symbol init_user_module can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status gprlib: /usr/bin/gcc execution error gprbuild: could not build library for project gnatcoll_python process failed with status: 4 ==> ERROR: A failure occurred in build().

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the gnatcoll_python build output and the gprbuild configuration that produces hon_support.o, then determine where the shared-object link is configured. Reproduce the build and trace compilation of hon_support.o; done means the gnatcoll_python library builds without the R_X86_64_PC32 relocation or final-link errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.