You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build Madagascar in a docker container based on CentOS 7.
Everything seems to be running okey, until it reaches this point where it complains on some missing python files, which I understand should be generated during the build.
To Reproduce
Run docker build -t madagascar . in a folder containing the following Dockerfile;
FROM centos:7
ENV INSTALL_DIR=/usr/bin/madagascar
WORKDIR /build
# DependenciesRUN yum -y update && yum -y install gcc libXaw-devel binutils freeglut freeglut-devel gcc-c++ gcc-gfortran glibc-headers libjpeg-devel libXaw-devel netpbm-devel git make
# Clone Madagascar source codeRUN git clone https://github.com/ahay/src.git
WORKDIR /build/src/user
# Checkout desired version to buildRUN git checkout madagascar-1.7
WORKDIR /build/src
RUN ./configure --prefix=$INSTALL_DIR API=fortran-90,python
RUN make -j 4
RUN make install
Expected behavior
Software to compile successfully
Screenshots
Last part of failing make -j 4 command
Install file: "build/user/yliu/sfyliu.py" as "build/framework/rsf/sfyliu.py"
__header(["build/user/zone/vectorops.h"], ["build/user/zone/vectorops.c"])
__header(["build/user/zone/kirmod.h"], ["build/user/zone/kirmod.c"])
__header(["build/user/zone/general_traveltime.h"], ["build/user/zone/general_traveltime.c"])
__header(["build/user/zone/ml_traveltime_vgradient.h"], ["build/user/zone/ml_traveltime_vgradient.c"])
__header(["build/user/zone/ml_traveltime_vconstant.h"], ["build/user/zone/ml_traveltime_vconstant.c"])
__header(["build/user/zone/ml_traveltime_vti.h"], ["build/user/zone/ml_traveltime_vti.c"])
__header(["build/user/zone/setvelocity.h"], ["build/user/zone/setvelocity.c"])
__header(["build/user/zone/kirmodnewton.h"], ["build/user/zone/kirmodnewton.c"])
__header(["build/user/zone/kirmod2.h"], ["build/user/zone/kirmod2.c"])
__header(["build/user/zone/kirmodnewton2.h"], ["build/user/zone/kirmodnewton2.c"])
__header(["build/user/zone/ricker.h"], ["build/user/zone/ricker.c"])
selfdoc(["build/user/zone/kirmod_newton.py"], ["build/user/zone/Mkirmod_newton.c"])
__docmerge(["build/user/zone/sfzone.py", "build/user/zone/sfzone.pyc"], ["build/user/zone/kirmod_newton.py"])
Install file: "build/user/zone/sfzone.py" as "build/framework/rsf/sfzone.py"
scons: *** [build/framework/rsf/sfbase.py] Source `build/trip/iwave/base/main/sfbase.py' not found, needed by target `build/framework/rsf/sfbase.py'.
scons: building terminated because of errors.
make: *** [all] Error 2
The command '/bin/sh -c make -j 4' returned a non-zero code: 2
Desktop (please complete the following information):
OS: CentOS
Version 7.8
The text was updated successfully, but these errors were encountered:
I'm not sure why version 1.7 doesn't work. But I just tried to install the current developing version of Madagascar using your docker file and it works well. Could you try the current developing version or the newest stable version 3.0?
🐛 Bug report
Description of the bug
I'm trying to build Madagascar in a docker container based on CentOS 7.
Everything seems to be running okey, until it reaches this point where it complains on some missing python files, which I understand should be generated during the build.
To Reproduce
Run
docker build -t madagascar .
in a folder containing the following Dockerfile;Expected behavior
Software to compile successfully
Screenshots
Last part of failing
make -j 4
commandDesktop (please complete the following information):
The text was updated successfully, but these errors were encountered: