Welcome, Guest
Username: Password: Remember me

TOPIC: 'ar' not recognised

'ar' not recognised 12 years 1 month ago #5813

  • ygrisard
  • ygrisard's Avatar
Hi,

I tried to compile telemac on win7(x64), g95 and python procedure and after hours of compilation I got the message that 'ar' is not recognized as an internal or external.... then follows a list of commands that failed because of this problem.

Here is my PATH: c:\python27;c:\g95\bin;c:\opentelemac\v6p2\pytel;c:\opentelemac\v6p2\bin

Here is my configuration:
[win7g95s]
#
root: C:\opentelemac\v6p2
version: v6p2
language: 2
modules: update system
options:
#
cmd_obj: g95 -c -fendian=big -ffixed-line-length-132 <mods> <incs> <f95name>
cmd_lib: ar cru <libname> <objs>
cmd_exe: g95 -fendian=big -std=f95 -v -lm -o <exename> <objs> -Xlinker --start-group <libs> --end-group
#
mods_all: -I <config>
#
sfx_zip: .zip
sfx_lib: .lib
sfx_obj: .o
sfx_mod: .mod
sfx_exe: .exe
#
# also possible val_root: <root>/../validation
val_root: <modpath>/validation
val_rank: all
# also possible val_rank: <3 >7 6

I am a new user and despite I did my search, I have no idea what this 'ar' command could be.
Any help would be very appreciated, thanks.
The administrator has disabled public write access.

'ar' not recognised 12 years 1 month ago #5818

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
ar is the archiving program (or the "*.lib" creator). In the installation of g95 you can find it within the bin directory, which tells me that you may not have the PATH to the g95\bin directory in your PATH.

Please add it and try again (you'll need to close your DOS command windows and strt the compilation again).

Note that we are now also recommending the gfortran compiler for windows, which now come with all binaries pre-compiled for 32bit and 64bit architechtures.

Hope this helps.

Sébastien.
The administrator has disabled public write access.
The following user(s) said Thank You: ygrisard

'ar' not recognised 12 years 1 month ago #5903

  • ygrisard
  • ygrisard's Avatar
Thank you for your answer Sebastien,

As you recommended, I now try to compile TELEMAC on windows XP 32 with Python and gfortran. Unfortunately, I could not find any example of configuration file for windows gfortran scalar. So I tryed something anyway, I changed my configuration wing95s this way:

cmd_obj: gfortran -c -O3 -ffixed-line-length-132 -fconvert=big-endian -frecord-marker=4 <mods> <incs> <f95name>
cmd_lib: ar cru <libname> <objs>
cmd_exe: gfortran -fconvert=big-endian -frecord-marker=4 -v -o <exename> <objs> -Xlinker --start-group <libs> --end-group


Here is the error I get from the compilation (attachments).

Any idea would be appreciated, thanks

Yohann
The administrator has disabled public write access.

'ar' not recognised 12 years 1 month ago #5904

  • ygrisard
  • ygrisard's Avatar
Sorry, here is the attachment
NewPicture.JPG
The administrator has disabled public write access.

'ar' not recognised 12 years 1 month ago #5911

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi

--start-group --end-group are g95 options
have a look on the forum Fabien (ails) as already indicate the options for gfortran. I'm not sure but i seems to me this is -Wl

Hope this helps
Christophe
The administrator has disabled public write access.
The following user(s) said Thank You: ygrisard

'ar' not recognised 12 years 1 month ago #5916

  • ails
  • ails's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 140
  • Thank you received: 17
In this case, you should try to remove only "--end-group" from your cfg file.
Xlinker --start-group also workd with gfortran and Xlinker seems to be known on your system. If not, -Wl, ... would be a solution.

Fabien
The administrator has disabled public write access.
The following user(s) said Thank You: ygrisard
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.