forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Checkmate or Release ?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Plato
View previous topic :: View next topic  
Author Message
sospel



Joined: 26 Apr 2013
Posts: 31

PostPosted: Mon Dec 02, 2013 5:17 pm    Post subject: Checkmate or Release ? Reply with quote

Hello Smile

PLATO has a behavior that I cannot understand ! Here is my problem :

1/ I have a "project" in development which I configure in mode: "CheckMate WIN32", as it is recommended in " BASIC features of Plato ".

2/ Then, I "build" the subroutines of the project and, in the " output " window of Plato , I have this message:
___________________________________________________
Compilation completed with no errors.
Linking...
Creating executable: CheckMate\Win32\BenchST.exe
Linking completed.
____________________________________________________

Well, but when I launch the execution, I have the message:

" ERROR: the target does not exist "

... and I verify that actually, I have no file " BenchST.exe " in sub-directory "CheckMate\Win32\" . Furthermore, a "find" on all my hard disk indicates me that such a file is nowhere Sad

3/ On the other hand, if I re-configure in mode "Release WIN32" the executable is created, stored in the sub-directory " Release\Win32\ " and when I launch the execution, I have my results !!!

Hence my question: where I make an error in the 1st case?

Thank you in advance for any answer Smile

Cordially
SosPel
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Mon Dec 02, 2013 5:25 pm    Post subject: Reply with quote

Look at the file called buildlog in the project folder.
If it does not help you to identify the problem then post the file here for me to look at.
Back to top
View user's profile Send private message AIM Address
sospel



Joined: 26 Apr 2013
Posts: 31

PostPosted: Mon Dec 02, 2013 5:49 pm    Post subject: Checkmate or Release ? Reply with quote

@PaulLaidler

Thanks for speedy answer !

1/ File "buildlog" has only one line :

slink.exe -OUT:"CheckMate\Win32\BenchST.exe" @"C:\Dossiers@Themes\Fortran95\Exploitation\Bench-ST\link.lst"

2/ File "link.lst" has only four lines (there are 4 sub-routines):

"C:\Dossiers@Themes\Fortran95\Exploitation\Bench-ST\CheckMate\Win32\NomRez.obj"
"C:\Dossiers@Themes\Fortran95\Exploitation\Bench-ST\CheckMate\Win32\BenchRef.obj"
"C:\Dossiers@Themes\Fortran95\Exploitation\Bench-ST\CheckMate\Win32\Chrono.obj"
"C:\Dossiers@Themes\Fortran95\Exploitation\Bench-ST\CheckMate\Win32\Main.obj"

Cordially
SosPel
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Tue Dec 03, 2013 8:52 am    Post subject: Reply with quote

What happens when you choose "Debug" rather than "Checkmate"?
It's a long shot but "Checkmate" is longer than "Release" so there just might be a problem with the length of the path.
Back to top
View user's profile Send private message AIM Address
sospel



Joined: 26 Apr 2013
Posts: 31

PostPosted: Tue Dec 03, 2013 2:43 pm    Post subject: Reply with quote

Hello Paul !

>> What happens when you choose "Debug" rather than "Checkmate"?

Same as "Checkmate Win32" mode Sad
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Tue Dec 03, 2013 3:05 pm    Post subject: Reply with quote

I have tried creating a simple project using your path and it works OK for me.

Do you have write access to the folder that should contain the executable?
Back to top
View user's profile Send private message AIM Address
sospel



Joined: 26 Apr 2013
Posts: 31

PostPosted: Tue Dec 03, 2013 3:47 pm    Post subject: Reply with quote

>> Do you have write access to the folder that should contain the executable?

I've write name of executable in window "Project target", without the path.

Where write the access to the executable folder ?
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Tue Dec 03, 2013 6:27 pm    Post subject: Reply with quote

Are you able to create a file in the folder called "Checkmate"?
Plato is trying to do this and I wondered if you could do it?
For example, are you able to save a file to this folder?
Back to top
View user's profile Send private message AIM Address
sospel



Joined: 26 Apr 2013
Posts: 31

PostPosted: Tue Dec 03, 2013 8:39 pm    Post subject: Reply with quote

