gmake error when compiling - didn't have this problem before upgrading from 11.4 to 12.2

Hi everyone, So I was able to successfully clean install openSUSE 12.2 after upgrading from 11.4. I went into yast and added many of the libraries that I would need to run in Fortran and compile using ‘gmake’. However, I am running into compiler errors now that I didn’t run into previously, which leads me to believe that this is due to not having the correct library? Posted below is my error: 1 X(KRANKE+1), RNORML, MODE, WS(N2), IP(2)) 1 Warning: Rank mismatch in argument ‘rnorm’ at (1) (rank-1 and scalar) gmake: *** [dmath.o] Error 1 I know it’s not something in the code (because it was working previously) so if you have any advice about libraries to add or how to diagnose this problem, it would be most appreciated. Thanks!

On 10/10/2012 09:26 AM, gmagnotti wrote:
>
> Hi everyone, So I was able to successfully clean install openSUSE
> 12.2 after upgrading from 11.4. I went into yast and added many of the
> libraries that I would need to run in Fortran and compile using ‘gmake’.
> However, I am running into compiler errors now that I didn’t run into
> previously, which leads me to believe that this is due to not having the
> correct library? Posted below is my error: 1 X(KRANKE+1),
> RNORML, MODE, WS(N2), IP(2))
> 1 Warning: Rank mismatch in argument ‘rnorm’ at (1) (rank-1 and
> scalar) gmake: *** [dmath.o] Error 1 I know it’s not something in
> the code (because it was working previously) so if you have any advice
> about libraries to add or how to diagnose this problem, it would be most
> appreciated. Thanks!

That is not the entire error message. Please quote everything and do not try to
cut it down to what you think is important.

The compiler in 12.2 is changed a lot from what was in 11.4. The problem may be
a compiler bug, or it may be a problem in the source that slipped through with
the older one, but is caught by the newer one. My interpretation of the message
is that it has nothing to do with libraries, but that the calling sequence for
dmath is messed up.

Provided below is the full message to my screen:


gfortran -c -fdefault-real-8 -fno-align-commons -O2 -fPIC dmath.f                                                                      
dmath.f:3030.72:

   10 ASSIGN 30 TO NEXT                                                 
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:3035.19:

   20    GO TO NEXT,(30, 50, 70, 110)                                   
                   1
Warning: Deleted feature: Assigned GOTO statement at (1)
dmath.f:3037.72:

      ASSIGN 50 TO NEXT                                                 
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:3046.72:

      ASSIGN 70 TO NEXT                                                 
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:3052.72:

      ASSIGN 110 TO NEXT                                                
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:3949.15:

      GO TO IGO,(120,150,180,210)                                       
               1
Warning: Deleted feature: Assigned GOTO statement at (1)
dmath.f:3955.72:

               ASSIGN 120 TO IGO                                        
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:3967.72:

               ASSIGN 150 TO IGO                                        
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:3980.72:

               ASSIGN 180 TO IGO                                        
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:3991.72:

               ASSIGN 210 TO IGO                                        
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:4289.72:

                                    ASSIGN 20 TO IGO993                 
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:4298.72:

                                    ASSIGN 30 TO IGO990                 
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:4358.72:

                                    ASSIGN 10 TO IGO996                 
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:4382.72:

                              ASSIGN 160 TO IGO993                      
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:4406.72:

                              ASSIGN 200 TO IGO990                      
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:4444.72:

                           ASSIGN 150 TO IGO996                         
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:4469.72:

                        ASSIGN 270 TO IGO993                            
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:4541.72:

                     ASSIGN 260 TO IGO996                               
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:4591.30:

                  GO TO IGO996, (10,150,260)                            
                              1
Warning: Deleted feature: Assigned GOTO statement at (1)
dmath.f:4605.27:

               GO TO IGO996, (10,150,260)                               
                           1
Warning: Deleted feature: Assigned GOTO statement at (1)
dmath.f:4642.24:

            GO TO IGO990, (30,200)                                      
                        1
Warning: Deleted feature: Assigned GOTO statement at (1)
dmath.f:4643.24:

            GO TO IGO996, (10,150,260)                                  
                        1
Warning: Deleted feature: Assigned GOTO statement at (1)
dmath.f:4659.21:

         GO TO IGO993, (20,160,270)                                     
                     1
Warning: Deleted feature: Assigned GOTO statement at (1)
dmath.f:4660.21:

         GO TO IGO990, (30,200)                                         
                     1
Warning: Deleted feature: Assigned GOTO statement at (1)
dmath.f:4661.21:

         GO TO IGO996, (10,150,260)                                     
                     1
Warning: Deleted feature: Assigned GOTO statement at (1)
dmath.f:4750.72:

      ASSIGN 10 TO IGO998                                               
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:4756.72:

   10 ASSIGN 20 TO IGO995                                               
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:4775.72:

      ASSIGN 30 TO IGO991                                               
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:4781.72:

      ASSIGN 40 TO IGO986                                               
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:4787.72:

   50 ASSIGN 60 TO IGO983                                               
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:4795.72:

   80 ASSIGN 90 TO IGO980                                               
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:4881.72:

      ASSIGN 220 TO IGO977                                              
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:4976.72:

      ASSIGN 310 TO IGO958                                              
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:5049.72:

      ASSIGN 460 TO IGO938                                              
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:5055.72:

      ASSIGN 480 TO IGO938                                              
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:5069.72:

      ASSIGN 500 TO IGO938                                              
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:5077.72:

      ASSIGN 520 TO IGO938                                              
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:5221.72:

      ASSIGN 880 TO IGO897                                              
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:5232.72:

      ASSIGN 900 TO IGO897                                              
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:5271.72:

      ASSIGN 1010 TO IGO958                                             
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:5337.18:

 1200 GO TO IGO986, (40)                                                
                  1
Warning: Deleted feature: Assigned GOTO statement at (1)
dmath.f:5338.18:

 1210 GO TO IGO980, (90)                                                
                  1
Warning: Deleted feature: Assigned GOTO statement at (1)
dmath.f:5339.18:

 1220 GO TO IGO991, (30)                                                
                  1
Warning: Deleted feature: Assigned GOTO statement at (1)
dmath.f:5340.18:

 1230 GO TO IGO998, (10)                                                
                  1
Warning: Deleted feature: Assigned GOTO statement at (1)
dmath.f:5341.18:

 1240 GO TO IGO995, (20)                                                
                  1
Warning: Deleted feature: Assigned GOTO statement at (1)
dmath.f:5342.18:

 1250 GO TO IGO983, (60)                                                
                  1
Warning: Deleted feature: Assigned GOTO statement at (1)
dmath.f:5343.18:

 1260 GO TO IGO977, (220)                                               
                  1
Warning: Deleted feature: Assigned GOTO statement at (1)
dmath.f:5344.18:

 1270 GO TO IGO958, (310, 1010)                                         
                  1
Warning: Deleted feature: Assigned GOTO statement at (1)
dmath.f:5345.18:

 1280 GO TO IGO897, (880, 900)                                          
                  1
Warning: Deleted feature: Assigned GOTO statement at (1)
dmath.f:5346.18:

 1290 GO TO IGO938, (460, 480, 500, 520)                                
                  1
Warning: Deleted feature: Assigned GOTO statement at (1)
dmath.f:6801.72:

      ASSIGN 90 TO IGO990                                               
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:7053.18:

  560 GO TO IGO990, (90)                                                
                  1
Warning: Deleted feature: Assigned GOTO statement at (1)
dmath.f:7156.72:

      ASSIGN 40 TO IGO994                                               
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:7183.72:

      ASSIGN 60 TO IGO990                                               
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
dmath.f:7402.18:

  530 GO TO IGO994, (40)                                                
                  1
Warning: Deleted feature: Assigned GOTO statement at (1)
dmath.f:7403.18:

  540 GO TO IGO990, (60)                                                
                  1
Warning: Deleted feature: Assigned GOTO statement at (1)
dmath.f:2590.24:

               SM = DDOT(MML1P2,U(1,L1M1),IUE,C(KL1),ICE)               
                        1
