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 had a Microsoft Technical interview this past Friday, the question I was asked was this : How do you find the middle value for a dataset that is too big to fit in RAM? I was not able to figure this out during the interview, but I have been look in this all weekend and I read something online that said it can be done at O(N) using something called the counting sort histogram algorithm ( I did not learn that in my advanced data structures and algorithms class). I have watched some youtube...

Similar threads

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