LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-21-2014, 06:14 PM   #1
sarasari
LQ Newbie
 
Registered: Feb 2014
Posts: 18

Rep: Reputation: Disabled
the meaning of an error in running a software on linux


Hi Friends,
I'm trying to run an oceanographic software on my linux/fedora20 system and when I type : make linux-gfort and press enter this error comes up:

Error: Variable 'lvar' at (1) not definable inside loop beginning at (2) as INTENT(INOUT) argument to subroutine 'conv_from_chars'
COHERENS/code/source/Model_Parameters.f90:985.70:

any one knows what it means, by any chance?
thank you
 
Old 02-21-2014, 06:47 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,654

Rep: Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255
It means there is a programming error in the code. Then it tells you witch file, which line (985). In most compilers the ".70" is where the parser was on that line when the error was detected.
 
1 members found this post helpful.
Old 02-22-2014, 11:49 AM   #3
sarasari
LQ Newbie
 
Registered: Feb 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jpollard View Post
It means there is a programming error in the code. Then it tells you witch file, which line (985). In most compilers the ".70" is where the parser was on that line when the error was detected.
thank you jpollard, now I see the meaning of those strange numbers, but do you know what it means? does it mean that I have to go to that file and change lvar=1 to lvar=2? here is the part in the main file where the error occurred :


---log files
CASE('LEVPROCS_INI')
lvar_110: DO lvar=1,numvars
CALL conv_from_chars(cvals(lvar),levprocs_ini(lvar),iddesc,lvar)
ENDDO lvar_110
 
Old 02-22-2014, 12:36 PM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,654

Rep: Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255
No - it means there is something wrong either with the usage of "conv_from_chars" subroutine or its declaration. The problem is with the last parameter. It would appear that it is expected to receive a value from the subroutine (the INOUT), but being a loop counter implicitly declared it cannot be modified by the subroutine.

After that, you need to find someone more familiar with the application.
 
1 members found this post helpful.
Old 02-22-2014, 01:17 PM   #5
sarasari
LQ Newbie
 
Registered: Feb 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jpollard View Post
No - it means there is something wrong either with the usage of "conv_from_chars" subroutine or its declaration. The problem is with the last parameter. It would appear that it is expected to receive a value from the subroutine (the INOUT), but being a loop counter implicitly declared it cannot be modified by the subroutine.

After that, you need to find someone more familiar with the application.
OK, Thank you again. it was useful...at least now I know the problem
 
Old 02-22-2014, 02:03 PM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Chances are good that the program was compiled and tested with an older Fortran compiler that is a bit less strict about the use of intents. If you have an alternate compiler (e.g. the Intel Fortran compiler) you might try the compile with it and sdee if it accepts the code. However, this is a bug as jpollard mentioned, and it should be brought to the attention of whoever developed the software.
 
1 members found this post helpful.
Old 02-22-2014, 05:09 PM   #7
sarasari
LQ Newbie
 
Registered: Feb 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by btmiller View Post
Chances are good that the program was compiled and tested with an older Fortran compiler that is a bit less strict about the use of intents. If you have an alternate compiler (e.g. the Intel Fortran compiler) you might try the compile with it and sdee if it accepts the code. However, this is a bug as jpollard mentioned, and it should be brought to the attention of whoever developed the software.
Thank you, I also tried this:

Intel fortran compiler v 9 with MPICH2, dynamically linked Intel libs
linux-ifortp:
$(MAKE) $(EXEFILE) "FC=mpif90" "FCOPTS=-cpp1 -i-dynamic" \
"FCDEFS=$(CPPDFLAGS)" "FCDEBUG=" \
"FCIFLAGS_COMP= -Wl,-rpath=/usr/local/mpich2/intel/lib" \
"CPP=" "CPPF=@cp" "CPPOPTS=" "CPPDEFS="

as you said and I got this error:

make coherens "FC=mpif90" "FCOPTS=-cpp1 -i-dynamic" \
"FCDEFS=" "FCDEBUG=" \
"FCIFLAGS_COMP= -Wl,-rpath=/usr/local/mpich2/intel/lib" \
"CPP=" "CPPF=@cp" "CPPOPTS=" "CPPDEFS="
make[1]: Entering directory `/home/fedora/models/work'
mpif90 -Wl,-rpath=/usr/local/mpich2/intel/lib -cpp1 -i-dynamic -c COHERENS/code/source/Model_Parameters.f90 -o Model_Parameters.o
make[1]: mpif90: Command not found
make[1]: *** [Model_Parameters.o] Error 127
make[1]: Leaving directory `/home/fedora/models/work'
make: *** [linux-ifortp] Error 2


Also I tried:

Intel fortran compiler v 9 without MPI, dynamically linked
linux-iforts:
$(MAKE) $(EXEFILE) "FC=ifort" "FCOPTS=-cpp1 -i-dynamic" \
"FCDEFS=$(CPPDFLAGS)" "FCDEBUG=" \
"FCIFLAGS_COMP=-Wl,-rpath=/usr/local/intel/lib" \
"CPP=" "CPPF=@cp" "CPPOPTS=" "CPPDEFS="
and I got:

make coherens "FC=ifort" "FCOPTS=-cpp1 -i-dynamic" \
"FCDEFS=" "FCDEBUG=" \
"FCIFLAGS_COMP=-Wl,-rpath=/usr/local/intel/lib" \
"CPP=" "CPPF=@cp" "CPPOPTS=" "CPPDEFS="
make[1]: Entering directory `/home/fedora/models/work'
ifort -Wl,-rpath=/usr/local/intel/lib -cpp1 -i-dynamic -c COHERENS/code/source/Model_Parameters.f90 -o Model_Parameters.o
make[1]: ifort: Command not found
make[1]: *** [Model_Parameters.o] Error 127
make[1]: Leaving directory `/home/fedora/models/work'
make: *** [linux-iforts] Error 2


do you understand any thing from these errors?
thanx again from all of you.
 
Old 02-22-2014, 07:05 PM   #8
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
The key errors are:

Code:
make[1]: mpif90: Command not found
and

Code:
make[1]: ifort: Command not found
Make is unable to find the compiler in these cases. You probably do not have your PATH set up correctly to use these compilers. You will need to consult with someone who knows where software is installed on your system. If you're running this at an HPC center, they should have a staff that can help you with things like this.
 
1 members found this post helpful.
Old 02-23-2014, 12:10 PM   #9
sarasari
LQ Newbie
 
Registered: Feb 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by btmiller View Post
The key errors are:

Code:
make[1]: mpif90: Command not found
and

Code:
make[1]: ifort: Command not found
Make is unable to find the compiler in these cases. You probably do not have your PATH set up correctly to use these compilers. You will need to consult with someone who knows where software is installed on your system. If you're running this at an HPC center, they should have a staff that can help you with things like this.
ok Thank you, probably that's because of installing my software on a virtual machine....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Meaning of dot slash for Running an Executable in Linux LXer Syndicated Linux News 0 01-19-2012 11:30 AM
Software Hardware Interface Meaning Dave1024 General 3 08-11-2010 06:33 PM
Error running Software Management Tools bob755 Mandriva 9 01-10-2008 11:01 AM


All times are GMT -5. The time now is 03:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration