Giter Club home page Giter Club logo

Comments (12)

gmkurtzer avatar gmkurtzer commented on May 17, 2024

Ahh, good find! I think I have a very portable way of fixing this and will implement as soon as possible and let you know for testing.

Thanks!

from singularity.

gmkurtzer avatar gmkurtzer commented on May 17, 2024

I updated the ldd dependency resolver to use the default library paths and use LD_LIBRARY_PATH to update the search path. Will you recreate your SAPPs and let me know what you find?

Thank you!

from singularity.

weidendo avatar weidendo commented on May 17, 2024

Looks good!

from singularity.

weidendo avatar weidendo commented on May 17, 2024

I closed to early. When an application itself requires LD_LIBRARY_PATH set, the libraries are fetched into the sapp, but they are not found on execution. Am I missing something?

from singularity.

gmkurtzer avatar gmkurtzer commented on May 17, 2024

Ahhh, that is a good catch. Some variables should be caught and replicated into the SAPP. I'll think about how to do it and implement something when I get to the computer. Let me know if you think of a fix too!

Thanks!!

Sent from my iPhone

On Nov 27, 2015, at 10:33 AM, weidendo [email protected] wrote:

I closed to early. When an application itself requires LD_LIBRARY_PATH set, the libraries are fetched into the sapp, but they are not found on execution. Am I missing something?


Reply to this email directly or view it on GitHub.

from singularity.

gmkurtzer avatar gmkurtzer commented on May 17, 2024

I just committed a method which will find all libraries in the SAPP and include them in the LD_LIBRARY_PATH. Can you check to see if that is working now? Thanks!

from singularity.

weidendo avatar weidendo commented on May 17, 2024

Hmm, no.
I compiled something with ICC, which needs
/opt/intel/composer_xe_2015.5.223/compiler/lib/intel64
to be in LD_LIBRARY_PATH.

...> singularity build heat.spec
Building: heat
Checking paths...
Checking writable...
Evaluating: %packages
Creating template configs
/etc/nsswitch.conf
/etc/resolv.conf
/etc/hosts
Evaluating: hard requirements
Installing file: /bin/sh
Evaluating: %exec
Installing file: /home/weidendo/SW/heat/heat
Evaluating: %files
Invoking dependency check
Installing file: /lib/x86_64-linux-gnu/libm.so.6
Installing file: /opt/intel/composer_xe_2015.5.223/compiler/lib/intel64/libiomp5.so
Installing file: /lib/x86_64-linux-gnu/libgcc_s.so.1
Installing file: /lib/x86_64-linux-gnu/libpthread.so.0
Installing file: /lib/x86_64-linux-gnu/libc.so.6
Installing file: /lib/x86_64-linux-gnu/libdl.so.2
Installing file: /lib64/ld-linux-x86-64.so.2
Including SAPPFILE
Calculating container size
Calculating checksums
Writing metadata
Building primary singularity exec driver
Building singularity test runscript
Building singularity main runscript
Running %test...
Cleaning up unpackaged files
Creating output SAPP container
WROTE: heat.sapp
weidendo@lapbode161:~/SW/heat (master)> ./heat.sapp
/home/weidendo/SW/heat/heat: error while loading shared libraries: libiomp5.so: cannot open shared object file: No such file or directory

What is your way to debug this?

from singularity.

weidendo avatar weidendo commented on May 17, 2024

Looking into ~/.sapp-cache/heat/c/singularity:
...
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/lib/x86_64-linux-gnu
/opt/intel/composer_xe_2015.5.223/compiler/lib/intel64"
...

Newline instead of colon?

from singularity.

gmkurtzer avatar gmkurtzer commented on May 17, 2024

Woops... Sorry about that! I just committed a fix that will work... Will test as soon as I get into work.

from singularity.

gmkurtzer avatar gmkurtzer commented on May 17, 2024

The fix seems to be working for me, but I don't have a use-case on this system with multiple libdirs. Can you confirm the latest commits are working better?

Thanks!

from singularity.

weidendo avatar weidendo commented on May 17, 2024

Works fine here.

from singularity.

gmkurtzer avatar gmkurtzer commented on May 17, 2024

Excellent, thanks!

from singularity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.