sst-core icon indicating copy to clipboard operation
sst-core copied to clipboard

Core should stop reporting that an element library wasn't found when dlopen fails

Open calewis opened this issue 3 years ago • 1 comments

Issue

libmyelement.so is sitting in the correct folder for core to find it. I run sst my_input.py and the error message I get is

FATAL:  SST Core: can't find requested component 'myelement.mycomponent'
Error: unable to find "myelement" element library

How to reproduce

  1. Compile element with a missing symbol
  2. Try to run sst and use that element

IFF you set SST_CORE_DL_VERBOSE=1 you will get some helpful info, but we really need to stop reporting "unable to find" when dlopen fails. It implies that the .so file wasn't found instead of indicating that something was wrong with the .so file.

calewis avatar Nov 29 '21 20:11 calewis

This has misled me in the past as well. Core should report something less specific than "unable to find", since the library was indeed found.

jpkenny avatar Nov 29 '21 20:11 jpkenny