Error compiling in Fortran (Ubuntu)

  • Context: Fortran 
  • Thread starter Thread starter meredithvl
  • Start date Start date
  • Tags Tags
    Error Fortran Ubuntu
Click For Summary
SUMMARY

The forum discussion centers on a compilation error encountered while using Fortran 77 on Ubuntu 10.10 with Minuit libraries from CERN. The user reports an "I/O error on c_file" despite successful compilation on a Mac. The issue arises from potential incompatibilities between 64-bit Ubuntu and 32-bit CERN libraries, as well as the use of different compilers like gfortran and fort77. The user is exploring options to compile the CERN libraries themselves to resolve the issue.

PREREQUISITES
  • Understanding of Fortran 77 programming
  • Familiarity with Ubuntu 10.10 operating system
  • Knowledge of Minuit libraries from CERN
  • Experience with gfortran and fort77 compilers
NEXT STEPS
  • Research how to compile CERN libraries for 64-bit systems
  • Learn about the differences between 32-bit and 64-bit library compatibility
  • Explore troubleshooting techniques for I/O errors in Fortran
  • Investigate alternative Fortran compilers available for Ubuntu
USEFUL FOR

This discussion is beneficial for physics students, software developers working with Fortran, and anyone troubleshooting compilation issues on Ubuntu systems, particularly those using CERN libraries.

meredithvl
Messages
2
Reaction score
0
Hello all, I'm new to this forum, but not to Physics, I'm completing my master degree. :)

I'm currently running a simulation using Minuit from CERN. I recently changed the computer I'm working on, the new computer has Ubuntu 10.10 installed (I was working on my director's Mac before). All my coding is written in Fortran 77. I installed Minuit libs, gfortran, fort77 and gcc in the computer with Ubuntu, but when I try to compile, I get this error:"I/O error on c_file".

I did a search on this error, and all I found is that this is a C or C++ error. I'm puzzled, because I'm not using C coding or C compilers. Everything I tried, like creating alias, or using makefile, failed. I changed nothing in the program itself, and it compiled just fine in the Mac. I really don't know what is wrong.

Any thoughts will be greatly appreciated!
 
Technology news on Phys.org
Is this still a problem?
If so, which of the above compilers did you use? If it was gfortran that would be extremely odd, but if you were using gcc I could see why a C/C++ error would occur.

I use gfortran to compile my f90 programs on UBUNTU. The most used compile line for me is

gfortran -o test [your file name].f90

(or .f77 in your case). 'test' is the name of the compiled file.
 
I get this error when compiling with fort77, anyway I installed Intel compiler, and this still doesn't work, but it's probably perhaps I'm running Ubuntu 64 bits, and CERN libraries are compiled for 32 bits. I'm still working on the problem, to see if I can compile CERN libraries myself.
Thank you for your reply.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 22 ·
Replies
22
Views
4K
Replies
6
Views
3K
  • · Replies 2 ·
Replies
2
Views
8K
  • · Replies 13 ·
Replies
13
Views
2K