Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation fails on Mac (gfortran problem) #17

Closed
dakrae opened this issue Aug 13, 2021 · 3 comments
Closed

Installation fails on Mac (gfortran problem) #17

dakrae opened this issue Aug 13, 2021 · 3 comments

Comments

@dakrae
Copy link

dakrae commented Aug 13, 2021

Hi William

I just wanted to reinstall dwnominate after upgrading my Mac. I now have the problem that I cannot install the package anymore. I think it might still have to do with the gfortran Problem we encountered in this issue. However, I cannot seem to install gfortran version 4.8.2 on my mac anymore, since the machine is giving me an error that a newer version is already installed. And the version in the link you posted in the above cited issue is not there anymore. Also e.g. on Homebrew, this version is not even downloadable anymore.

Is there a way that I can still work with this great package? Is ist somehow possible to make it work with newer gfortran versions?

In the following, I post the full error that R gives me, when I try to install dwnominate with remotes::install_github('wmay/dwnominate'):

Downloading GitHub repo wmay/dwnominate@HEAD
✓  checking for file ‘/private/var/folders/ng/l43c_dyx60qgt9npy25q9pm00000gn/T/RtmpPDIG49/remotes735b1a75a8cc/wmay-dwnominate-7b50c99/DESCRIPTION’ (392ms)
─  preparing ‘dwnominate’:
✓  checking DESCRIPTION meta-information ...
─  cleaning src
─  installing the package to process help pages
         -----------------------------------
