PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

generate executable file that can't run!
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
YangYT



Joined: 20 Aug 2004
Posts: 5

PostPosted: Thu Sep 02, 2004 5:44 pm    Post subject: Re: Might be problem with your system files Reply with quote

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
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5952
Location: The Portland Group Inc.

PostPosted: Thu Sep 02, 2004 9:17 pm    Post subject: Reply with quote

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
View user's profile
YangYT



Joined: 20 Aug 2004
Posts: 5

PostPosted: Fri Sep 03, 2004 7:13 am    Post subject: Reply with quote

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
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5952
Location: The Portland Group Inc.

PostPosted: Fri Sep 03, 2004 10:54 am    Post subject: start.s Reply with quote

[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
View user's profile
YangYT



Joined: 20 Aug 2004
Posts: 5

PostPosted: Fri Sep 10, 2004 7:44 pm    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
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 © phpBB Group