Hello Paul !

>> Are you able to create a file in the folder called "Checkmate"?

no problem ...

>> For example, are you able to save a file to this folder?

no problem ...

So, I don't understand why Folders "Checkmate\win32" and "Release\win32" which have same Windows attributes have not same Plato results Crying or Very sad

Meanwhile, many thanks for your help !

Sospel
Back to top
View user's profile Send private message
sospel



Joined: 26 Apr 2013
Posts: 31

PostPosted: Fri Dec 06, 2013 5:49 pm    Post subject: Checkmate or Release ? Reply with quote

Hello !

My problem is not still solved : the " checkmate "mode does not create executable, while the " release " mode creates it Crying or Very sad

Now, by consulting some calculations dating the beginning of the year, (thus most probably with the "version 6.xx") , and with same parameters, everything worked well : in every case I have the executable in " checkmate\win32\ "..

Anybody did not have this problem ??

Thanks for any answer Smile

Cordially
Sospel
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Fri Dec 06, 2013 6:28 pm    Post subject: Reply with quote

I don't know how this could happen but I would check that the key Silverfrost files ftn95.exe, slink.exe and salflibc.dll exist in the compiler folder (typically C:\program files (x86)\silverfrost\ftn95) and that there are no copies of these files in the project folder or its sub-folders.

Also make sure that there are no old copies of these files anywhere on your machine.
Back to top
View user's profile Send private message AIM Address
sospel



Joined: 26 Apr 2013
Posts: 31

PostPosted: Sat Dec 07, 2013 11:20 am    Post subject: Reply with quote

Hello Paul !

>>I would check that the key Silverfrost files ftn95.exe, slink.exe and salflibc.dll exist in the compiler folder

They are ...

>> there are no old copies of these files anywhere on your machine

There are no copies ...

Problem is to find an answer at the basic question :

why "release mode" makes an executable, and not "checkmate mode " ?

Perhaps answer is in source of SLINK.EXE module ??

Cordially,
Sospel Smile
Back to top
View user's profile Send private message
sospel



Joined: 26 Apr 2013
Posts: 31

PostPosted: Wed Dec 18, 2013 4:16 pm    Post subject: Reply with quote

Hello Smile

Anybody did not have this problem?

Anybody does not suspect a bad PLATO configuration from me?

Thanks for any answer !!
Back to top
View user's profile Send private message
JohnCampbell



Joined: 16 Feb 2006
Posts: 2554
Location: Sydney

PostPosted: Thu Dec 19, 2013 1:55 am    Post subject: Reply with quote

Sospel,

For some reason, Plato is not producing a .exe for /check. You should compile the file(s) in a cmd.exe box, outside Plato.
This will give you more messages from the compiler.
It could be that the compiler identifies an error using /check that it did not identify without /check.

This would be a good option for Plato; to report more/all messages from the compiler. Is it possible to change the compiler options within Plato so these messages are not suppressed?
I am assuming these messages are suppressed so that Plato can lock in the line numbers of the warning and error messages that are reported; which makes me wonder why the change I am assuming for /check is not being reported.

I always generate my .exe using a batch file, something like:
! make.bat
date /T > ftn95.tce
time /T >> ftn95.tce
del program.exe >> ftn95.tce
del program.map >> ftn95.tce
del *.obj >> ftn95.tce
del *.mod >> ftn95.tce

ftn95 program /debug >> ftn95.tce
ftn95 others /debug >> ftn95.tce
ftn95 tools /opt >> ftn95.tce
ftn95 user_interface /check >> ftn95.tce

slink load_program.txt >> ftn95.tce

dir /od >> ftn95.tce
notepad ftn95.tce

! load_program.txt
lo program.obj
lo others.obj
lo tools.obj
lo user_interface.obj
le \my_lib\static_lib.lib
map
file

The advantage of this approach is I can see what has been generated and what is missing

John
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Thu Dec 19, 2013 9:15 am    Post subject: Reply with quote

Plato suppresses some things, like the banner, but hopefully does not suppress any significant information. If it does then please let me know.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Plato All times are GMT + 1 Hour
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 © 2001, 2005 phpBB Group