Silverfrost Forums

Welcome to our forums

Missing \"COMPILER_VERSION()\"?

28 Jun 2023 10:10 #30404

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.

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

28 Jun 2023 10:17 #30405

In the listing file, I have this warning:

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

whatever this might mean...

28 Jun 2023 11:55 #30406

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:

https://forums.silverfrost.com/Forum/Topic/4291

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

29 Jun 2023 8:01 #30408

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.

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.

29 Jun 2023 8:43 #30409

Ken

Thanks for the valuable feedback. Please try the MOD files that I have uploaded.

29 Jun 2023 9:01 #30410

Paul,

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

Hopefully that will also fix Bill's issue.

29 Jun 2023 3:03 #30411

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

Paul, thanks for the quick fix!

Bill

30 Jun 2023 4:35 #30412

Where do these Mod files generally belong? I could not see them in any of the C:\Program Files (x86)\Silverfrost\FTN95 directories.

30 Jun 2023 4:37 #30413

C:\Program Files (x86)\Silverfrost\FTN95\include

9 Jul 2023 3:12 #30430

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 ?

Please login to reply.