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

Openmodelica's compiler doesn't have access to Standard library when run in CLI #173139

Open
MMesch opened this issue May 15, 2022 · 1 comment
Open

Comments

@MMesch
Copy link
Contributor

MMesch commented May 15, 2022

Describe the bug

When running the Openmodelica compiler omc, it doesn't have access to the modelica standard library. Probably just some entry similar to this one for OMEdit is missing:

postBuild = ''
wrapProgram $out/bin/OMEdit \
--prefix PATH : ${lib.makeBinPath [ gnumake stdenv.cc ]} \
--prefix LIBRARY_PATH : "${lib.makeLibraryPath [ blas lapack ]}" \
--set-default OPENMODELICALIBRARY "${openmodelica.omlibrary}/lib/omlibrary"
'';

Steps To Reproduce

No time right now but I wanted to report in parallel to #173138 so that both could be fixed at the same time. I will add a detailed description later if required.

Expected behavior

The omc binary should have access to the Open Modelica library as well (e.g. through the associated environment variable)

Notify maintainers

@balodja
@smironov

@MMesch MMesch changed the title Openmodelica's compiler doesn't have access to Standard library Openmodelica's compiler doesn't have access to Standard library when run in CLI May 15, 2022
@balodja
Copy link
Contributor

balodja commented Jun 24, 2022

Somebody is finally interested in OM on the NixOS! Thanks, I'll take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants