Trouble running a compiled FORTRAN program.. failing with error trying to open a file at line 61












0















I have no experience in Fortran having written code in C# and Aurelia.



I was interested in a program that designs turbine blades and would have liked to use it to explore a design process however its supplied as a program ready to compile and run.



Here is the Dropbox with the program. (there are 3 such programs this being the first in a series)



https://www.dropbox.com/sh/8i0jyxzjb57q4j4/AADwCp9bufU-_uug9yHmvQYma/MEANGEN/meangen%20program?dl=0&preview=meangen-17.4.f&subfolder_nav_tracking=1



Instructions on the use of this are a couple of folders up..



https://www.dropbox.com/sh/8i0jyxzjb57q4j4/AAAh1Jq_WkJfDSRet69Rxfo-a/MEANGEN/meangen-instructions.pdf?dl=0



I have installed minGW-W64 added to the path and then attempted to run the program. Where I think I should get a bunch of questions etc It runs and stops with an error. So I was able to compile it but it fails trying to open a file.



At line 61 of file mengen.f (unit = 5)
Fortran runtime error: Cannot open file '/dev/tty': No such file or directory

Error termination. Backtrace:

Could not print backtrace: libbacktrace could not find executable to open
#0 0xffffffff
#1 0xffffffff
#2 0xffffffff
#3 0xffffffff
#4 0xffffffff
#5 0xffffffff
#6 0xffffffff
#7 0xffffffff
#8 0xffffffff
#9 0xffffffff
#10 0xffffffff
#11 0xffffffff


I looked at the code and its trying to open a file called /dev/tty here is the line 60.



C
OPEN(UNIT=10, FILE= 'meangen.out')
OPEN(UNIT=5, FILE= '/dev/tty')
C


Anybody out there who might know how to fix this and get it to work?










share|improve this question

























  • That's unix specific. Run it on Linux or something.

    – melpomene
    Jan 19 at 23:46






  • 1





    My usual policy is - if you have windows as your OS only use tool chains which are made for windows. All that mingw and cygwin stuff makes me cringe. Even if it costs you some bucks - I am sure you can find a fortran which works natively on windows.

    – BitTickler
    Jan 19 at 23:47











  • stackoverflow.com/questions/10435308/what-is-dev-tty-in-unix

    – melpomene
    Jan 19 at 23:47











  • @BitTickler The problem is not Fortran, the problem is the application (that happens to be written in Fortran).

    – melpomene
    Jan 19 at 23:48






  • 1





    Please do NOT present the code as a Dropbox link or any other external link. The question must remain useful for others. And I will not click on any suspicious links myself. It is Linux, not Linix, and yes, any Linux should handle that. Or any other Unix, MacOS included. You can try installing Linux in your Windows using docs.microsoft.com/en-us/windows/wsl/install-win10

    – Vladimir F
    Jan 21 at 10:01


















0















I have no experience in Fortran having written code in C# and Aurelia.



I was interested in a program that designs turbine blades and would have liked to use it to explore a design process however its supplied as a program ready to compile and run.



Here is the Dropbox with the program. (there are 3 such programs this being the first in a series)



https://www.dropbox.com/sh/8i0jyxzjb57q4j4/AADwCp9bufU-_uug9yHmvQYma/MEANGEN/meangen%20program?dl=0&preview=meangen-17.4.f&subfolder_nav_tracking=1



Instructions on the use of this are a couple of folders up..



https://www.dropbox.com/sh/8i0jyxzjb57q4j4/AAAh1Jq_WkJfDSRet69Rxfo-a/MEANGEN/meangen-instructions.pdf?dl=0



I have installed minGW-W64 added to the path and then attempted to run the program. Where I think I should get a bunch of questions etc It runs and stops with an error. So I was able to compile it but it fails trying to open a file.



At line 61 of file mengen.f (unit = 5)
Fortran runtime error: Cannot open file '/dev/tty': No such file or directory

Error termination. Backtrace:

Could not print backtrace: libbacktrace could not find executable to open
#0 0xffffffff
#1 0xffffffff
#2 0xffffffff
#3 0xffffffff
#4 0xffffffff
#5 0xffffffff
#6 0xffffffff
#7 0xffffffff
#8 0xffffffff
#9 0xffffffff
#10 0xffffffff
#11 0xffffffff


I looked at the code and its trying to open a file called /dev/tty here is the line 60.



C
OPEN(UNIT=10, FILE= 'meangen.out')
OPEN(UNIT=5, FILE= '/dev/tty')
C


