-
Notifications
You must be signed in to change notification settings - Fork 49
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
Third party libraries for Casper #3606
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran
module --force unload ncarenv
and added
set (THIRD_PARTY_DIR /glade/campaign/cisl/vast/vapor/third-party/current)
to site.NCAR, however I am getting the following error when running cmake:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
HDF5_LIB
linked by target "common" in directory /glade/u/home/stasj/casper/vapor/lib/common
I confirmed that the dir you specified is being used as other libs are being found by cmake there.
On a separate note, since we already have a cmake configuration file for supporting building on NCAR systems, site.NCAR
, could support for Casper be added there?
I think this is a permissions issue. Please give it another shot. |
I am getting the same error. This is what cmake finds:
|
I am still getting an error:
|
@StasJ - Sam, Nihanth and myself are able to build with the commands below, so this is kind of perplexing. The fact that 1) we are able to build and 2) ld having trouble with libcommon makes me think the problem lies outside of the 3rd party libraries. Without being able to replicate this, I can only guess that the build wasn't clean, or ncarenv wasn't removed.
|
@sgpearse Are you also able to run the vapor gui binary you build? |
I am. FWIW, I'm unsetting LD_LIBRARY_PATH in ~/.bashrc. When I don't do this I get problems linking to the Qt in /usr/lib64. I'm not sure how that could be related to our own libcommon though but maybe that's worth a shot. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could support for casper be added to site.NCAR?
I'm guessing that wiping LD_LIBRARY_PATH worked. But I don't like guessing. It would be a big time saver for me if you could provide more details in code reviews where I can't reproduce your findings.
My guess to your question is "no" because CMake only compiles. It doesn't run |
Oh, I already had it working and I was just wondering if it worked for you out of the box, hence my lack of followup. I could've been clearer, though, sorry. It's not ideal but since this is just for dev work, it's fine.
I was referring to the compiling configuration. |
Launch vapor with the attached session file ( |
@StasJ I think you're hitting a problem with LD_LIBRARY_PATH again. I know it's a pain. I've tried automating this in site.local but it doesn't persist into the user's environment. The best I can do is add a warning about it. Can you see if the following fixes the problem?
Here's the error I see after performing this step: |
Is this an issue? When are we ever forced to use conda in the same environment that we build the GUI?
I'll take a look if you can provide the path to that session file, but I have a feeling that it's going to work for me like your previous example did. If that happens we will need to ask the rest of the team to verify. |
@StasJ I noticed that you're running in a conda environment (sys). What happens if you deactivate it? |
This may be an issue when debugging the Python API
It is the same session file I attached earlier.
I tried and it had no effect. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fully resetting my environment and building from scratch resolved the issue
This PR modifies our build3rdParty.sh script and circleci configuration to build our libraries on Casper. The libraries are located in /glade/campaign/cisl/vast/vapor/third-party/current. To build on Casper, you must unload ncarenv and set LD_LIBRARY_PATH like so:
module --force unload ncarenv
export LD_LIBRARY_PATH=/glade/campaign/cisl/vast/vapor/third-party/current/lib:$LD_LIBRARY_PATH