Discussion:
[Geany] setting geany with intel fortran compiler for ubuntu
Luca de Ruvo
2011-06-08 20:32:21 UTC
Permalink
Hi,
usually I use Geany (OS-UBUNTU) for compiling gfortran, but now I must use Intel Fortran and I would like setting Geany also for this compiler.
Is there anyone who give me an help for doing this, giving me some exemple of configuration?
I think I have to change the setting in the dialog window:
Build->Set Includes and Arguments

but what I have to write there?
Matthew Brush
2011-06-08 21:54:20 UTC
Permalink
On 06/08/11 13:32, Luca de Ruvo wrote:
> Hi,
> usually I use Geany (OS-UBUNTU) for compiling gfortran, but now I must
> use Intel Fortran and I would like setting Geany also for this compiler.
> Is there anyone who give me an help for doing this, giving me some
> exemple of configuration?

There's a fair bit of documentation out there for this. Lex's
tutorial[1] seems quite relevant, as well as the information in the
manual[2].

Of course, consult your compiler's documentation for information on what
options to pass in and such.

[1] http://wiki.geany.org/howtos/configurebuildmenu
[2] http://www.geany.org/manual/current/index.html#build-menu-configuration

Cheers,
Matthew Brush
Lex Trotman
2011-06-09 00:35:12 UTC
Permalink
Hi Luca,

On 9 June 2011 06:32, Luca de Ruvo <***@hotmail.it> wrote:
> Hi,
> usually I use Geany (OS-UBUNTU) for compiling gfortran, but now I must use
> Intel Fortran and I would like setting Geany also for this compiler.
> Is there anyone who give me an help for doing this, giving me some exemple
> of configuration?
> I think I have to change the setting in the dialog window:
>
> Build->Set Includes and Arguments
>
> but what I have to write there?

You just put the same command as you use on the command line but with
the source filename replaced with %f and the output filename replaced
with %e.

As Matthew said, you will need to read the compiler documentation to
find the command and options you use on the command line.

Cheers
Lex

>
> _______________________________________________
> Geany mailing list
> ***@uvena.de
> https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
>
>
Luca de Ruvo
2011-06-09 09:41:10 UTC
Permalink
yes, I have done exactly what you have written dear Lex, but I receive an error compiling a .f file:
fortcom: Nessun file o directory
ifort: error #10273: Fatal error in fortcom, terminated by 0x64
Lex Trotman
2011-06-09 09:44:08 UTC
Permalink
On 9 June 2011 19:41, Luca de Ruvo <***@hotmail.it> wrote:
>
> yes, I have done exactly what you have written dear Lex, but I receive an
> error compiling a .f file:
> fortcom: Nessun file o directory
> ifort: error #10273: Fatal error in fortcom, terminated by 0x64
>

Please post what you configured. What does the error mean?

Cheers
Lex

> _______________________________________________
> Geany mailing list
> ***@uvena.de
> https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
>
>
Frank Lanitz
2011-06-09 09:45:38 UTC
Permalink
Am 09.06.2011 11:41, schrieb Luca de Ruvo:
>
> yes, I have done exactly what you have written dear Lex, but I receive
> an error compiling a .f file:
> fortcom: Nessun file o directory
> ifort: error #10273: Fatal error in fortcom, terminated by 0x64

Can you please run Geany from command line with LANG=C geany --verbose
and sending the output?

Cheers,
Frank
Luca de Ruvo
2011-06-09 10:05:40 UTC
Permalink
here it is my configuration:

Build->Set Includes and Arguments

compile: ifort -c "%f"
built: ifort "%f" -o "%f"

these are the same commands I use in the command terminal for compiling my .f file

error messege:

fortcom: no file or diectory
ifort: error #10273: Fatal error in fortcom, terminated by 0x64

