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

[BUG] sfbase.py missing during installation #212

Open
soofstad opened this issue Aug 14, 2020 · 1 comment
Open

[BUG] sfbase.py missing during installation #212

soofstad opened this issue Aug 14, 2020 · 1 comment
Labels

Comments

@soofstad
Copy link

🐛 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;

FROM centos:7
ENV INSTALL_DIR=/usr/bin/madagascar
WORKDIR /build

# Dependencies
RUN 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 code
RUN git clone https://github.com/ahay/src.git

WORKDIR /build/src/user

# Checkout desired version to build
RUN 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
@soofstad soofstad added the bug label Aug 14, 2020
@zhichenggeng
Copy link
Contributor

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?

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

No branches or pull requests

2 participants