|
| View previous topic :: View next topic |
| Author |
Message |
YangYT
Joined: 20 Aug 2004 Posts: 5
|
Posted: Tue Aug 31, 2004 10:46 pm Post subject: generate executable file that can't run! |
|
|
I have encountered a strange problem.I compiled a Fortran source file to executable,it have only reported two warnings and generated the executable well,but after I ran it,it quited soon and gave me no response.Then I added a 'print' statement at the beginning of the soucefile and recompile it,but it did the same.
Who could give me a hand?
I was working on RedHat Linux 9,with PGI workstation 5.2 - PGF77,it is a
trial version
the following is information outputed in the process of debugging the program using pgdbg:
It poped up a dialog with the message "Signalled SIGSEGV at 0x40000be0,function _start,file<stdin>",and messages like "pgserv 4301: read: unable to read address 0x40000fc4" appeared in the terminal titled "PGDBG Program I/O"
The problem is still unsolved
Last edited by YangYT on Wed Sep 01, 2004 6:13 am; edited 2 times in total |
|
| Back to top |
|
 |
uncle_tom
Joined: 16 Aug 2004 Posts: 4
|
Posted: Tue Aug 31, 2004 11:44 pm Post subject: |
|
|
Hi,
sorry if this is a stupid suggestion:
is it possible that your program is simply waiting for a <RETURN>?
We used the trial version some time ago, and I think one restriction was that executables need a <RETURN> to start.
(Which is o.k., of course... ;-) )
If you already tried this: sorry again!
Thomas |
|
| Back to top |
|
 |
YangYT
Joined: 20 Aug 2004 Posts: 5
|
Posted: Wed Sep 01, 2004 2:21 am Post subject: |
|
|
Thanks for your suggestion all the same!
My case may not be the same as your.
I forgot to give other details.After I have run my program ,it quited soon and act as it have done nothing.Even it can't access the first executable
statements in the source file(i.e the 'print' statement I added).
Thanks again! |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Wed Sep 01, 2004 9:44 am Post subject: Might be problem with your system files |
|
|
Very odd. It appears to be seg faulting in the program start-up routine. "_start" is coming from the file "/usr/lib/crt1.o" which is a system provided object.
Questions:
Have you modifed your system from the default installation, i.e upgraded the kernel or gcc version?
What are the warning messages your seeing?
What optimization are you using to compile?
Can you successfully run a hello world program?
hello.f:
| Code: | write (*.*) 'Hello World'
end |
I hello.f doesn't work, compile it again with "-v" and post the line that starts with "/usr/bin/ld".
Thanks,
Mat
P.S. I'm not sure why Thomas encountered an issue where he had to press <RETURN> to run is program but this is not a requirment of the Demo version of the compiler. The Demo compilers are the exact same as the licensed versions, except they stop working after the demo period. That is until you get a license. |
|
| Back to top |
|
 |
uncle_tom
Joined: 16 Aug 2004 Posts: 4
|
Posted: Thu Sep 02, 2004 12:40 am Post subject: Re: Might be problem with your system files |
|
|
| mkcolg wrote: |
P.S. I'm not sure why Thomas encountered an issue where he had to press <RETURN> to run is program but this is not a requirment of the Demo version of the compiler. The Demo compilers are the exact same as the licensed versions, except they stop working after the demo period. That is until you get a license. |
Oh no...
We definitively tried too many compilers... :-(
you are right, this <RETURN> things comes from Lahey lf95 trial.
Sorry,
Thomas |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|