Error: Return type mismatch of function 'ddot' at (1) (REAL(8)/REAL(16))
dmath.f:5637.47:

     * NEED LW=I1 BELOW',70,NERR,IOPT,1,LW,0,0,DUMMY,DUMMY)             
                                               1
Warning: Type mismatch in argument 'r1' at (1); passed REAL(16) to REAL(8)
dmath.f:5651.47:

     *EED LIW=I1 BELOW',72,NERR,IOPT,1,LIW,0,0,DUMMY,DUMMY)             
                                               1
Warning: Type mismatch in argument 'r1' at (1); passed REAL(16) to REAL(8)
dmath.f:6903.20:

     1 X(KRANKE+1), RNORML, MODE, WS(N2), IP(2))                        
                    1
Warning: Rank mismatch in argument 'rnorm' at (1) (rank-1 and scalar)
gmake: *** [dmath.o] Error 1


I included the errors showing the ‘deleted feature’ but I don’t think it’s an issue. I hope that this more complete set of compiler errors and warnings will shed light on the situation.

On 10/10/2012 10:16 AM, gmagnotti wrote:
>
>
> I included the errors showing the ‘deleted feature’ but I don’t think
> it’s an issue. I hope that this more complete set of compiler errors and
> warnings will shed light on the situation.

I saw no errors in the code, only warnings. The assigned goto warnings can
probably be ignored for the moment, but I would redo your code to eliminate
them. A future version of the compiler may consider them to be errors. The size
mismatch warnings are more serious, and should be corrected to get correct
results. Changing the default to REAL(16) will probably handle them.

Has the default compiler setting been changed to treat warnings as errors?

You can see the flags I used when compiling, so I do not believe I have changed any of the settings. There was in fact one error:


Error: Return type mismatch of function 'ddot' at (1) (REAL(8)/REAL(16))

How do you change the default to real(16)? I have a flag to change the default to real(8) but upon searching have not come across any other flags to change to real(16). Additionally, I have tried running the makefile with and without the various flags and still have had no luck…

Anyone’s advice would be greatly appreciated. I have also included below information from the command rpm -qi make in case it helps in any way.


Name        : make
Version     : 3.82
Release     : 151.1.2
Architecture: x86_64
Install Date: Tue 09 Oct 2012 08:52:26 PM EDT
Group       : Development/Tools/Building
Size        : 1062697
License     : GPL-2.0+
Signature   : RSA/SHA256, Sat 14 Jul 2012 09:29:38 PM EDT, Key ID b88b2fd43dbdc284
Source RPM  : make-3.82-151.1.2.src.rpm
Build Date  : Sat 14 Jul 2012 09:29:18 PM EDT
Build Host  : build32
Relocations : (not relocatable)
Packager    : http://bugs.opensuse.org
Vendor      : openSUSE
URL         : http://www.gnu.org/software/make/make.html
Summary     : GNU make
Description :
The GNU make command with extensive documentation.
Distribution: openSUSE 12.2


On 10/10/2012 01:06 PM, gmagnotti wrote:
>
> lwfinger;2494958 Wrote:
>>
>> The size mismatch warnings are more serious, and should be corrected to
>> get correct
>> results. Changing the default to REAL(16) will probably handle them.
>>
>> Has the default compiler setting been changed to treat warnings as
>> errors?
>
> You can see the flags I used when compiling, so I do not believe I have
> changed any of the settings. There was in fact one error:
>
>
> Code:
> --------------------
>
> Error: Return type mismatch of function ‘ddot’ at (1) (REAL(8)/REAL(16))
>
> --------------------
>
>
> How do you change the default to real(16)? I have a flag to change the
> default to real(8) but upon searching have not come across any other
> flags to change to real(16). Additionally, I have tried running the
> makefile with and without the various flags and still have had no
> luck…
>
> Anyone’s advice would be greatly appreciated. I have also included
> below information from the command rpm -qi make in case it helps in any
> way.

The error is in your source file, not in make. Make is just reporting the error
that gfortran found. You need to fix your code. I am assuming that routine
ddot() returns a double-precision value. You need to change the variable in line
5637 of dmath.f. There will be a statement of the form

x = ddot(…)

where x is a REAL. It should be of type DOUBLE or REAL*16.