─  installing *source* package ‘dwnominate’ ...
   ** using staged installation
   ** libs
   gfortran -mmacosx-version-min=10.13 -fno-optimize-sibling-calls -std=legacy -fPIC  -Wall -g -O2  -c DW-NOMINATE.f -o DW-NOMINATE.o
   DW-NOMINATE.f:192:4:
   
     192 |  475  call intpr('TOTAL ROLL CALLS', -1, I, 1)
         |    1
   Warning: Label 475 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:224:4:
   
     224 |  450  call intpr('TOTAL LEGISLATORS', -1, I, 1)
         |    1
   Warning: Label 450 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:153:4:
   
     153 |  425  call intpr('NUMBER OF CONGRESSES', -1, I, 1)
         |    1
   Warning: Label 425 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:120:25:
   
     120 |       WEIGHT(1:(NS+1)) = WEIGHTSIN
         |                         1
   Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
   DW-NOMINATE.f:158:48:
   
     158 |       DYN(1:size(DYNIN, 1), 1:size(DYNIN, 2)) = DYNIN
         |                                                1
   Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
   DW-NOMINATE.f:159:51:
   
     159 |       ZMID(1:size(ZMIDIN, 1), 1:size(ZMIDIN, 2)) = ZMIDIN
         |                                                   1
   Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
   DW-NOMINATE.f:199:54:
   
     199 |       XDATA(1:size(XDATAIN, 1), 1:size(XDATAIN, 2)) = XDATAIN
         |                                                      1
   Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
   DW-NOMINATE.f:752:5:
   
     752 |  1111 FORMAT(2F15.3)
         |     1
   Warning: Label 1111 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:982:5:
   
     982 |  1007 FORMAT(' LNL',2I10,F15.3,10F8.4)
         |     1
   Warning: Label 1007 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:981:5:
   
     981 |  1006 FORMAT(I10,11F20.3)
         |     1
   Warning: Label 1006 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:980:5:
   
     980 |  1005 FORMAT(I4,2I5,I8,3F15.3)
         |     1
   Warning: Label 1005 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:979:5:
   
     979 |  1004 FORMAT(5I8,6F15.3)
         |     1
   Warning: Label 1004 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:978:5:
   
     978 |  1003 FORMAT(4I4,3F15.3)
         |     1
   Warning: Label 1003 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:977:5:
   
     977 |  1002 FORMAT(' LOG-L',2I10,10F8.5)
         |     1
   Warning: Label 1002 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:976:5:
   
     976 |  1001 FORMAT(I4,F5.2,F10.7)
         |     1
   Warning: Label 1001 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:667:5:
   
     667 |  1111 FORMAT(2F15.3)
         |     1
   Warning: Label 1111 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:2810:11:
   
    2810 |       IJ = I+(J-I)*R
         |           1
   Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
   DW-NOMINATE.f:886:5:
   
     886 |  1001 FORMAT(I4,F7.3,I2,4I4,F7.3)
         |     1
   Warning: Label 1001 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:2936:5:
   
    2936 |  1094 FORMAT(' RC  CLASSIFICATION ERROR  ',2I3,2I8,2F10.5)
         |     1
   Warning: Label 1094 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:2935:5:
   
    2935 |  1093 FORMAT(' CLASSIFICATION CHECK  ',I3,I8)
         |     1
   Warning: Label 1093 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:2934:5:
   
    2934 |   100 FORMAT(5I5)
         |     1
   Warning: Label 100 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:3108:5:
   
    3108 |  3909 FORMAT(I5,I3,6I4,2I8,5I5)
         |     1
   Warning: Label 3909 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:3311:5:
   
    3311 |  3908 FORMAT(I5,I3,10F7.3)
         |     1
   Warning: Label 3908 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:3107:5:
   
    3107 |  1212 FORMAT(I3,I5,7I4)
         |     1
   Warning: Label 1212 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:3106:5:
   
    3106 |  1103 FORMAT(' MIDPOINT DECOMPOSITION',5I6)
         |     1
   Warning: Label 1103 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:3105:5:
   
    3105 |  1099 FORMAT(I3,I5,I3,2I4)
         |     1
   Warning: Label 1099 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:3104:5:
   
    3104 |  1091 FORMAT(' INVERSE MATRIX ERROR',I4,I5,I8,2F10.4)
         |     1
   Warning: Label 1091 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:3103:5:
   
    3103 |   210 FORMAT(I5,10F12.3)
         |     1
   Warning: Label 210 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:2323:5:
   
    2323 |  1002 FORMAT(' R-C ',I3,3I5,F7.3,F13.5,2F10.4,2F7.3)
         |     1
   Warning: Label 1002 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:2322:5:
   
    2322 |  1001 FORMAT(I4,F5.2,F10.7)
         |     1
   Warning: Label 1001 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:2321:5:
   
    2321 |   100 FORMAT(8F7.3)
         |     1
   Warning: Label 100 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:2447:5:
   
    2447 |  1004 FORMAT(I4,I5,F12.5,12X,20F7.3)
         |     1
   Warning: Label 1004 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:2446:5:
   
    2446 |  1003 FORMAT(' FATAL ERROR ROLL CALL PHASE',2I5)
         |     1
   Warning: Label 1003 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:2445:5:
   
    2445 |  1002 FORMAT(I4,I5,2F12.5,20F7.3)
         |     1
   Warning: Label 1002 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:2444:5:
   
    2444 |  1001 FORMAT(' RCS',4I5,F7.3,5I4,20F7.3)
         |     1
   Warning: Label 1001 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:2443:5:
   
    2443 |   206 FORMAT(I5,4I4,I2,F12.5,20F10.4)
         |     1
   Warning: Label 206 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:2442:5:
   
    2442 |   205 FORMAT(I6,2I5,5X,F12.5,20F10.4)
         |     1
   Warning: Label 205 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:2441:5:
   
    2441 |   203 FORMAT(I5,2I4,8X,I2,F12.5,20F10.4)
         |     1
   Warning: Label 203 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:1428:5:
   
    1428 |  1002 FORMAT(10X,2F10.5,55F7.3)
         |     1
   Warning: Label 1002 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:1427:5:
   
    1427 |  1001 FORMAT(' LEG',I6,2I4,2F7.3,2F13.5)
         |     1
   Warning: Label 1001 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:1426:5:
   
    1426 |  1000 FORMAT(3I6,I3,1X,11A1,155F7.3)
         |     1
   Warning: Label 1000 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:1425:5:
   
    1425 |   307 FORMAT(' NEGATIVE SQUARE ROOT FARTKNOCKER!!')
         |     1
   Warning: Label 307 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:1424:5:
   
    1424 |   206 FORMAT(I6,I5,4F8.4,4F12.5)
         |     1
   Warning: Label 206 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:1423:5:
   
    1423 |   205 FORMAT(I6,I3,I5,I4,I3,F12.5,30F10.4)
         |     1
   Warning: Label 205 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:1422:5:
   
    1422 |   203 FORMAT(I6,I5,F12.5,20F10.4)
         |     1
   Warning: Label 203 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:1421:5:
   
    1421 |   201 FORMAT(I6,2I4,150F10.4)
         |     1
   Warning: Label 201 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:1420:5:
   
    1420 |   103 FORMAT(12X,30F10.4)
         |     1
   Warning: Label 103 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:1419:5:
   
    1419 |   102 FORMAT(2I6,30F10.4)
         |     1
   Warning: Label 102 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:1418:5:
   
    1418 |   101 FORMAT(' PERFORMANCE INDEX EIGENVALUE/VECTOR ROUTINE=',3I6)
         |     1
   Warning: Label 101 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:2259:5:
   
    2259 |   102 FORMAT(2I5,30F10.4)
         |     1
   Warning: Label 102 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:2258:5:
   
    2258 |   101 FORMAT(' PERFORMANCE INDEX EIGENVALUE/VECTOR ROUTINE=',3I5)
         |     1
   Warning: Label 101 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:1155:5:
   
    1155 |  1002 FORMAT(' LEG ',I6,2I6,5F7.3,2F13.5)
         |     1
   Warning: Label 1002 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:1154:5:
   
    1154 |  1001 FORMAT(I4,F5.2,F10.7)
         |     1
   Warning: Label 1001 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:1153:5:
   
    1153 |   200 FORMAT(I6,2I5,2F13.5)
         |     1
   Warning: Label 200 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:1152:5:
   
    1152 |   100 FORMAT(8F7.3)
         |     1
   Warning: Label 100 at (1) defined but not used [-Wunused-label]
   DW-NOMINATE.f:153:45:
   
     118 |       call intpr(FTITLE, 52, (/NS,NMODEL,NFIRST,NLAST,IHAPPY1,IHAPPY2/),
         |                             2                
   ......
     153 |  425  call intpr('NUMBER OF CONGRESSES', -1, I, 1)
         |                                             1
   Warning: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)
   DW-NOMINATE.f:192:41:
   
     118 |       call intpr(FTITLE, 52, (/NS,NMODEL,NFIRST,NLAST,IHAPPY1,IHAPPY2/),
         |                             2            
   ......
     192 |  475  call intpr('TOTAL ROLL CALLS', -1, I, 1)
         |                                         1
   Warning: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)
   DW-NOMINATE.f:224:42:
   
     118 |       call intpr(FTITLE, 52, (/NS,NMODEL,NFIRST,NLAST,IHAPPY1,IHAPPY2/),
         |                             2             
   ......
     224 |  450  call intpr('TOTAL LEGISLATORS', -1, I, 1)
         |                                          1
   Warning: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)
   DW-NOMINATE.f:225:25:
   
     118 |       call intpr(FTITLE, 52, (/NS,NMODEL,NFIRST,NLAST,IHAPPY1,IHAPPY2/),
         |                             2
   ......
     225 |       call intpr(' ', 1, 0, 0)
         |                         1
   Warning: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)
   DW-NOMINATE.f:234:59:
   
     118 |       call intpr(FTITLE, 52, (/NS,NMODEL,NFIRST,NLAST,IHAPPY1,IHAPPY2/),
         |                             2                              
   ......
     234 |          call intpr('Estimating dimension weights...', -1, 0, 0)
         |                                                           1
   Warning: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)
   DW-NOMINATE.f:241:43:
   
     118 |       call intpr(FTITLE, 52, (/NS,NMODEL,NFIRST,NLAST,IHAPPY1,IHAPPY2/),
         |                             2              
   ......
     241 |       call intpr('Estimating beta...', -1, 0, 0)
         |                                           1
   Warning: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)
   DW-NOMINATE.f:249:56:
   
     118 |       call intpr(FTITLE, 52, (/NS,NMODEL,NFIRST,NLAST,IHAPPY1,IHAPPY2/),
         |                             2                           
   ......
     249 |       call intpr('Estimating roll call vectors...', -1, 0, 0)
         |                                                        1
   Warning: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)
   DW-NOMINATE.f:491:61:
   
     118 |       call intpr(FTITLE, 52, (/NS,NMODEL,NFIRST,NLAST,IHAPPY1,IHAPPY2/),
         |                             2                                
   ......
     491 |       call intpr('Estimating legislator coordinates...', -1, 0, 0)
         |                                                             1
   Warning: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)
   DW-NOMINATE.f:40:38:
   
      40 |           dimension YY(150000), CUMNML(150000)
         |                                      1
   Warning: Array 'cumnml' at (1) is larger than limit set by '-fmax-stack-var-size=', moved from stack to static storage. This makes the procedure unsafe when called recursively, or concurrently from multiple threads. Consider using '-frecursive', or increase the '-fmax-stack-var-size=' limit, or change the code to use an ALLOCATABLE array. [-Wsurprising]
   DW-NOMINATE.f:40:22:
   
      40 |           dimension YY(150000), CUMNML(150000)
         |                      1
   Warning: Array 'yy' at (1) is larger than limit set by '-fmax-stack-var-size=', moved from stack to static storage. This makes the procedure unsafe when called recursively, or concurrently from multiple threads. Consider using '-frecursive', or increase the '-fmax-stack-var-size=' limit, or change the code to use an ALLOCATABLE array. [-Wsurprising]
   DW-NOMINATE.f:1409:21:
   
    1409 |       DIMENSION ATIME(152,127),
         |                     1
   Warning: Array 'atime' at (1) is larger than limit set by '-fmax-stack-var-size=', moved from stack to static storage. This makes the procedure unsafe when called recursively, or concurrently from multiple threads. Consider using '-frecursive', or increase the '-fmax-stack-var-size=' limit, or change the code to use an ALLOCATABLE array. [-Wsurprising]
   DW-NOMINATE.f:1404:29:
   
    1404 |       SUBROUTINE XINT(NEP,ID1,XPLOG0,XPLOG1,XPLOG2,XPLOG3,
         |                             1
   Warning: Unused dummy argument 'id1' at (1) [-Wunused-dummy-argument]
   DW-NOMINATE.f:2255:13:
   
    2255 |      C     BB(127,152),ZMAT(127,127),WVEC(127),
         |             1
   Warning: Array 'bb' at (1) is larger than limit set by '-fmax-stack-var-size=', moved from stack to static storage. This makes the procedure unsafe when called recursively, or concurrently from multiple threads. Consider using '-frecursive', or increase the '-fmax-stack-var-size=' limit, or change the code to use an ALLOCATABLE array. [-Wsurprising]
   DW-NOMINATE.f:2433:42:
   
    2433 |       SUBROUTINE RCINT2(IICONG,NEQ,NPC,NQC,KRC,KTOTP,KTOTQ,
         |                                          1
   Warning: Unused dummy argument 'nqc' at (1) [-Wunused-dummy-argument]
   DW-NOMINATE.f:2313:31:
   
    2313 |       SUBROUTINE PROLLC2(IICONG,NEQ,NPC,KTOT,KTOTP,KTOTQ,
         |                               1
   Warning: Unused dummy argument 'iicong' at (1) [-Wunused-dummy-argument]
   DW-NOMINATE.f:2313:56:
   
    2313 |       SUBROUTINE PROLLC2(IICONG,NEQ,NPC,KTOT,KTOTP,KTOTQ,
         |                                                        1
   Warning: Unused dummy argument 'ktotq' at (1) [-Wunused-dummy-argument]
   DW-NOMINATE.f:2926:29:
   
    2926 |       SUBROUTINE CUTPLANE(JJJ,NP,NRCALL,NS,XMAT,ZVEC,WS,
         |                             1
   Warning: Unused dummy argument 'jjj' at (1) [-Wunused-dummy-argument]
   DW-NOMINATE.f:2928:49:
   
    2928 |       DIMENSION XMAT(1001,25),ZVEC(2901,25),XPROJ(1001,2901),XXY(2901),
         |                                                 1
   Warning: Array 'xproj' at (1) is larger than limit set by '-fmax-stack-var-size=', moved from stack to static storage. This makes the procedure unsafe when called recursively, or concurrently from multiple threads. Consider using '-frecursive', or increase the '-fmax-stack-var-size=' limit, or change the code to use an ALLOCATABLE array. [-Wsurprising]
   DW-NOMINATE.f:3090:28:
   
    3090 |       SUBROUTINE SEARCH(IIII,JX,NCUT,NS,NP,NRCALL,KCUT,LCUT,KTT,KT,
         |                            1
   Warning: Unused dummy argument 'iiii' at (1) [-Wunused-dummy-argument]
   DW-NOMINATE.f:3092:46:
   
    3092 |      C                  KITTY1,KITTY2,KYES,KNO,LDATA)
         |                                              1
   Warning: Unused dummy argument 'kno' at (1) [-Wunused-dummy-argument]
   DW-NOMINATE.f:3092:42:
   
    3092 |      C                  KITTY1,KITTY2,KYES,KNO,LDATA)
         |                                          1
   Warning: Unused dummy argument 'kyes' at (1) [-Wunused-dummy-argument]
   DW-NOMINATE.f:3097:54:
   
    3097 |      C          LLVB(2901),LLE(2901),LLEB(2901),LERROR(1001,2901),
         |                                                      1
   Warning: Array 'lerror' at (1) is larger than limit set by '-fmax-stack-var-size=', moved from stack to static storage. This makes the procedure unsafe when called recursively, or concurrently from multiple threads. Consider using '-frecursive', or increase the '-fmax-stack-var-size=' limit, or change the code to use an ALLOCATABLE array. [-Wsurprising]
   DW-NOMINATE.f:3099:28:
   
    3099 |      C          ZS(2901),UUU(1001,25),Y16MIDP(1001,25),
         |                            1
   Warning: Array 'uuu' at (1) is larger than limit set by '-fmax-stack-var-size=', moved from stack to static storage. This makes the procedure unsafe when called recursively, or concurrently from multiple threads. Consider using '-frecursive', or increase the '-fmax-stack-var-size=' limit, or change the code to use an ALLOCATABLE array. [-Wsurprising]
   DW-NOMINATE.f:3100:54:
   
    3100 |      C          FV1(1001),FV2(1001),SUMX(1001),X16MIDP(1001,25),
         |                                                      1
   Warning: Array 'x16midp' at (1) is larger than limit set by '-fmax-stack-var-size=', moved from stack to static storage. This makes the procedure unsafe when called recursively, or concurrently from multiple threads. Consider using '-frecursive', or increase the '-fmax-stack-var-size=' limit, or change the code to use an ALLOCATABLE array. [-Wsurprising]
   DW-NOMINATE.f:3099:45:
   
    3099 |      C          ZS(2901),UUU(1001,25),Y16MIDP(1001,25),
         |                                             1
   Warning: Array 'y16midp' at (1) is larger than limit set by '-fmax-stack-var-size=', moved from stack to static storage. This makes the procedure unsafe when called recursively, or concurrently from multiple threads. Consider using '-frecursive', or increase the '-fmax-stack-var-size=' limit, or change the code to use an ALLOCATABLE array. [-Wsurprising]
   DW-NOMINATE.f:3101:20:
   
    3101 |      C          YHAT(61913),LWRONG(1001),
         |                    1
   Warning: Array 'yhat' at (1) is larger than limit set by '-fmax-stack-var-size=', moved from stack to static storage. This makes the procedure unsafe when called recursively, or concurrently from multiple threads. Consider using '-frecursive', or increase the '-fmax-stack-var-size=' limit, or change the code to use an ALLOCATABLE array. [-Wsurprising]
   DW-NOMINATE.f:92:19:
   
      92 |       dimension ID1(54001),LVOTE(3600),
         |                   1
   Warning: Array 'id1' at (1) is larger than limit set by '-fmax-stack-var-size=', moved from stack to static storage. This makes the procedure unsafe when called recursively, or concurrently from multiple threads. Consider using '-frecursive', or increase the '-fmax-stack-var-size=' limit, or change the code to use an ALLOCATABLE array. [-Wsurprising]
   DW-NOMINATE.f:98:21:
   
      98 |      C          LDATA(1001,2901),LL(2901),YSS(2901),
         |                     1
   Warning: Array 'ldata' at (1) is larger than limit set by '-fmax-stack-var-size=', moved from stack to static storage. This makes the procedure unsafe when called recursively, or concurrently from multiple threads. Consider using '-frecursive', or increase the '-fmax-stack-var-size=' limit, or change the code to use an ALLOCATABLE array. [-Wsurprising]
   DW-NOMINATE.f:97:36:
   
      97 |      C          MCUTS(2901,2),LERROR(1001,2901),
         |                                    1
   Warning: Array 'lerror' at (1) is larger than limit set by '-fmax-stack-var-size=', moved from stack to static storage. This makes the procedure unsafe when called recursively, or concurrently from multiple threads. Consider using '-frecursive', or increase the '-fmax-stack-var-size=' limit, or change the code to use an ALLOCATABLE array. [-Wsurprising]
   DW-NOMINATE.f:92:32:
   
      92 |       dimension ID1(54001),LVOTE(3600),
         |                                1
   Warning: Unused variable 'lvote' declared at (1) [-Wunused-variable]
   DW-NOMINATE.f:96:20:
   
      96 |      C          XMAT(1001,25),ZVEC(2901,25),WS(5802),
         |                    1
   Warning: Array 'xmat' at (1) is larger than limit set by '-fmax-stack-var-size=', moved from stack to static storage. This makes the procedure unsafe when called recursively, or concurrently from multiple threads. Consider using '-frecursive', or increase the '-fmax-stack-var-size=' limit, or change the code to use an ALLOCATABLE array. [-Wsurprising]
   DW-NOMINATE.f:100:20:
   
     100 |      C          XVAR(99999,10)
         |                    1
   Warning: Array 'xvar' at (1) is larger than limit set by '-fmax-stack-var-size=', moved from stack to static storage. This makes the procedure unsafe when called recursively, or concurrently from multiple threads. Consider using '-frecursive', or increase the '-fmax-stack-var-size=' limit, or change the code to use an ALLOCATABLE array. [-Wsurprising]
   DW-NOMINATE.f:96:34:
   
      96 |      C          XMAT(1001,25),ZVEC(2901,25),WS(5802),
         |                                  1
   Warning: Array 'zvec' at (1) is larger than limit set by '-fmax-stack-var-size=', moved from stack to static storage. This makes the procedure unsafe when called recursively, or concurrently from multiple threads. Consider using '-frecursive', or increase the '-fmax-stack-var-size=' limit, or change the code to use an ALLOCATABLE array. [-Wsurprising]
   DW-NOMINATE.f:2185:72:
   
    2185 |          CALL SSYEV('V', 'U', 2*NDS, OUTX1, 99, WVEC, WORK, LWORK, INFO)
         |                                                                        ^
   Warning: 'nds' may be used uninitialized [-Wmaybe-uninitialized]
   DW-NOMINATE.f:3354:72:
   
    3354 |       KT=KT+JCH+JCL+JEH+JEL
         |                                                                        ^
   Warning: 'jeh' may be used uninitialized [-Wmaybe-uninitialized]
   DW-NOMINATE.f:3156:9:
   
    3156 |       JEH=0
         |         ^
   note: 'jeh' declared here
   DW-NOMINATE.f:3354:72:
   
    3354 |       KT=KT+JCH+JCL+JEH+JEL
         |                                                                        ^
   Warning: 'jel' may be used uninitialized [-Wmaybe-uninitialized]
   DW-NOMINATE.f:3158:9:
   
    3158 |       JEL=0
         |         ^
   note: 'jel' declared here
   clang -mmacosx-version-min=10.13 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o dwnominate.so DW-NOMINATE.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0 -L/usr/local/gfortran/lib -lgfortran -lquadmath -lm -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0 -L/usr/local/gfortran/lib -lgfortran -lquadmath -lm -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
   ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0'
   ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
   ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0'
   ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
   ld: library not found for -lgfortran
   clang: error: linker command failed with exit code 1 (use -v to see invocation)
   make: *** [dwnominate.so] Error 1
   ERROR: compilation failed for package ‘dwnominate’
─  removing ‘/private/var/folders/ng/l43c_dyx60qgt9npy25q9pm00000gn/T/RtmpW1RguH/Rinst7eb611e963e7/dwnominate’
         -----------------------------------
   ERROR: package installation failed
Fehler: Failed to install 'dwnominate' from GitHub:
  System command 'R' failed, exit status: 1, stdout + stderr (last 10 lines):
E> ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
E> ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0'
E> ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
E> ld: library not found for -lgfortran
E> clang: error: linker command failed with exit code 1 (use -v to see invocation)
E> make: *** [dwnominate.so] Error 1
E> ERROR: compilation failed for package ‘dwnominate’
E> * removing ‘/private/var/folders/ng/l43c_dyx60qgt9npy25q9pm00000gn/T/RtmpW1RguH/Rinst7eb611e963e7/dwnominate’
E>       -----------------------------------
E> ERROR: package installation failed

Thanks for your help and have a nice day
David

@wmay
Copy link
Owner

wmay commented Aug 13, 2021

The main issue is here:

E> ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
E> ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0'
E> ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
E> ld: library not found for -lgfortran

That means R doesn't know the location of your gfortran. (A different issue than the old one you linked to, thank goodness.)

I don't have a Mac so it's hard for me to tell you what to do, especially with all the different versions of gfortran available. I would hope that R has instructions somewhere for making this work-- take a look at R for Mac OS X:
Development Tools and Libraries
if you haven't already. You could also search the error message to see if another Mac user has posted about this on stackoverflow. If that doesn't help I recommend asking on R-SIG-Mac. This should be a standard task that many R MacOS users know how to do.

@wmay
Copy link
Owner

wmay commented Aug 24, 2021

Since this is a MacOS setup issue and not a package issue, I'm going to close this. But feel free to reply if you find something interesting.

@wmay wmay closed this as completed Aug 24, 2021
@dakrae
Copy link
Author

dakrae commented Aug 25, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants