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

Installation failed on Centos 7-based cluster #363

Open
helyamany opened this issue Sep 7, 2024 · 5 comments
Open

Installation failed on Centos 7-based cluster #363

helyamany opened this issue Sep 7, 2024 · 5 comments

Comments

@helyamany
Copy link

I attempted to install ADflow on a homogeneous HPC supercomputer (all nodes share the same architecture) using Intel Composer 2017. Initially, I encountered the following error: 'for' loop initial declarations are only allowed in C99 mode. I resolved this by adding -std=c99 to the C flags in the Makefile. However, upon rerunning the build, I encountered a new error: (mpicc -fPIC -O -std=c99 -I../c_defines -I../metis-4.0 -I/path/to/petsc/build/include -c ../adjoint/ADFirstAidKit/adStack.c -o adStack.o

    --- Compiled metisInterface.c successfully ---

../adjoint/ADFirstAidKit/adStack.c:65:1: error: unknown type name ‘u_int64_t’
static u_int64_t pushPopTraffic = 0 ;).

I haven't been able to resolve this issue. Could you please provide assistance or any tips to address this? (PS. I installed the CGNS and PETSc from the source using the same compiler)

Moreover, I attempted another way to install it by creating a conda environment having the latest versions of all recommended packages on this website (https://mdolab-mach-aero.readthedocs-hosted.com/en/latest/installInstructions/install3rdPartyPackages.html) using anaconda 2024 but failed and gave the following error:
(../adjoint/outputReverseFast/utils_fast_b.f90
/path/to/adflow/src/build/fort_depend.py:86: SyntaxWarning: invalid escape sequence '\s')

Code versions for the first attempt

  • Operating System: Centos 7 Kernal 2.10
  • Python: Python 3.6.8
  • OpenMPI: impi 2017
  • CGNS: 4.4
  • PETSc: 3.21.4
  • Compiler: Intel Composer 2017

Code versions for the second attempt

  • Operating System: Centos 7 Kernal 2.10
  • Python: Python 3.12.2
  • OpenMPI: 4.1.4
  • CGNS: 4.4
  • PETSc: 3.21.4
  • Compiler:

I really appreciate any help you can provide.

@A-CGray
Copy link
Member

A-CGray commented Sep 9, 2024

Can you try doing the installation with the package versions we currently use on our "latest" docker images? I think your first attempt is using too old a version of python and the second attempt is using too new a version. You can find the details on the MPI versions we use here and other package versions here

@helyamany
Copy link
Author

Hi Ali,
Thank you for your quick reply.
Unfortunately, I could not access the two links you sent. Both took me to empty pages. Can you please resend it again?
Also, what is the best approach if I want to install the software without using dockers?
Thank you so much,

@marcomangano
Copy link
Contributor

Check the table at the top of this page with the tested dependencies: https://mdolab-mach-aero.readthedocs-hosted.com/en/latest/installInstructions/install3rdPartyPackages.html
I believe both the Python and PETSc versions might be too new, type errors are very common in this case.

@helyamany
Copy link
Author

Hi Marco,
Thank you for your comment.
I'll give it another try using the recommended versions and hopefully resolve all the errors.
Thank you,

@gawng
Copy link
Contributor

gawng commented Oct 1, 2024

@helyamany any progress on this? Are there still errors?

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

4 participants