| View previous topic :: View next topic |
| Author |
Message |
YangYT
Joined: 20 Aug 2004 Posts: 5
|
Posted: Thu Sep 02, 2004 5:44 pm Post subject: Re: Might be problem with your system files |
|
|
| mkcolg wrote: |
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?
|
answers:
1.No
2.PGFTN-W-0169-Multiple data initializations of common block const (waveglobe10_sj
q.f)
PGFTN-W-0169-Multiple data initializations of common block consour (waveglobe10_sjq.f)
3.I have used the "-g" option,so I think the optimization level is 0
4.Yes.A program as follow
program test
write(*,*) "Successful"
stop
end |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Thu Sep 02, 2004 9:17 pm Post subject: |
|
|
Another possiblity is that the program is getting a stack overflow error. Try setting your stack size to unlimited ('ulimit') and run the program again. Also, try running the same executable on a different system.
- Mat |
|
| Back to top |
|
 |
YangYT
Joined: 20 Aug 2004 Posts: 5
|
Posted: Fri Sep 03, 2004 7:13 am Post subject: |
|
|
Mat,
I do it using the command "ulimit -s unlimited",but it didn't work.
When I used "ddd" to debug the program,it gives following messages:
1. On RedHat 9 + PGI Fortran 5.2
~/sysdeps/i386/elf/start.S: No such file or directory
2. On Redhat 7.2 + PGI Fortran 3.2-4
~/work/init.c: No such file or directory
"~" is my home directory,"work" is my working directory also where my program ran.
Now after program quited,it printed the message "Segmentation default".
PS: my program had linked the NetCDF library(built by PGI compiler) |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Fri Sep 03, 2004 10:54 am Post subject: start.s |
|
|
[quote="YangYT"]1. On RedHat 9 + PGI Fortran 5.2
~/sysdeps/i386/elf/start.S: No such file or directory
[quote]
Are you using your own "start.s" file? Perhaps you interfering with the system's start-up routine by having a function called "_start" that overrides the system's start function.
How are these system dependent assembly files used? Your problem is most likely with these files.
- Mat |
|
| Back to top |
|
 |
YangYT
Joined: 20 Aug 2004 Posts: 5
|
Posted: Fri Sep 10, 2004 7:44 pm Post subject: |
|
|
No,I didn't use my own start.S file.Even I could find the start.S file in my system.How can I get it?
I have seen a string "../sysdeps/i386/elf/start.S" in the /usr/lib/crt1.o,but I don't understand it's meanings. |
|
| Back to top |
|
 |
|