Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • YARR YARR
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 68
    • Issues 68
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 44
    • Merge requests 44
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • YARR
  • YARRYARR
  • Issues
  • #151
Closed
Open
Created May 09, 2022 by Bruce Joseph Gallop@bgallopMaintainer

Shared libraries and debug

I've noticed a couple of things about the new shared library build, and also the .debug files, and was wondering what the fix should be.

(I think some of this has been mentioned in comments to merge requests, but I couldn't find an Issue)

Currently (devel), the binaries are installed into bin, but they have RPATH pointing to build/lib to find the shared libraries.

This conflicts with how the .debug files are found, because they are installed to lib. gdb can't find them, because it's loading from build/lib (a temporary work around for this being to remove them from build/lib).

So, the RPATH needs fixing on install, but there are two options:

  • Remove RPATH setting in installed version
  • Hard-code the install directory in the binary

The first means the instructions would need updating to suggest adding $YARR/lib to LD_LIBRARY_PATH. The second means that the binaries are out of date if they're moved (though LD_LIBRARY_PATH would still work).

Assignee
Assign to
Time tracking