Fortran Error compiling in Fortran (Ubuntu)

AI Thread Summary
The discussion revolves around a user transitioning their physics simulation project from a Mac to a computer running Ubuntu 10.10, encountering an "I/O error on c_file" during compilation with Fortran 77 using Minuit libraries. Despite successfully compiling on the Mac, the user faces challenges with the new setup, having installed necessary compilers like gfortran, fort77, and gcc. They express confusion over the error, which appears to be related to C/C++ despite not using those languages. Suggestions from other users indicate that the issue may stem from compatibility problems, particularly since the user is on a 64-bit Ubuntu system while the CERN libraries might be compiled for 32-bit. The user is considering compiling the CERN libraries themselves to resolve the issue.
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.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Replies
3
Views
5K
Replies
2
Views
2K
Replies
14
Views
2K
Replies
22
Views
3K
Replies
2
Views
3K
Back
Top