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

check linking against libs in sysroot #15

Open
beckermr opened this issue Feb 10, 2021 · 1 comment
Open

check linking against libs in sysroot #15

beckermr opened this issue Feb 10, 2021 · 1 comment

Comments

@beckermr
Copy link
Member

One thing the environment here does is always install the sysroot packages. These are only supposed to be used at build time and not at run time.

I wonder if SOs in the environment might be linking against them instead of the corresponding libraries supplied by the OS.

If this is true, then the sysroot packages need to be removed from the env.

@beckermr beckermr changed the title check linking of libs in sysroot check linking against libs in sysroot Feb 10, 2021
@beckermr
Copy link
Member Author

Things appear to be ok

(test) root@92f160059dbc:/# LD_DEBUG=libs python -c "import lsst.afw" 2>&1 | grep "libm\."
      3207:	find library=libm.so.6 [0]; searching
      3207:	  trying file=/opt/conda/envs/test/bin/../lib/libm.so.6
      3207:	  trying file=/opt/conda/envs/test/share/eups/Linux64/afw/21.0.0-15-gedb9d5423+093f827fa0/lib/libm.so.6
      3207:	  trying file=/opt/conda/envs/test/share/eups/Linux64/astshim/21.0.0-2-g45278ab+e70536a077/lib/libm.so.6
      3207:	  trying file=/opt/conda/envs/test/share/eups/Linux64/sphgeom/21.0.0+e70536a077/lib/libm.so.6
      3207:	  trying file=/opt/conda/envs/test/share/eups/Linux64/geom/21.0.0-2-g8f08a60+37af6e4b43/lib/libm.so.6
      3207:	  trying file=/opt/conda/envs/test/share/eups/Linux64/log/21.0.0-3-g7d9da8d+3d46b50fa2/lib/libm.so.6
      3207:	  trying file=/opt/conda/envs/test/share/eups/Linux64/daf_persistence/21.0.0-5-gdf36809+51e1abfa8d/lib/libm.so.6
      3207:	  trying file=/opt/conda/envs/test/share/eups/Linux64/pex_exceptions/21.0.0-2-gde069b7+e4a9d806b1/lib/libm.so.6
      3207:	  trying file=/opt/conda/envs/test/share/eups/Linux64/base/21.0.0-5-g5fb7357+e70536a077/lib/libm.so.6
      3207:	  trying file=/opt/conda/envs/test/share/eups/Linux64/utils/21.0.0-4-gccdca77+29267fd41f/lib/libm.so.6
      3207:	  trying file=/opt/conda/envs/test/share/eups/Linux64/daf_base/21.0.0+3d46b50fa2/lib/libm.so.6
      3207:	  trying file=/lib/x86_64-linux-gnu/libm.so.6
      3207:	calling init: /lib/x86_64-linux-gnu/libm.so.6
      3207:	calling fini: /lib/x86_64-linux-gnu/libm.so.6 [0]

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