CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Problems with compiling CFD code! (https://www.cfd-online.com/Forums/main/7803-problems-compiling-cfd-code.html)

ravi July 10, 2004 00:39

Problems with compiling CFD code!
 
I am trying to compile a CFD code which I downloaded. It gives the following message when I do a 'make' at the command prompt shell :

cd /datarun1/brravi/OTHERS/ISSAC/src/main;\ make -f main.mk "HOME=/home/brravi" "SRC=/datarun1/brravi/OTHERS/ISSAC/src" "FFLAGS=-O2" \

"FC=f77" "CPPFLAGS=-DCPU_TIME";\ ln *.o /datarun1/brravi/OTHERS/ISSAC/src make[1]: Entering directory `/datarun1/brravi/OTHERS/ISSAC/src/main' make[1]: *** No rule to make target `main.F', needed by `main.o'. Stop. make[1]: Leaving directory `/datarun1/brravi/OTHERS/ISSAC/src/main' ln: accessing `*.o': No such file or directory make: *** [all] Error 1

Can somebody help me to figure is out?

thanks in advance,

ravi

Jarmo Monttinen July 12, 2004 11:28

Re: Problems with compiling CFD code!
 
Been working on something similar for a couple of weeks.... try without the optimization flag -O2 at first and turn on a debugger if you have one.

There APPEARS to be a problem with the makefile, however this is probably not the case. Check that your OS is up to date and you have the right versions of other programs used in the process. (gmake?) Was the code written for Linux and you are trying to use it under Irix?

Just some suggestions based on the experiences I've had. This all assumes that you've run the config properly, if that is not the case, that is the most likely source of error.

I hope this helps.

-- Jarmo


All times are GMT -4. The time now is 11:07.