Questions and Answers

0 Like 0 Dislike

Pradeep Verma

Error while compiling DDACONVERT code.

I want to locally compile the DDACONVERT tool on my Linux Ubuntu system. After downloading the code I tried to rum the make command in SRC directory via terminal and the following error was generated:

; ifort -c -fast -openmp FEMGeo_Wr.f90
/bin/sh: 1: Syntax error: ";" unexpected
make: *** [FEMGeo_Wr.o] Error 2

How can this error be rectified?

Report abuse

2 Responses

  1. 0 Like 0 Dislike

    AbderRahman N Sobh

    There are many possible issues as to why you were not able to compile correctly. I will go over the main issue I have already encountered for regarding compiling DDAConvert. Please let us know if this does/does not resolve your issue:



     



    There is 'no environ.sh' file associated with DDAConvert itself. This is an environment shell file/script used during the compiling stage, before Rappture is even called, to build the tool and is provided by HUBZero. Basically, this allows the Makefile to pick up on the packages we have installed on our network in order to build the file. If you are compiling locally, you would still be missing these important packages regardless of if you have environ.sh present.



    It is possible that you if just run 'make install' from the command line instead of 'make all install' that the program might compile. You will also need to delete the references to './etc/environ.sh' to make sure it does not cause you problems.



    If you look at the Makefile in the /src/ folder you will see something like this:



    all

       . /etc/environ.sh; use -e -r vtk-5.8.0; cd build_VTRtoVTK/build; cmake ..; make all

       cd build_pip; make all



    Change to:



    all

       cd build_VTRtoVTK/build; cmake ..; make all

       cd build_pip; make all





    Do this as well for the other Makefile using an environment reference, /src/build_pip/Makefile.



    Before:



    CF        =  ifort

    FFLAGS    = -fast

    EXTRA_FLAGS = -openmp

    FSOURCE = ...(there is a list of the .f90 files here)

    PROG    = pip

    BIN        = ../../bin

    SETUP    = . /etc/environ.sh; use -e -r intel-fc-14.0.0



    After, note that only the final line ("SETUP") is changed:



    CF        =  ifort

    FFLAGS    = -fast

    EXTRA_FLAGS = -openmp

    FSOURCE = ...(there is a list of the .f90 files here)

    PROG    = pip

    BIN        = ../../bin

    SETUP    = cd .





    Finally, for /src/build_pip/Makefile to compile correctly it needs to call the Intel Fortran Compiler by the handle being used at the CF line. In this case it needs to be called by the handle 'ifort' .



     

    Reply Report abuse

    Please login to answer the question.

  2. 0 Like 0 Dislike

    Hirak Chatterjee

    I am also facing the same when compiling in Fedora. I am using the Intel package l_fcompxe_2013_sp1.3.174. Should I reinstall with other version of iFort?

    Reply Report abuse

    Please login to answer the question.