This forum has been archived. All content is frozen. Please use KDE Discuss instead.

kdevelop and intel fortran and ctags

Tags: None
(comma "," separated)
lnemec
Registered Member
Posts
1
Karma
0
OS
Hello!

I am just about to start with some developing or rather debugging work on a rather large fortran code.
Kdevelop so far seems to be the perfect tool, but I have a few problems:

I created a kdevelop project by giving Kdevelop the Makefile. If I specify in my make file gfortran as my compiler and give the link to the lapack and blas libaries everything compiles.

1.) How to get kdevelop using the intel compiler 'ifort'?
In different forums I found a link, which is supposed to discribe exactly this problem, but unfortunately te link is not active (or broken).

Message by kdevelop:

Code: Select all
/physics/aims/120225-src/> make -j 2 serial
Makefile.backend:1028: warning: overriding commands for target `arch_specific.mod'
Makefile.moddeps:105: warning: ignoring old commands for target `arch_specific.mod'
./version_stamp_writer.pl 022512_ >write_version_stamp.f90
ifort -O3 -xHost -module .  -o main.o -c main.f90
make: ifort: Command not found
make: *** [main.o] Error 127
make: *** Waiting for unfinished jobs....
*** Failed ***


the compiler relevant part of my makefile:
Code: Select all
 FC =ifort                           
 FFLAGS = -O3                         
 F90FLAGS = $(FFLAGS)               
 F90FLAGS = $(FFLAGS) -debug all -check all
 ARCHITECTURE = Generic                     
 LAPACKBLAS = -L/opt/intel/composerxe_2011_sp1.7.256/mkl/lib/intel64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core
 USE_MPI = no


2.) Connected to problem one, is ther a way that I can make use of the debugging tools coming with intel fortran?

3.) How can I use ctags?
I must admit, I am even not sure whether I have all packages, plugins etc. installed. Can someone point me to a nice and straight to the point How-To or give me a brief summary.
What packages, plugins do I need?
How do I create a tag-file?
Finally, how can I use (invoke) it within kdevelop?

Thank you very much for your support.

Best wishes,

Lydia
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
Hi,

I must admit, I have no idea about fortran. One thing is very clear, tough: You don't have ifort installed. Make tells you:
make: ifort: Command not found

I don't know what tools come with the intel fortran compiler, but unless they happen to be gdb plugins or so, kdevelop does not support any of them. You'll have to use them alongside kdevelop. It seems like gdb can debug fortran, tough, so you might want to have a look at that (then you could use KDevelop to debug your code, I think).

I also don't think KDevelop support anything like ctags. I didn't know the concept before, but I'm also not quite sure what KDevelop should actually do with those...

Greetings,
Sven


I'm working on the KDevelop IDE.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
My guess with regards to "ifort" not being found is that it is not in your $PATH. This is more likely to be the case if you downloaded it from Intel's site and did not install it through the distribution package manager.

I'm not sure exactly, but I think KDevelop allows you to override or add paths to $PATH. If it does not, try adding the following into your Makefile:
Code: Select all
export PATH=/path/to/ifort/bin:$PATH


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
alin
Registered Member
Posts
9
Karma
0
OS
Hi Lydia,

I suspect you have a standard intel compilers installation and you setup the environment within bashrc by sourcing the scripts they suggest.

if you start the kdevelop form the konsole with the environment setup correctly things will work. this is a workaround

in principle there is a solution too... add the variables manually in a group in the kdevelop: settings-> configure kdevelop-> environment.... but it did not work for me...

I have no idea about how to change the debugger from gdb to idb...
never used ctags... but I see no ctags plugin in my kdevelop instalation so I doubt will work.

Alin


_____________________________________________________________________
Without Questions there are no Answers!
_____________________________________________________________________


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell