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

bear: fix LD_PRELOAD error #36178

Merged
merged 1 commit into from
Mar 1, 2018
Merged

bear: fix LD_PRELOAD error #36178

merged 1 commit into from
Mar 1, 2018

Conversation

babariviere
Copy link
Contributor

Motivation for this change

Bear wasn't able to execute properly. Each time I run it, I have this error:

[nix-shell:~/42/libft]$ bear make re
ERROR: ld.so: object '/nix/store/c5fmm1470zbsfrw2cysjsfcl4yihznhi-bear-2.3.11//nix/store/c5fmm1470zbsfrw2cysjsfcl4yihznhi-bear-2.3.11/lib/bear/libear.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/nix/store/c5fmm1470zbsfrw2cysjsfcl4yihznhi-bear-2.3.11//nix/store/c5fmm1470zbsfrw2cysjsfcl4yihznhi-bear-2.3.11/lib/bear/libear.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/nix/store/c5fmm1470zbsfrw2cysjsfcl4yihznhi-bear-2.3.11//nix/store/c5fmm1470zbsfrw2cysjsfcl4yihznhi-bear-2.3.11/lib/bear/libear.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/nix/store/c5fmm1470zbsfrw2cysjsfcl4yihznhi-bear-2.3.11//nix/store/c5fmm1470zbsfrw2cysjsfcl4yihznhi-bear-2.3.11/lib/bear/libear.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/nix/store/c5fmm1470zbsfrw2cysjsfcl4yihznhi-bear-2.3.11//nix/store/c5fmm1470zbsfrw2cysjsfcl4yihznhi-bear-2.3.11/lib/bear/libear.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/nix/store/c5fmm1470zbsfrw2cysjsfcl4yihznhi-bear-2.3.11//nix/store/c5fmm1470zbsfrw2cysjsfcl4yihznhi-bear-2.3.11/lib/bear/libear.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/nix/store/c5fmm1470zbsfrw2cysjsfcl4yihznhi-bear-2.3.11//nix/store/c5fmm1470zbsfrw2cysjsfcl4yihznhi-bear-2.3.11/lib/bear/libear.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/nix/store/c5fmm1470zbsfrw2cysjsfcl4yihznhi-bear-2.3.11//nix/store/c5fmm1470zbsfrw2cysjsfcl4yihznhi-bear-2.3.11/lib/bear/libear.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/nix/store/c5fmm1470zbsfrw2cysjsfcl4yihznhi-bear-2.3.11//nix/store/c5fmm1470zbsfrw2cysjsfcl4yihznhi-bear-2.3.11/lib/bear/libear.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Things done

I just removed CMAKE_INSTALL_PREFIX in CMakeFiles.txt to avoid having twice the same prefix.

  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Sorry, something went wrong.

@dtzWill
Copy link
Member

dtzWill commented Mar 1, 2018

LGTM, thanks!

@dtzWill dtzWill merged commit 6a5cc4f into NixOS:master Mar 1, 2018
@Mic92
Copy link
Member

Mic92 commented Mar 1, 2018

oh, race condition. @dtzWill I thought you don't need those tools these days :)

@dtzWill
Copy link
Member

dtzWill commented Mar 1, 2018

Haha I don't, but still good to see them working!

@Janik-Haag Janik-Haag added the 12. first-time contribution This PR is the author's first one; please be gentle! label Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants