Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Error in linking libraries

Error in linking libraries 10 years 5 months ago #13376

  • ARYA RATHISH
  • ARYA RATHISH's Avatar
Dear Sir,

I am trying to compile and install TELEMAC systems (V6P3) in my PC. But I am facing some difficulties in that.
First I compiled the source codes and created object files (*.o). Then library files were created for each module combining the corresponding object files.
After this, I need to link these libraries to make executable (*.exe) for all the modules. In this step, I am getting the following error message:

*******************************************************************************D:\Install\TELEMAC\v6p3\builds\gfortran\lib\biefV6P3.lib: could not read symbols: Archive has no index; run ranlib to add one
collect2.exe: error: ld returned 1 exit status
NMAKE : fatal error U1077: 'D:\Install\strawberry\c\bin\gfortran.exe' : return code '0x1'
Stop.

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

I am using windows 7, 64 bit computer, strawberry perl and gfortran compiler.

I searched for this error in internet and found few solutions like using ranlib or command switch 's' after archiver (ar) to add index. But the same error occurred even after running those.

Kindly help me solve this issue.


Warm Regards,

ARYA RATHISH
The administrator has disabled public write access.

Error in linking libraries 10 years 5 months ago #13405

  • ARYA RATHISH
  • ARYA RATHISH's Avatar
Hello,

I tried installation with precompiled telemac source code either.
when I ran example 'cavity'the following error appeared.

*************************************************************************
gfortran -c -O3 -fopenmp -fconvert=big-endian -frecord-marker=4 -I C:\opentelemac-mascaret\v6p3\builds\win7gfors\lib\utils\special -I C:\opentelemac
-mascaret\v6p3\builds\win7gfors\lib\utils\parallel -I C:\opentelemac-mascaret\v6p3\builds\win7gfors\lib\utils\damocles -I C:\opentelemac-mascaret\v6
p3\builds\win7gfors\lib\utils\bief -I C:\opentelemac-mascaret\v6p3\builds\win7gfors\lib\sisyphe -I C:\opentelemac-mascaret\v6p3\builds\win7gfors\lib
\tomawac -I C:\opentelemac-mascaret\v6p3\builds\win7gfors\lib\telemac2d t2dfort.f
t2dfort.f:36.9:

USE BIEF
1
Fatal Error: Wrong module version '10' (expected '9') for file 'bief.mod' opened at (1)
... The following command failed for the reason above
gfortran -c -O3 -fopenmp -fconvert=big-endian -frecord-marker=4 -I C:\opentelemac-mascaret\v6p3\builds\win7gfors\lib\utils\special -I C:\opentelemac
-mascaret\v6p3\builds\win7gfors\lib\utils\parallel -I C:\opentelemac-mascaret\v6p3\builds\win7gfors\lib\utils\damocles -I C:\opentelemac-mascaret\v6
p3\builds\win7gfors\lib\utils\bief -I C:\opentelemac-mascaret\v6p3\builds\win7gfors\lib\sisyphe -I C:\opentelemac-mascaret\v6p3\builds\win7gfors\lib
\tomawac -I C:\opentelemac-mascaret\v6p3\builds\win7gfors\lib\telemac2d t2dfort.f
***************************************************************************

I tried recompiling telemac using 'compileTELEMAC.py', which showed again error in the library file created. Message shown on command prompt is attached.
I could not find what went wrong!
Please help me solve this issue.


File Attachment:

File Name: error.txt
File Size: 9 KB
The administrator has disabled public write access.

Error in linking libraries 10 years 5 months ago #13406

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Hi, can you post your systel.cfg file?
Costas
The administrator has disabled public write access.

Error in linking libraries 10 years 5 months ago #13410

  • ARYA RATHISH
  • ARYA RATHISH's Avatar
Hi,

systel.cfg is attached.


File Attachment:

File Name: systel.cfg
File Size: 3 KB
The administrator has disabled public write access.

Error in linking libraries 10 years 5 months ago #13423

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Hi, it seems that this is an issue with the automatic installer. I have never encountered a similar error when I compile manually. If you don't sort it out, try downloading the sources and compile from scratch.

Regards,
Costas
The administrator has disabled public write access.

Error in linking libraries 10 years 5 months ago #13424

  • ARYA RATHISH
  • ARYA RATHISH's Avatar
Hi,

Thank you for your reply.

I was not using automatic installer.
I downloaded the precompiled binary of version 6p3 (gfortran, 64bit scalar) and set the path in my pc.
The first error in module version, i think may be due to the version difference in the fortran compiler. Am using version 4.7.3.
But the second error, I can't find the reason. I tried compiling from source codes (both v6p3 and v6p2) either. But the same error occurred.

What could be the reason for index not to be written into library file?

Regards,
Arya
The administrator has disabled public write access.

Error in linking libraries 10 years 5 months ago #13425

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Which compiler do you use? I have been using mingw-64 successfully. Version 4.9.0 is out, I recompile the whole system as we speak. Version 4.8.2 worked fine so far. Here is the link if you want to give it a try:
x86_64-4.8.2-release-win32-seh-rt_v3-rev4.7z
Regards,
Costas
The administrator has disabled public write access.
The following user(s) said Thank You: ARYA RATHISH

Error in linking libraries 10 years 5 months ago #13427

  • ARYA RATHISH
  • ARYA RATHISH's Avatar
Hello Costas,

Thank you.

I replaced gcc 4.7.3 with 4.8.2
Now it is working fine.

Regards,
Arya
The administrator has disabled public write access.

Error in linking libraries 10 years 5 months ago #13428

  • Wiener H
  • Wiener H's Avatar
I have a similar problem.
This is the error message I got.
Attachments:
The administrator has disabled public write access.

Error in linking libraries 10 years 5 months ago #13429

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Hi, this seems to be an error with the automatic installer. I have no experience with it. Maybe a developer can help you with that. Make sure you post your question in the appropriate section.

Regards,
Costas
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: borisb

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