Menu

#274 Loading private module library is broken

None
open
None
5
2022-12-12
2022-01-08
No

Loading of a private module library no longer works correctly. The "load lib" command completes without errors, but afterwards the "module list" command shows the modules from the "modules" and "extras" libraries, instead of the modules from the private library. Also a "module load" of a private module fails at this point.

The library was loading fine with gpsim 0.31.0. But it's not working with svn HEAD (r2564). By bisecting the changes between those two points, I found that the problem was introduced by check-in 2552. If I revert the changes to gpsim/Makefile.am, I can use my private library again.

Patch to undo the offending r2552 change attached.

1 Attachments

Discussion

  • Roy Rankin

    Roy Rankin - 2022-01-09
    • status: open --> closed-fixed
    • assigned_to: Roy Rankin
    • Group: -->
     
  • Roy Rankin

    Roy Rankin - 2022-01-09

    Although I do not understand why this change makes any difference to module handling,
    It does not achieve it's intended goal and is causing a regression to someone. Thus I have backed out the change in svn 2565.

     
  • Roy Rankin

    Roy Rankin - 2022-01-18

    Schelte,

    I have just found that making this change breaks my development setup as gpsim gets the libgpsim_modules.so from the wrong place. I want to return to the previous Makefile.am.
    I need to understand how you are doing your private library, where your putting it and are you installing and running gpsim from there or running it from the development environment.

    Roy

     
  • Schelte Bron

    Schelte Bron - 2022-01-18

    I may have a bit weird setup. First of all there is a system-wide version of gpsim-0.31.0 in /usr/bin, with its libraries in /usr/lib64. Additionally I compiled the latest version of gpsim and installed it in ~/usr/local/bin (libs in ~/usr/local/lib64). My private library is in the directory from where I run gpsim. I then run gpsim as:

    LD_LIBRARY_PATH=$PWD:$HOME/usr/local/lib64 $HOME/usr/local/bin/gpsim -i
    

    Let me know if you need more details.

     
  • Roy Rankin

    Roy Rankin - 2022-01-19
    • status: closed-fixed --> open
     
  • Roy Rankin

    Roy Rankin - 2022-01-19

    Reopen as change breaks some environments. Root cause being investigated.

     
  • Schelte Bron

    Schelte Bron - 2022-12-12

    I noticed that the changes to gpsim/Makefile.am have been reintroduced in r2597. Once again they break the loading of my private module library.

     

Anonymous
Anonymous

Add attachments
Cancel