Anybody out there who might know how to fix this and get it to work?










share|improve this question

























  • That's unix specific. Run it on Linux or something.

    – melpomene
    Jan 19 at 23:46






  • 1





    My usual policy is - if you have windows as your OS only use tool chains which are made for windows. All that mingw and cygwin stuff makes me cringe. Even if it costs you some bucks - I am sure you can find a fortran which works natively on windows.

    – BitTickler
    Jan 19 at 23:47











  • stackoverflow.com/questions/10435308/what-is-dev-tty-in-unix

    – melpomene
    Jan 19 at 23:47











  • @BitTickler The problem is not Fortran, the problem is the application (that happens to be written in Fortran).

    – melpomene
    Jan 19 at 23:48






  • 1





    Please do NOT present the code as a Dropbox link or any other external link. The question must remain useful for others. And I will not click on any suspicious links myself. It is Linux, not Linix, and yes, any Linux should handle that. Or any other Unix, MacOS included. You can try installing Linux in your Windows using docs.microsoft.com/en-us/windows/wsl/install-win10

    – Vladimir F
    Jan 21 at 10:01
















0












0








0








I have no experience in Fortran having written code in C# and Aurelia.



I was interested in a program that designs turbine blades and would have liked to use it to explore a design process however its supplied as a program ready to compile and run.



Here is the Dropbox with the program. (there are 3 such programs this being the first in a series)



https://www.dropbox.com/sh/8i0jyxzjb57q4j4/AADwCp9bufU-_uug9yHmvQYma/MEANGEN/meangen%20program?dl=0&preview=meangen-17.4.f&subfolder_nav_tracking=1



Instructions on the use of this are a couple of folders up..



https://www.dropbox.com/sh/8i0jyxzjb57q4j4/AAAh1Jq_WkJfDSRet69Rxfo-a/MEANGEN/meangen-instructions.pdf?dl=0



I have installed minGW-W64 added to the path and then attempted to run the program. Where I think I should get a bunch of questions etc It runs and stops with an error. So I was able to compile it but it fails trying to open a file.



At line 61 of file mengen.f (unit = 5)
Fortran runtime error: Cannot open file '/dev/tty': No such file or directory

Error termination. Backtrace:

Could not print backtrace: libbacktrace could not find executable to open
#0 0xffffffff
#1 0xffffffff
#2 0xffffffff
#3 0xffffffff
#4 0xffffffff
#5 0xffffffff
#6 0xffffffff
#7 0xffffffff
#8 0xffffffff
#9 0xffffffff
#10 0xffffffff
#11 0xffffffff


I looked at the code and its trying to open a file called /dev/tty here is the line 60.



C
OPEN(UNIT=10, FILE= 'meangen.out')
OPEN(UNIT=5, FILE= '/dev/tty')
C


Anybody out there who might know how to fix this and get it to work?










share|improve this question
















I have no experience in Fortran having written code in C# and Aurelia.



I was interested in a program that designs turbine blades and would have liked to use it to explore a design process however its supplied as a program ready to compile and run.



Here is the Dropbox with the program. (there are 3 such programs this being the first in a series)



https://www.dropbox.com/sh/8i0jyxzjb57q4j4/AADwCp9bufU-_uug9yHmvQYma/MEANGEN/meangen%20program?dl=0&preview=meangen-17.4.f&subfolder_nav_tracking=1



Instructions on the use of this are a couple of folders up..



https://www.dropbox.com/sh/8i0jyxzjb57q4j4/AAAh1Jq_WkJfDSRet69Rxfo-a/MEANGEN/meangen-instructions.pdf?dl=0



I have installed minGW-W64 added to the path and then attempted to run the program. Where I think I should get a bunch of questions etc It runs and stops with an error. So I was able to compile it but it fails trying to open a file.



At line 61 of file mengen.f (unit = 5)
Fortran runtime error: Cannot open file '/dev/tty': No such file or directory

Error termination. Backtrace:

Could not print backtrace: libbacktrace could not find executable to open
#0 0xffffffff
#1 0xffffffff
#2 0xffffffff
#3 0xffffffff
#4 0xffffffff
#5 0xffffffff
#6 0xffffffff
#7 0xffffffff
#8 0xffffffff
#9 0xffffffff
#10 0xffffffff
#11 0xffffffff


I looked at the code and its trying to open a file called /dev/tty here is the line 60.



C
OPEN(UNIT=10, FILE= 'meangen.out')
OPEN(UNIT=5, FILE= '/dev/tty')
C


