PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

PGF90-W-0006-Input File Empty
Goto page 1, 2  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
stormlab



Joined: 23 Jul 2005
Posts: 28

PostPosted: Sun Jul 24, 2005 9:33 am    Post subject: PGF90-W-0006-Input File Empty Reply with quote

Hello,

It seems that the PGI pgf90 compiler for Windows delete my fortran codes!

When I start the PGI workstation and try to run make to compile some FORTRAN codes it gives me error:

PGF90-W-0006-Input File Empty (whatever_file.f)

After that I check the files in the directory and the FORTRAN files are empty (zero size)! The compiler delete them! and some of them are with extention .i instead .f as before compiling.

Please tell me what wrong I do.

Thanks a lot!

Sincerely,

Angel Dimitrov
Varna, Bulgaria
http://www.stormlab.net
Back to top
View user's profile
stormlab



Joined: 23 Jul 2005
Posts: 28

PostPosted: Sun Jul 24, 2005 9:43 am    Post subject: I found the problem! Reply with quote

wow! I found the error:

############################
rm -f gbytesys.f
rm -f gribcode.o
pgcc -C -P -DDEC -DBIT32 gribcode.F > gribcode.f
C:\PROGRA~1\PGI/license.dat: product 'pgf77-win32' is not permanently licensed
or this host
pgf90 -c -Mfreeform -byteswapio gribcode.f
C:\PROGRA~1\PGI/license.dat: product 'pgf90-win32' is not permanently licensed
or this host
PGF90-W-0006-Input file empty (gribcode.f)
PGF90/x86 nt86 6.0-5: compilation completed with warnings
#########################

the makefile delete the fortran file with rm -f!

Angel Dimitrov
stormlab.net
Back to top
View user's profile
stormlab



Joined: 23 Jul 2005
Posts: 28

PostPosted: Sun Jul 24, 2005 9:59 am    Post subject: flags Reply with quote

I removed the "rm -f" from the makefile and all other flags to test but it still delete the .F files... any ideas?

Angel
stormlab.net
Back to top
View user's profile
stormlab



Joined: 23 Jul 2005
Posts: 28

PostPosted: Sun Jul 24, 2005 12:09 pm    Post subject: I found the problem - it was in the Makefile... Reply with quote

I found the problem - it was in the Makefile...
Angel
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Jul 25, 2005 11:58 am    Post subject: Reply with quote

Hi Angel,

You probably figured this out but "pgcc -P" sends the output to an intermediate file (".i") not to standard output. For this case, you should either use "cpp" or pgf90 directly on the ".F". pgf90 has a preprocessor built in which is envoked when a file ends with ".F" or ".F90" or when the flag "-Mpreprocess" is used.

Hope this helps,
Mat
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 1, 2  Next
Page 1 of 2

 
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