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

Drop dependency on fortran compiler on Unix? #126

Open
traversaro opened this issue Dec 14, 2024 · 2 comments
Open

Drop dependency on fortran compiler on Unix? #126

traversaro opened this issue Dec 14, 2024 · 2 comments

Comments

@traversaro
Copy link
Contributor

The Linux builds print the warning:

2024-12-14T15:43:41.6594853Z WARNING (ipopt): dso library package conda-forge/linux-64::libgfortran5==14.2.0=hd5240d6_1 in requirements/run but it is not used (i.e. it is overdepending or perhaps statically linked? If that is what you want then add it to `build/ignore_run_exports`)

Furthermore, the docs and the ipopt source code mention that Fortran is only used to compile a couple examples:

In addition, the configuration script also searches for a Fortran
compiler. If all third party dependencies are available as self-contained
libraries and no Ipopt/Fortran interface needs to be build, a Fortran
compile is not necessary.

See https://github.com/coin-or/Ipopt/blob/f7d4d416ae65b2a77cab2eb88ac2f45beb1df2f1/doc/main.dox#L200C1-L203C26 and https://github.com/coin-or/Ipopt/blob/f7d4d416ae65b2a77cab2eb88ac2f45beb1df2f1/configure.ac#L644-L660 .

In #125 we already dropped the fortran compiler dependency on Windows, while in this issue we discuss if it make sense to do the same on Linux/macOS. If we still want to compile the fortran examples, an alternative is to still depend on the fortran compiler, but explictly drop the run dependency on the libgfortran5 dependency.

@PertuyF
Copy link

PertuyF commented Mar 11, 2025

Hi @traversaro ,
Under Linux-64, installing the current ipopt package in version 3.14.17 is partly broken. Using ipopt would result in an error stating that libgfortran.so.4 is not found.
Could you help me with that?

@traversaro
Copy link
Contributor Author

traversaro commented Mar 11, 2025

Hi @traversaro , Under Linux-64, installing the current ipopt package in version 3.14.17 is partly broken. Using ipopt would result in an error stating that libgfortran.so.4 is not found. Could you help me with that?

Hello @PertuyF, can you open a new issue following the template and providing a way to reproduce your problem? At this is already a separate issue discussing about something else, thanks!

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

No branches or pull requests

2 participants