Anybody out there who might know how to fix this and get it to work?







fortran gfortran






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 21 at 10:02









Vladimir F

40.4k44071




40.4k44071










asked Jan 19 at 23:41









si2030si2030

73321228




73321228













  • That's unix specific. Run it on Linux or something.

    – melpomene
    Jan 19 at 23:46






  • 1





    My usual policy is - if you have windows as your OS only use tool chains which are made for windows. All that mingw and cygwin stuff makes me cringe. Even if it costs you some bucks - I am sure you can find a fortran which works natively on windows.

    – BitTickler
    Jan 19 at 23:47











  • stackoverflow.com/questions/10435308/what-is-dev-tty-in-unix

    – melpomene
    Jan 19 at 23:47











  • @BitTickler The problem is not Fortran, the problem is the application (that happens to be written in Fortran).

    – melpomene
    Jan 19 at 23:48






  • 1





    Please do NOT present the code as a Dropbox link or any other external link. The question must remain useful for others. And I will not click on any suspicious links myself. It is Linux, not Linix, and yes, any Linux should handle that. Or any other Unix, MacOS included. You can try installing Linux in your Windows using docs.microsoft.com/en-us/windows/wsl/install-win10

    – Vladimir F
    Jan 21 at 10:01





















  • That's unix specific. Run it on Linux or something.

    – melpomene
    Jan 19 at 23:46






  • 1





    My usual policy is - if you have windows as your OS only use tool chains which are made for windows. All that mingw and cygwin stuff makes me cringe. Even if it costs you some bucks - I am sure you can find a fortran which works natively on windows.

    – BitTickler
    Jan 19 at 23:47











  • stackoverflow.com/questions/10435308/what-is-dev-tty-in-unix

    – melpomene
    Jan 19 at 23:47











  • @BitTickler The problem is not Fortran, the problem is the application (that happens to be written in Fortran).

    – melpomene
    Jan 19 at 23:48






  • 1





    Please do NOT present the code as a Dropbox link or any other external link. The question must remain useful for others. And I will not click on any suspicious links myself. It is Linux, not Linix, and yes, any Linux should handle that. Or any other Unix, MacOS included. You can try installing Linux in your Windows using docs.microsoft.com/en-us/windows/wsl/install-win10

    – Vladimir F
    Jan 21 at 10:01



















That's unix specific. Run it on Linux or something.

– melpomene
Jan 19 at 23:46





That's unix specific. Run it on Linux or something.

– melpomene
Jan 19 at 23:46




1




1





My usual policy is - if you have windows as your OS only use tool chains which are made for windows. All that mingw and cygwin stuff makes me cringe. Even if it costs you some bucks - I am sure you can find a fortran which works natively on windows.

– BitTickler
Jan 19 at 23:47





My usual policy is - if you have windows as your OS only use tool chains which are made for windows. All that mingw and cygwin stuff makes me cringe. Even if it costs you some bucks - I am sure you can find a fortran which works natively on windows.

– BitTickler
Jan 19 at 23:47













stackoverflow.com/questions/10435308/what-is-dev-tty-in-unix

– melpomene
Jan 19 at 23:47





stackoverflow.com/questions/10435308/what-is-dev-tty-in-unix

– melpomene
Jan 19 at 23:47













@BitTickler The problem is not Fortran, the problem is the application (that happens to be written in Fortran).

– melpomene
Jan 19 at 23:48





@BitTickler The problem is not Fortran, the problem is the application (that happens to be written in Fortran).

– melpomene
Jan 19 at 23:48




1




1





Please do NOT present the code as a Dropbox link or any other external link. The question must remain useful for others. And I will not click on any suspicious links myself. It is Linux, not Linix, and yes, any Linux should handle that. Or any other Unix, MacOS included. You can try installing Linux in your Windows using docs.microsoft.com/en-us/windows/wsl/install-win10

– Vladimir F
Jan 21 at 10:01







Please do NOT present the code as a Dropbox link or any other external link. The question must remain useful for others. And I will not click on any suspicious links myself. It is Linux, not Linix, and yes, any Linux should handle that. Or any other Unix, MacOS included. You can try installing Linux in your Windows using docs.microsoft.com/en-us/windows/wsl/install-win10

– Vladimir F
Jan 21 at 10:01














0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54272320%2ftrouble-running-a-compiled-fortran-program-failing-with-error-trying-to-open-a%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54272320%2ftrouble-running-a-compiled-fortran-program-failing-with-error-trying-to-open-a%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Callistus III

Plistias Cous

Index Sanctorum