I use Geany 0.18
Lex Trotman
2011-06-09 11:04:39 UTC
Permalink
On 9 June 2011 20:05, Luca de Ruvo <***@hotmail.it> wrote:
> here it is my configuration:
>
> Build->Set Includes and Arguments
>
> compile: ifort -c "%f"
> built: ifort "%f" -o "%f"

This should be ifort "%f" -o "%e", you don't want to write the output
file over the input file.

>
> these are the same commands I use in the command terminal for compiling my
> .f file
>
> error messege:
>
> fortcom: no file or diectory
> ifort: error #10273: Fatal error in fortcom, terminated by 0x64
>

Thanks for the translation, if this is using the same files in the
same locations as worked with gfortran I'm not sure why it can't find
the file.

> I use Geany 0.18
>

Thanks for providing the version and previously the operating system.
To be honest I can't remember how Geany 0.18 decides which directory
to use, this area changed completely in 0.19 and later, but I thought
it was the directory the source file is in.

Ummm, you do have the fortran file open in Geany when compiling don't you?

If so then as Frank said you can run Geany in verbose mode to get more
information.

Cheers
Lex
Luca de Ruvo
2011-06-09 12:38:02 UTC
Permalink
really great!
as frank has written, opening Geanty in verbose modality:

LANG=C geany --verbose

now I compile my file successfully! But I don't understand why???
Moreover with verbose modality I lose my native language in Geany, but this isn't a problem.
Frank Lanitz
2011-06-09 12:42:36 UTC
Permalink
Am 09.06.2011 14:38, schrieb Luca de Ruvo:
> really great! as frank has written, opening Geanty in verbose
> modality:
>
> LANG=C geany --verbose
>
> now I compile my file successfully! But I don't understand why???
> Moreover with verbose modality I lose my native language in Geany,
> but this isn't a problem.

No, this is due LANG=C. but I think the issue is, that some path is not
correct set. I remember something like that, but 0.18 is a way old ....
Was related to the VTE-settings.

Can you check, wether there is a more up to date version inside a ppa on
launchpad for your Ubuntu?

Cheers,
Frank
Luca de Ruvo
2011-06-09 13:16:04 UTC
Permalink
Geany 0.18 is the last version on UBUNTU's repository .
I post the output of "LANG=C geany --verbose":

***@luca-laptop:~$ LANG=C geany --verbose
** INFO: Geany 0.18, GTK+ 2.20.1, GLib 2.24.1
** INFO: /home/luca/input_37.dat : None (UTF-8)
** INFO: /home/luca/input_39.dat : None (UTF-8)
** INFO: /home/luca/input_5.dat : None (UTF-8)
** INFO: /media/dati/tesi_luca/tesi_luca.tex : LaTeX (UTF-8)
** INFO: Loaded /usr/share/geany//latex.tags (LaTeX), 1341 tag(s).
** INFO: /media/dati/csigma/cs_6b.f : F77 (UTF-8)
Enrico Tröger
2011-06-09 21:33:00 UTC
Permalink
On Thu, 9 Jun 2011 12:38:02 +0000, Luca wrote:

>
>really great!
> as frank has written, opening Geanty in verbose modality:
>
>LANG=C geany --verbose
>
>now I compile my file successfully! But I don't understand why???
>Moreover with verbose modality I lose my native language in Geany, but
>this isn't a problem.

To sum it up:

As Frank said, the changed language is because of LANG=C. The --verbose
flag is completely unrelated and just causes Geany to print some more
information but it doesn't affect any functionality. You can safely
remove the --verbose flag again, as LANG=C, --verbose was only
suggested to debug your problem.

I also don't think LANG=C is related to your build problem and that it
is now fixed, at least it is very unlikely.

Did you change the build command as Lex suggested? This is more likely
to fix the problem.

Regards,
Enrico

--
Get my GPG key from http://www.uvena.de/pub.asc
Luca de Ruvo
2011-06-09 22:25:14 UTC
Permalink
Sure, I have changed the build command, it was only an typing error.
Loading...