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 

Missing "COMPILER_VERSION()"?

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
wahorger



Joined: 13 Oct 2014
Posts: 1217
Location: Morrison, CO, USA

PostPosted: Wed Jun 28, 2023 11:10 pm    Post subject: Missing "COMPILER_VERSION()"? Reply with quote

I downloaded the latest DLLs and FTN95 and began a full rebuild of my product. Note, I had done a complete recompile and link about 3 days before the new items were announced. Nothing in the build script has changed.

During the link, this error stopped me.
Quote:
WARNING the following symbols are missing:
COMPILER_VERSION f:\CMASTERF95\RELEASE\WIN32\C-MASTER.lib (/936 )
(f:\CMASTERF95\RELEASE\WIN32\CMASTER_INITIALIZATION.obj)


Is it possible it got dropped? Or is there another change I should be aware of?

Thanks!
Bill
Back to top
View user's profile Send private message Visit poster's website
wahorger



Joined: 13 Oct 2014
Posts: 1217
Location: Morrison, CO, USA

PostPosted: Wed Jun 28, 2023 11:17 pm    Post subject: Reply with quote

In the listing file, I have this warning:
Quote:
WARNING - 1322: ISO_FORTRAN_ENV COMPILER_VERSION is hidden because of USE with ONLY.


whatever this might mean...
Back to top
View user's profile Send private message Visit poster's website
Kenneth_Smith



Joined: 18 May 2012
Posts: 697
Location: Hamilton, Lanarkshire, Scotland.

PostPosted: Thu Jun 29, 2023 12:55 am    Post subject: Reply with quote

Bill,

I think this may be related to a minor issue i raised, which has now been fixed, and this has broke your code. See the following post:

http://forums.silverfrost.com/viewtopic.php?t=4785

The first example in the referenced post previously ran with FTN95 without issue, but the compiler was not working in a standard conforming way, which was apparent when compiling the same code in a third party compiler.

Ken
Back to top
View user's profile Send private message Visit poster's website
Kenneth_Smith



Joined: 18 May 2012
Posts: 697
Location: Hamilton, Lanarkshire, Scotland.

PostPosted: Thu Jun 29, 2023 9:01 am    Post subject: Reply with quote

Bill,

I looked at this a little more closely this morning.


Paul,

I think you need to provide updated ISO_FORTRAN_ENV files on the update page.


With yesterday's updated dlls and FTN95, the following code does not compile.

Code:
module t_mod
use iso_fortran_env, only : int8, compiler_version, compiler_options
implicit none
contains
  subroutine sub1
    write(6,'(/A,1X,I1)') 'Kind number of a 8  bit integer is', int8
    write(6,'(/A,1X,A)') 'Compiled with',   compiler_version()
    write(6,'(/A,1X,A)') 'Compiler options',compiler_options()
  end subroutine sub1
end module t_mod

program main
use t_mod
  call sub1
end program main


error 663 - The MODULE variable 'COMPILER$OPTIONS' specified in this USE statement does not exist in MODULE ISO_FORTRAN_ENV.

error 663 - The MODULE variable 'COMPILER$VERSION' specified in this USE statement does not exist in MODULE ISO_FORTRAN_ENV.

warning 1322 - ISO_FORTRAN_ENV COMPILER_VERSION is hidden because of USE with ONLY.

warning 1322 - ISO_FORTRAN_ENV COMPILER_OPTIONS is hidden because of USE with ONLY.
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


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

PostPosted: Thu Jun 29, 2023 9:43 am    Post subject: Reply with quote

Ken

Thanks for the valuable feedback. Please try the MOD files that I have uploaded.
Back to top
View user's profile Send private message AIM Address
Kenneth_Smith



Joined: 18 May 2012
Posts: 697
Location: Hamilton, Lanarkshire, Scotland.

PostPosted: Thu Jun 29, 2023 10:01 am    Post subject: Reply with quote

Paul,

The code above now runs as expected with the updated mod files in place.

Hopefully that will also fix Bill's issue.
Back to top
View user's profile Send private message Visit poster's website
wahorger



Joined: 13 Oct 2014
Posts: 1217
Location: Morrison, CO, USA

PostPosted: Thu Jun 29, 2023 4:03 pm    Post subject: Reply with quote

Ken, thanks for taking on the challenge to duplicate this.

Paul, thanks for the quick fix!

Bill
Back to top
View user's profile Send private message Visit poster's website
simon



Joined: 05 Jul 2006
Posts: 268

PostPosted: Fri Jun 30, 2023 5:35 pm    Post subject: Reply with quote

Where do these Mod files generally belong? I could not see them in any of the C:\Program Files (x86)\Silverfrost\FTN95 directories.
Back to top
View user's profile Send private message
Kenneth_Smith



Joined: 18 May 2012
Posts: 697
Location: Hamilton, Lanarkshire, Scotland.

PostPosted: Fri Jun 30, 2023 5:37 pm    Post subject: Reply with quote

C:\Program Files (x86)\Silverfrost\FTN95\include
Back to top
View user's profile Send private message Visit poster's website
JohnCampbell



Joined: 16 Feb 2006
Posts: 2554
Location: Sydney

PostPosted: Sun Jul 09, 2023 4:12 am    Post subject: Reply with quote

Although it is not the reason for this particular problem, I find that "USE ... ONLY" causes more problems than any possible advantage.
I mostly use "USE ..." and also try to avoid alias.
Does anyone have a compelling reason for using ONLY ?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
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