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

Cannot build Code_Saturne with PETSc #47

Open
paspro opened this issue Aug 9, 2019 · 6 comments
Open

Cannot build Code_Saturne with PETSc #47

paspro opened this issue Aug 9, 2019 · 6 comments
Assignees
Milestone

Comments

@paspro
Copy link
Contributor

paspro commented Aug 9, 2019

I have been unable to build Code_Saturne with PETSc for any combination of configure petsc-related options because the relative m4 file is simply wrong, at least for a regular system-wide installation of the petsc package using a typical Linux repository. I modified some files attached here to make it work.

On my system with these modifications and the command line options:

--with-petsc=/usr
--with-petsc-lib=/usr/lib64/openmpi/lib

the compilation works correctly.

You may want to consider updating them.

cs_petsc.zip

@YvanFournier YvanFournier self-assigned this Aug 12, 2019
@YvanFournier YvanFournier added this to the v6.0 milestone Aug 12, 2019
@YvanFournier
Copy link
Contributor

The patch breaks the build using user/project account installs (installed using --prefix).
I will try to merge the patch so as to work with both, so I may need to get back to you soon to let you test the patch on your configuration.

@paspro
Copy link
Contributor Author

paspro commented Oct 30, 2019

Happy to test any patch you have.

@YvanFournier
Copy link
Contributor

YvanFournier commented Feb 1, 2021

Hello,

Trying to get back to this.

On a Debian sid system using a packaged install of PETSc, the detection configuration works OK without the patch using --with-petsc=/usr/lib/petsc (which is actuallly a symbolic link to etc/alternatives/petsc, itself including other symbolic links). I do have a link issue if I do not force "reload_config=True" in build_aux/cs_compile_build.py in the package constructor, but this is probably a separate Python issue.

Which type of system are you running on ? What is the structure under /usr/lib64/openmpi/lib ? Did you try with the unmodified system using --with-petsc-include=/usr/include --with-petsc=/usr/lib64/openmpi/lib ?

Best regards,

@paspro
Copy link
Contributor Author

paspro commented Jan 21, 2023

Contributor

I am on Fedora which has somewhat different installation paths for petsc compared to ubuntu/Debian.

@YvanFournier
Copy link
Contributor

Could you specify how the install paths for PETSc are organized on Fedora ?

@paspro
Copy link
Contributor Author

paspro commented Jan 23, 2023

On Red Hat / Fedora / CentOS the installation filelist can be seen in:
https://koji.fedoraproject.org/koji/rpminfo?rpmID=31788325

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