LD_LIBRARY_PATH is required to be set for a build to occur

Issue #4 new
Steven R. Brandt created an issue

LD_LIBRARY_PATH is required to be set for a build to occur

Comments (2)

  1. Steven R. Brandt reporter

    The following Dockerfile fails to build:

    FROM fedora
    
    RUN dnf install -y which vim findutils git gfortran make
    RUN dnf install -y python3-scons
    RUN pip3 install termcolor
    COPY scalar1deffectivesource.tgz .
    RUN git clone https://peterdiener@bitbucket.org/peterdiener/selfforce-1d.git SelfForce-1D
    WORKDIR /SelfForce-1D
    RUN dnf install -y tar
    RUN tar xzvf ../scalar1deffectivesource.tgz
    ENV LD_LIBRARY_PATH .
    RUN cp SConstruct.gnu SConstruct
    RUN scons
    

    The output is

    scons: Reading SConscript files ...
    scons: done reading SConscript files.
    scons: Building targets ...
    Compiling Build/DG/module_DG_structures.o
    f951: Warning: Nonexistent include directory 'Build/<map object at 0x7f626ce0fe10>' [-Wmissing-include-dirs]
    f951: Warning: Nonexistent include directory 'Src/<map object at 0x7f626ce0fe10>' [-Wmissing-include-dirs]
    Src/DG/module_DG_structures.f90:9:6:
    
        9 |   use kinds
          |      1
    Fatal Error: Cannot open module file 'kinds.mod' for reading at (1): No such file or directory
    compilation terminated.
    scons: *** [Build/DG/module_DG_structures.o] Error 1
    scons: building terminated because of errors.
    The command '/bin/sh -c scons' returned a non-zero code: 2
    

  2. Peter Diener repo owner

    LD_LIBRARY_PATH should no longer be needed to set for a build to occur.

    Also the python 3 issue should be resolved.

    @Steven R. Brandt Can you try again and see if things work for you now?

  3. Log in to comment