Skip to content

Conversation

@JarettBakerDunn
Copy link

I've made some progress towards compiling lithomop but haven't been able to get there yet. At this point, when I run the configure script in lithomop, this is the error I get:

checking for PETSc dir... /home/lithomop_user/petsc-2.3.3-p16
checking for PETSc arch... /home/lithomop_user/petsc-2.3.3-p16/lib/linux-gnu-c-debug
checking for PETSc config... no
configure: error: PETSc config dir not found; check PETSC_ARCH

It seems like I haven't correctly set one of the PETSC variables required by lithomop. However, I'm not sure what lithomop is expecting. If you have any idea what the issue is, please let me know. It may also be an issue with how I installed PETSC. The details are in the Dockerfile.

Copy link

@jedbrown jedbrown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This repo has some dockerfiles, and this one builds new images in CI.

Comment on lines +43 to +44
ENV PETSC_DIR="/home/lithomop_user/petsc-2.3.3-p16"
ENV PETSC_ARCH="/home/lithomop_user/petsc-2.3.3-p16/lib/linux-gnu-c-debug"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PETSC_ARCH should either be unset ("prefix install") or just the identifier (as in linux-gnu-c-debug, or whatever you specify).


ENV PETSC_DIR="/home/lithomop_user/petsc-2.3.3-p16"
ENV PETSC_ARCH="/home/lithomop_user/petsc-2.3.3-p16/lib/linux-gnu-c-debug"
ENV PATH="/home/lithomop_user/petsc-2.3.3-p16/externalpackages/mpich2-1.0.5p4/bin:${PATH}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a build directory (for --download-mpich), but you installed an mpich from apt above (you might have wanted libmpich-dev).

ENV PETSC_ARCH="/home/lithomop_user/petsc-2.3.3-p16/lib/linux-gnu-c-debug"
ENV PATH="/home/lithomop_user/petsc-2.3.3-p16/externalpackages/mpich2-1.0.5p4/bin:${PATH}"

RUN curl -L -O "https://web.cels.anl.gov/projects/petsc/download/release-snapshots/petsc-2.3.3.tar.gz"; tar -xvf petsc-2.3.3.tar.gz; cd petsc-2.3.3-p16; mkdir externalpackages; cd externalpackages; curl -L -O "https://www.mpich.org/static/downloads/1.0.5p4/mpich2-1.0.5p4.tar.gz"; tar -xvf mpich2-1.0.5p4.tar.gz; cd mpich2-1.0.5p4; ./configure; echo "password" | sudo -S make all; echo "password" | sudo -S make install;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need petsc-2.3.3 (released in 2007) or can we use a later version?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest removing the manual download of mpich and instead use the system version from apt.

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

Successfully merging this pull request may close these issues.

2 participants