Welcome, Guest
Username: Password: Remember me

TOPIC: Error when compiling from source

Error when compiling from source 13 years 2 months ago #2290

  • bouanan.aissa
  • bouanan.aissa's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 65
  • Thank you received: 1
Hello,

I downloaded the v6p1 source code from SVN. Since makeall90 doesn't work with me, I began a step by step compiling using g95. However, when compiling mumpsvoid, I got this message error :

**********************************************************************

F:\Telemac.v6p1\v6p1\mumpsvoid\mumpsvoid_v6p1\sources>maktel install all

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.

g95 -c -fendian=big -ffixed-line-length-132 -IF:\Telemac.v6p1\v6p1\mump
svoid\mumpsvoid_V6P1\g95 solve_mumps.f
g95 -c -fendian=big -ffixed-line-length-132 -IF:\Telemac.v6p1\v6p1\mump
svoid\mumpsvoid_V6P1\g95 pre4_mumps.f
-
Création de la librairie.
ar crumumpsvoidV6P1.lib solve_mumps.obj pre4_mumps.obj
C:\mingw\bin\ar.EXE: two different operation options specified
NMAKE : fatal error U1077: 'C:\mingw\bin\ar.EXE' : return code '0x1'
Stop.

**********************************************************************


I spent nearly a night trying to figure out without success :-(
Any help ?

Aissa
The administrator has disabled public write access.

Re: Error when compiling from source 13 years 2 months ago #2291

  • ails
  • ails's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 140
  • Thank you received: 17
Well,
As stated in www.opentelemac.org/index.php?option=com...=6&Itemid=62&lang=fr (lastest post), there's an error in the LIB_OPT_LIBEXT variable of the [g95] section of the online systel.ini

You should try to remove spaces in LIB_OPT_LIBEXT:

LIB_OPT_LIBEXT=" lib " should be replaced by "[/i] by LIB_OPT_LIBEXT="lib"

Apply changes with cfgmak.

For example, LIB_OPT_LIBEXT in [gfortran] is ok.

We will update the systel.ini available online.

Regards,

Fabien
The administrator has disabled public write access.

Re: Error when compiling from source 13 years 2 months ago #2306

  • bouanan.aissa
  • bouanan.aissa's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 65
  • Thank you received: 1
Great thank you for the trick.
I had also to modify the maktel.bat file to use g55.

Thanks again,
Aissa
The administrator has disabled public write access.

Re: Error when compiling from source 13 years 2 months ago #2316

  • bouanan.aissa
  • bouanan.aissa's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 65
  • Thank you received: 1
Hi again,

Everything went ok during compilation process. However when I tried to run a test "init_1", I had the following error message:

f:\Telemac.v6p1\v6p1\test.fr\init_1>telemac2d cas.txt
FATAL : Module <tm_info> inaccessible.
BEGIN failed--compilation aborted at F:\Telemac.v6p1\v6p1\bin/runtel.pl line 273
.
f:\Telemac.v6p1\v6p1\test.fr\init_1>


Any idea :-)

Aissa
The administrator has disabled public write access.

Re: Error when compiling from source 13 years 2 months ago #2317

  • jmhervouet
  • jmhervouet's Avatar
Hello,

This is a typical error when there is a problem with the installation of perl or with the path giving the way to perl or to the bin directory. Do not forget to renew the command cfgmak when you change your configuration, check which perl you are using by doing the command :

which perl

Hope this helps,

Jean-Michel Hervouet
The administrator has disabled public write access.

Re: Error when compiling from source 13 years 2 months ago #2318

  • ails
  • ails's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 140
  • Thank you received: 17
Hi,

Indeed, it has also been addressed in the FAQ : www.opentelemac.org/index.php?option=com...16&Itemid=20&lang=fr

=> "FATAL: Module inaccessible"

Regards,

Fabien Decung
The administrator has disabled public write access.

Re: Error when compiling from source 13 years 2 months ago #2320

  • bouanan.aissa
  • bouanan.aissa's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 65
  • Thank you received: 1
Thank you both for your prompt answers. But I have already ecumed the forum searching for a solution.

doing a perl -v gives the following :
**********************************************************************
This is perl 5, version 12, subversion 3 (v5.12.3) built for MSWin32-x64-multi-thread
Copyright 1987-2010, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at www.perl.org/, the Perl Home Page.
**********************************************************************

My systel.ini is :

**********************************************************************
#
Directory: where the Telemac system is installed
#
PROJECT=F:\Telemac.v6p1\v6p1
#
#
Platform: namely a combination machine+compiler
#
HOSTTYPE=g95
#
#
Perl : paths to interpreter (bin) and modules (lib)
#
# This may not be useful if perl is already installed independantly
# and included in the original path
#
[PERL]
PERLPATH=C:\strawberry\perl\bin
PERL5LIB=C:\strawberry\perl\lib
#
**********************************************************************

Any idea? Is it because I'm using an x64 Windows 7 OS?

Aissa
The administrator has disabled public write access.

Re: Error when compiling from source 13 years 2 months ago #2328

  • bouanan.aissa
  • bouanan.aissa's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 65
  • Thank you received: 1
Hi again,

I tried to install the system on my wife's laptop, running a 32bit Windows version and it works! However it doesn't on both my laptop and my personal workstation, running an x64 version of windows 7.

Is there anyway to let Telemac run on an x64 system?

Thank you,
Aissa
The administrator has disabled public write access.

Re: Error when compiling from source 13 years 2 months ago #2361

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

I'm not sure but it seems to me that i noticed a compatibility problem between W7-64bits and strawberry perl 5.12.3

Try to uninstall perl and intall a previous version (i use 5.12.1 on my computer)

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

Re: Error when compiling from source 13 years 2 months ago #2385

  • bouanan.aissa
  • bouanan.aissa's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 65
  • Thank you received: 1
Hi Chris,

Yes! It does work. I've used the 5.12.1 version of strawberry perl and everything is ok now :-)

Thank you,

Aissa
The administrator has disabled public write access.
Moderators: borisb

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