Compiling on M1 Mac
trirex opened this issue · 14 comments
Since GFORTRAN and Conda now have native M1 solutions, I decided to retry compiling REFPROP to get a native M1 solution. Everything works until the link step. I saw from another closed issue that you have been able to create a native binary. If you could share your configuration and steps, it would be helpful. See my output below:
xxx@MacBook-Pro-xxx build % cmake .. -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is AppleClang 14.0.3.14030022
-- The CXX compiler identification is AppleClang 14.0.3.14030022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The Fortran compiler identification is GNU 13.1.0
-- Checking whether Fortran compiler has -isysroot
-- Checking whether Fortran compiler has -isysroot - yes
-- Checking whether Fortran compiler supports OSX deployment target flag
-- Checking whether Fortran compiler supports OSX deployment target flag - yes
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /opt/homebrew/bin/gfortran - skipped
-- Found PythonInterp: /opt/homebrew/bin/python3.11 (found version "3.11.3")
-- DEFSYM_FLAG:
-- Path to libquadmath.a:/opt/homebrew/Cellar/gcc/13.1.0/bin/../lib/gcc/current/gcc/aarch64-apple-darwin22/13/../../../libquadmath.a
-- Copied libquadmath.a here.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/rexmorgan_m1/REFPROP-cmake/build
xxx@MacBook-Pro-xxx build % ls
CMakeCache.txt Makefile cmake_install.cmake
CMakeFiles aliases_string.txt libquadmath.a
xxx@MacBook-Pro-xxx build % cmake --build .
[ 6%] Building Fortran object CMakeFiles/refprop.dir/FORTRAN/CORE_ANC.FOR.o
[ 13%] Building Fortran object CMakeFiles/refprop.dir/FORTRAN/CORE_FEQ.FOR.o
[ 20%] Building Fortran object CMakeFiles/refprop.dir/FORTRAN/CORE_PR.FOR.o
[ 26%] Building Fortran object CMakeFiles/refprop.dir/FORTRAN/FLSH_SUB.FOR.o
[ 33%] Building Fortran object CMakeFiles/refprop.dir/FORTRAN/MIX_HMX.FOR.o
[ 40%] Building Fortran object CMakeFiles/refprop.dir/FORTRAN/PROP_SUB.FOR.o
[ 46%] Building Fortran object CMakeFiles/refprop.dir/FORTRAN/REFPROP.FOR.o
/Users/rexmorgan_m1/REFPROP-cmake/FORTRAN/REFPROP.FOR:5593:72:
5593 | if (ABS(iErrPrnt).eq.3) pause !If your compiler complains about this line, just delete it.
| 1
Warning: Deleted feature: PAUSE statement at (1)
[ 53%] Building Fortran object CMakeFiles/refprop.dir/FORTRAN/SETUP.FOR.o
[ 60%] Building Fortran object CMakeFiles/refprop.dir/FORTRAN/TRNSP.FOR.o
[ 66%] Building Fortran object CMakeFiles/refprop.dir/FORTRAN/TRNS_TCX.FOR.o
[ 73%] Building Fortran object CMakeFiles/refprop.dir/FORTRAN/TRNS_VIS.FOR.o
[ 80%] Building Fortran object CMakeFiles/refprop.dir/FORTRAN/UTILITY.FOR.o
[ 86%] Building Fortran object CMakeFiles/refprop.dir/FORTRAN/DLLFILES/PASS_FTN.FOR.o
[ 93%] Linking Fortran shared library librefprop.dylib
Undefined symbols for architecture arm64:
"crtpnt", referenced from:
crtpntdll in PASS_FTN.FOR.o
"csatk", referenced from:
csatkdll in PASS_FTN.FOR.o
"cv2pk", referenced from:
allprops0 in REFPROP.FOR.o
cv2pkdll in PASS_FTN.FOR.o
"dptsatk", referenced from:
allprops0 in REFPROP.FOR.o
dptsatkdll in PASS_FTN.FOR.o
"hvapztn", referenced from:
allprops0 in REFPROP.FOR.o
"redlinear", referenced from:
stn in CORE_ANC.FOR.o
psatt in CORE_ANC.FOR.o
dlsatt in CORE_ANC.FOR.o
dvsatt in CORE_ANC.FOR.o
meltt in CORE_ANC.FOR.o
sublt in CORE_ANC.FOR.o
tsatp in CORE_ANC.FOR.o
...
"sat0est", referenced from:
tdfl2 in FLSH_SUB.FOR.o
abfl2 in FLSH_SUB.FOR.o
tpflsh.part.0 in FLSH_SUB.FOR.o
"satd", referenced from:
abfl2 in FLSH_SUB.FOR.o
dbflsh in FLSH_SUB.FOR.o
abflsh in REFPROP.FOR.o
satddll in PASS_FTN.FOR.o
"sate", referenced from:
abflsh in REFPROP.FOR.o
satedll in PASS_FTN.FOR.o
"satest", referenced from:
abfl2 in FLSH_SUB.FOR.o
dbflsh in FLSH_SUB.FOR.o
sattestdll in PASS_FTN.FOR.o
satpestdll in PASS_FTN.FOR.o
satestdll in PASS_FTN.FOR.o
"satguess", referenced from:
stn in CORE_ANC.FOR.o
surft in CORE_ANC.FOR.o
tprho.part.0 in FLSH_SUB.FOR.o
tdfl2 in FLSH_SUB.FOR.o
tpflsh.part.0 in FLSH_SUB.FOR.o
tpdflsh in FLSH_SUB.FOR.o
abfl1 in FLSH_SUB.FOR.o
...
"satgv", referenced from:
satgvdll in PASS_FTN.FOR.o
"sath", referenced from:
hsflsh in FLSH_SUB.FOR.o
abflsh in REFPROP.FOR.o
sathdll in PASS_FTN.FOR.o
"satmax", referenced from:
dbfl1 in FLSH_SUB.FOR.o
tdfl2 in FLSH_SUB.FOR.o
abfl2 in FLSH_SUB.FOR.o
aqflsh in FLSH_SUB.FOR.o
tpflsh.part.0 in FLSH_SUB.FOR.o
tpdflsh in FLSH_SUB.FOR.o
abfl1 in FLSH_SUB.FOR.o
...
"satp", referenced from:
tpfl2 in FLSH_SUB.FOR.o
abfl2 in FLSH_SUB.FOR.o
pbflsh in FLSH_SUB.FOR.o
setref in SETUP.FOR.o
satpdll in PASS_FTN.FOR.o
"sats", referenced from:
abflsh in REFPROP.FOR.o
satsdll in PASS_FTN.FOR.o
"satspln", referenced from:
fldsetup in REFPROP.FOR.o
refset1 in REFPROP.FOR.o
satsplndll in PASS_FTN.FOR.o
"satt", referenced from:
stn in CORE_ANC.FOR.o
surft in CORE_ANC.FOR.o
surten in CORE_ANC.FOR.o
dheslmts in FLSH_SUB.FOR.o
tdfl2 in FLSH_SUB.FOR.o
abfl2 in FLSH_SUB.FOR.o
allprops0 in REFPROP.FOR.o
...
"sattp", referenced from:
tpfl2 in FLSH_SUB.FOR.o
aqflsh in FLSH_SUB.FOR.o
tpflsh.part.0 in FLSH_SUB.FOR.o
tpdflsh in FLSH_SUB.FOR.o
sattpdll in PASS_FTN.FOR.o
ld: symbol(s) not found for architecture arm64
collect2: error: ld returned 1 exit status
make[2]: *** [librefprop.dylib] Error 1
make[1]: *** [CMakeFiles/refprop.dir/all] Error 2
make: *** [all] Error 2
Honestly for me it "just works". I get gfortran from homebrew, and do nothing special and I end up with the right binaries.
I would first make sure you have a clean build. Remove your build folder and recreate it. Make sure you have all the FORTRAN files that come with the windows installer.
It really shouldn't matter, but I always use REFPROP_FORTRAN_PATH to define the path to the FORTRAN sources
This is my log:
(base) 647ibmac:bld10 ihb$ cmake .. -DREFPROP_FORTRAN_PATH="~/REFPROP10/FORTRAN"
-- The C compiler identification is AppleClang 14.0.3.14030022
-- The CXX compiler identification is AppleClang 14.0.3.14030022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The Fortran compiler identification is GNU 13.1.0
-- Checking whether Fortran compiler has -isysroot
-- Checking whether Fortran compiler has -isysroot - yes
-- Checking whether Fortran compiler supports OSX deployment target flag
-- Checking whether Fortran compiler supports OSX deployment target flag - yes
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /opt/homebrew/bin/gfortran - skipped
-- Found PythonInterp: /Users/ihb/mambaforge/bin/python (found version "3.10.6")
-- DEFSYM_FLAG:
-- Path to libquadmath.a:/opt/homebrew/Cellar/gcc/13.1.0/bin/../lib/gcc/current/gcc/aarch64-apple-darwin22/13/../../../libquadmath.a
-- Copied libquadmath.a here.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/ihb/Documents/Code/REFPROP-cmake/bld10
(base) 647ibmac:bld10 ihb$ cmake --build .
Scanning dependencies of target refprop
[ 6%] Building Fortran object CMakeFiles/refprop.dir/Users/ihb/REFPROP10/FORTRAN/CORE_ANC.FOR.o
/Users/ihb/REFPROP10/FORTRAN/CORE_ANC.FOR:832:4:
832 | 500 if (ierr.gt.0) P=0d0
| 1
Warning: Label 500 at (1) defined but not used [-Wunused-label]
[ 12%] Building Fortran object CMakeFiles/refprop.dir/Users/ihb/REFPROP10/FORTRAN/CORE_FEQ.FOR.o
[ 18%] Building Fortran object CMakeFiles/refprop.dir/Users/ihb/REFPROP10/FORTRAN/CORE_PR.FOR.o
[ 25%] Building Fortran object CMakeFiles/refprop.dir/Users/ihb/REFPROP10/FORTRAN/FLSH_SUB.FOR.o
/Users/ihb/REFPROP10/FORTRAN/FLSH_SUB.FOR:1116:4:
1116 | 223 call ERRNUM (223,0,ab//'FLSH',herr1,0d0,0d0,0d0,ierr,herr)
| 1
Warning: Label 223 at (1) defined but not used [-Wunused-label]
/Users/ihb/REFPROP10/FORTRAN/FLSH_SUB.FOR:1329:10:
1329 | if (ibt.eq.iLetterS) D=1d-6
| ^
Warning: 'ibt' may be used uninitialized [-Wmaybe-uninitialized]
/Users/ihb/REFPROP10/FORTRAN/FLSH_SUB.FOR:1317:24:
1317 | if (bt.eq.'H') ibt=iLetterH
| ^
note: 'ibt' declared here
[ 31%] Building Fortran object CMakeFiles/refprop.dir/Users/ihb/REFPROP10/FORTRAN/MIX_HMX.FOR.o
/Users/ihb/REFPROP10/FORTRAN/MIX_HMX.FOR:384:4:
384 | 400 if (iModMx2(i,j).eq.iMxTr) then
| 1
Warning: Label 400 at (1) defined but not used [-Wunused-label]
/Users/ihb/REFPROP10/FORTRAN/MIX_HMX.FOR:1170:4:
1170 | 907 call ERRNUM (-907,0,' ',' ',0d0,0d0,0d0,ierr,herr)
| 1
Warning: Label 907 at (1) defined but not used [-Wunused-label]
/Users/ihb/REFPROP10/FORTRAN/MIX_HMX.FOR:1319:72:
1319 | hIDijk=LTRIM(h255(:i-1))
| 1
Warning: CHARACTER expression will be truncated in assignment (15/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/MIX_HMX.FOR:1678:4:
1678 | 118 call ERRNUM (118,0,'RDBNC',' ',0d0,0d0,0d0,ierr,herr)!Abnormal termination
| 1
Warning: Label 118 at (1) defined but not used [-Wunused-label]
/Users/ihb/REFPROP10/FORTRAN/MIX_HMX.FOR:2144:72:
2144 | hmodij=hmodMx(i,j)
| 1
Warning: CHARACTER expression will be truncated in assignment (3/255) at (1) [-Wcharacter-truncation]
[ 37%] Building Fortran object CMakeFiles/refprop.dir/Users/ihb/REFPROP10/FORTRAN/PROP_SUB.FOR.o
/Users/ihb/REFPROP10/FORTRAN/PROP_SUB.FOR:4343:72:
4343 | h7oper(n1)=hb !The array h7oper is used only for debugging (to view the command code).
| 1
Warning: CHARACTER expression will be truncated in assignment (15/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/PROP_SUB.FOR:4559:72:
4559 | 605 her='Unknown input: '//hb
| 1
Warning: CHARACTER expression will be truncated in assignment (255/271) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/PROP_SUB.FOR:4571:72:
4571 | 632 her='Missing or incorrect entry in coefficients: '//ha
| 1
Warning: CHARACTER expression will be truncated in assignment (255/300) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/PROP_SUB.FOR:309:30:
309 | character*255 herr,herr2
| 1
Warning: Unused variable 'herr2' declared at (1) [-Wunused-variable]
/Users/ihb/REFPROP10/FORTRAN/PROP_SUB.FOR:310:26:
310 | dimension z(ncmax),y(ncmax)
| 1
Warning: Unused variable 'y' declared at (1) [-Wunused-variable]
/Users/ihb/REFPROP10/FORTRAN/PROP_SUB.FOR:359:30:
359 | character*255 herr,herr2
| 1
Warning: Unused variable 'herr2' declared at (1) [-Wunused-variable]
/Users/ihb/REFPROP10/FORTRAN/PROP_SUB.FOR:360:26:
360 | dimension z(ncmax),y(ncmax)
| 1
Warning: Unused variable 'y' declared at (1) [-Wunused-variable]
/Users/ihb/REFPROP10/FORTRAN/PROP_SUB.FOR:1285:72:
1285 | if (D.ne.0.) dVdT=-dDdT/D**2
| ^
Warning: 'dddt' may be used uninitialized [-Wmaybe-uninitialized]
/Users/ihb/REFPROP10/FORTRAN/PROP_SUB.FOR:1280:50:
1280 | call DERVPVT1 (T,D,z,P,dPdD,dPdT,dDdP,dDdT,dTdP,dTdD)
| ^
note: 'dddt' was declared here
/Users/ihb/REFPROP10/FORTRAN/PROP_SUB.FOR:1281:72:
1281 | dPdV=-dPdD*D**2
| ^
Warning: 'dpdd' may be used uninitialized [-Wmaybe-uninitialized]
/Users/ihb/REFPROP10/FORTRAN/PROP_SUB.FOR:1280:35:
1280 | call DERVPVT1 (T,D,z,P,dPdD,dPdT,dDdP,dDdT,dTdP,dTdD)
| ^
note: 'dpdd' was declared here
/Users/ihb/REFPROP10/FORTRAN/PROP_SUB.FOR:1400:72:
1400 | dphidT(i)=d2adbn(i)+1d0/T-vrt*dPdT !Eq. 7.29 d(ln(phi))/dT at constant P and z (or n)
| ^
Warning: 'dpdt' may be used uninitialized [-Wmaybe-uninitialized]
/Users/ihb/REFPROP10/FORTRAN/PROP_SUB.FOR:1280:40:
1280 | call DERVPVT1 (T,D,z,P,dPdD,dPdT,dDdP,dDdT,dTdP,dTdD)
| ^
note: 'dpdt' was declared here
/Users/ihb/REFPROP10/FORTRAN/PROP_SUB.FOR:1282:12:
1282 | if (P.eq.0.) P=1d-20
| ^
Warning: 'p' may be used uninitialized [-Wmaybe-uninitialized]
/Users/ihb/REFPROP10/FORTRAN/PROP_SUB.FOR:1280:30:
1280 | call DERVPVT1 (T,D,z,P,dPdD,dPdT,dDdP,dDdT,dTdP,dTdD)
| ^
note: 'p' was declared here
/Users/ihb/REFPROP10/FORTRAN/PROP_SUB.FOR:1976:10:
1976 | if (P.gt.0.) then
| ^
Warning: 'p' may be used uninitialized [-Wmaybe-uninitialized]
/Users/ihb/REFPROP10/FORTRAN/PROP_SUB.FOR:1975:25:
1975 | call PRESS (T,D,z,P)
| ^
note: 'p' was declared here
/Users/ihb/REFPROP10/FORTRAN/PROP_SUB.FOR:2735:72:
2735 | P0=P*(1d0+xj)**(xi/(xi-1d0))
| ^
Warning: 'xi' may be used uninitialized [-Wmaybe-uninitialized]
/Users/ihb/REFPROP10/FORTRAN/PROP_SUB.FOR:2733:38:
2733 | call THERM3 (Tm,D,z,xkappa,bb,xi,xkt,betas,bs,xkkt,thrott,pi,spht)
| ^
note: 'xi' was declared here
[ 43%] Building Fortran object CMakeFiles/refprop.dir/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR.o
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:5590:72:
5590 | if (ABS(iErrPrnt).eq.3) pause !If your compiler complains about this line, just delete it.
| 1
Warning: Deleted feature: PAUSE statement at (1)
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:2727:4:
2727 | 500 iPass=1
| 1
Warning: Label 500 at (1) defined but not used [-Wunused-label]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:2565:4:
2565 | 100 if (iIn.eq.4 .or. iIn.eq.5) then
| 1
Warning: Label 100 at (1) defined but not used [-Wunused-label]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:4106:4:
4106 | 100 RETURN
| 1
Warning: Label 100 at (1) defined but not used [-Wunused-label]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:3546:72:
3546 | hTpe=UCASE(hUnitType)
| 1
Warning: CHARACTER expression will be truncated in assignment (3/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:1617:4:
1617 | 853 if (ip.ne.0) call ERRNUM (853,0,ha,' ',0d0,0d0,0d0,ierr1,herr1)!Error that the input string was not recognized.
| 1
Warning: Label 853 at (1) defined but not used [-Wunused-label]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:1443:72:
1443 | hUnitsArray(n)=ha !Save the property name.
| 1
Warning: CHARACTER expression will be truncated in assignment (50/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:1511:72:
1511 | if (ip.eq.iprpNAME) hUnitsArray(n)=hname(ij)
| 1
Warning: CHARACTER expression will be truncated in assignment (50/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:1512:72:
1512 | if (ip.eq.iprpLONGNAME) hUnitsArray(n)=hnam80(ij)
| 1
Warning: CHARACTER expression will be truncated in assignment (50/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:1513:72:
1513 | if (ip.eq.iprpSYNONYM) hUnitsArray(n)=hsyn(ij)
| 1
Warning: CHARACTER expression will be truncated in assignment (50/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:1514:72:
1514 | if (ip.eq.iprpFAMILY) hUnitsArray(n)=hfamily(ij)
| 1
Warning: CHARACTER expression will be truncated in assignment (50/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:1518:72:
1518 | if (ip.eq.iprpSAFETY) hUnitsArray(n)=hSafety(ij)
| 1
Warning: CHARACTER expression will be truncated in assignment (50/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:1519:72:
1519 | if (ip.eq.iprpUNNUMBER) hUnitsArray(n)=hUNNumb(ij)
| 1
Warning: CHARACTER expression will be truncated in assignment (50/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:1521:72:
1521 | if (ip.eq.iprpINCHIKEY) hUnitsArray(n)=hInChiKey(ij)
| 1
Warning: CHARACTER expression will be truncated in assignment (50/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:1522:72:
1522 | if (ip.eq.iprpCHEMFORM) hUnitsArray(n)=hChemF2(ij)
| 1
Warning: CHARACTER expression will be truncated in assignment (50/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:1523:72:
1523 | if (ip.eq.iprpFULLCHEMFORM) hUnitsArray(n)=hChemF1(ij)
| 1
Warning: CHARACTER expression will be truncated in assignment (50/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:1524:72:
1524 | if (ip.eq.iprpFLDNAME) hUnitsArray(n)=hFldFileName(ij)
| 1
Warning: CHARACTER expression will be truncated in assignment (50/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:1529:72:
1529 | hUnitsArray(n)=hSwap
| 1
Warning: CHARACTER expression will be truncated in assignment (50/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:1534:72:
1534 | hUnitsArray(n)=hSwap
| 1
Warning: CHARACTER expression will be truncated in assignment (50/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:1540:72:
1540 | hUnitsArray(n)=hSwap !Send back the directory in both hUnitsArray and herr (because the length of hUnitsArray
| 1
Warning: CHARACTER expression will be truncated in assignment (50/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:1545:72:
1545 | hUnitsArray(n)=hSwap
| 1
Warning: CHARACTER expression will be truncated in assignment (50/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:1562:72:
1562 | hUnitsArray(n)=LTRIM(herr(i+1:)) !Remove the part up to the character "]" because the length is only 50 characters long.
| 1
Warning: CHARACTER expression will be truncated in assignment (50/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:2217:4:
2217 | 900 ierr=ierr1
| 1
Warning: Label 900 at (1) defined but not used [-Wunused-label]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:1601:72:
1601 | hUnitsArray(k)=ha
| 1
Warning: CHARACTER expression will be truncated in assignment (50/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:5378:4:
5378 | 100 if (iPReos.ne.iPRold) then
| 1
Warning: Label 100 at (1) defined but not used [-Wunused-label]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:5348:72:
5348 | hFl=hFldOld
| 1
Warning: CHARACTER expression will be truncated in assignment (255/10000) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:2880:4:
2880 | 998 if (nc.gt.1) then
| 1
Warning: Label 998 at (1) defined but not used [-Wunused-label]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:2873:4:
2873 | 555 iFlg=555
| 1
Warning: Label 555 at (1) defined but not used [-Wunused-label]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:5087:72:
5087 | hPhase='Error code missing: '//hPhase
| 1
Warning: CHARACTER expression will be truncated in assignment (255/275) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:2747:41:
2747 | subroutine REFSET2 (io,iMass,x,y,x3,q,Output,hU,ierr,herr)
| 1
Warning: Unused dummy argument 'x3' at (1) [-Wunused-dummy-argument]
/Users/ihb/REFPROP10/FORTRAN/REFPROP.FOR:5157:41:
5157 | character herr*255,hFldIn*(*),UCASE
| 1
Warning: Unused variable 'ucase' declared at (1) [-Wunused-variable]
[ 50%] Building Fortran object CMakeFiles/refprop.dir/Users/ihb/REFPROP10/FORTRAN/SAT_SUB.FOR.o
/Users/ihb/REFPROP10/FORTRAN/SAT_SUB.FOR:370:4:
370 | 220 itx1=itx1+1
| 1
Warning: Label 220 at (1) defined but not used [-Wunused-label]
/Users/ihb/REFPROP10/FORTRAN/SAT_SUB.FOR:2428:3:
2428 | 25 if (D.lt.Dinc/10d0 .and. idir.eq.1) then
| 1
Warning: Label 25 at (1) defined but not used [-Wunused-label]
[ 56%] Building Fortran object CMakeFiles/refprop.dir/Users/ihb/REFPROP10/FORTRAN/SETUP.FOR.o
/Users/ihb/REFPROP10/FORTRAN/SETUP.FOR:1438:72:
1438 | hrf2=UCASE(hrf)
| 1
Warning: CHARACTER expression will be truncated in assignment (3/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/SETUP.FOR:1283:72:
1283 | htype2=UCASE(htype)
| 1
Warning: CHARACTER expression will be truncated in assignment (3/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/SETUP.FOR:1284:72:
1284 | hmix2=UCASE(hmix)
| 1
Warning: CHARACTER expression will be truncated in assignment (3/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/SETUP.FOR:1286:72:
1286 | hcomp2(i)=UCASE(hcomp(i))
| 1
Warning: CHARACTER expression will be truncated in assignment (3/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/SETUP.FOR:721:72:
721 | hAltID(i) =hstr !Alternate fluid ID number for mixing values
| 1
Warning: CHARACTER expression will be truncated in assignment (15/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/SETUP.FOR:725:72:
725 | hash(i)=hstr
| 1
Warning: CHARACTER expression will be truncated in assignment (10/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/SETUP.FOR:746:72:
746 | if (hash(i).eq.' ') hash(i)=hcas(i)
| 1
Warning: CHARACTER expression will be truncated in assignment (10/12) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/SETUP.FOR:758:72:
758 | hflag=UCASE(hflag)
| 1
Warning: CHARACTER expression will be truncated in assignment (3/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/SETUP.FOR:759:72:
759 | htype=UCASE(htype)
| 1
Warning: CHARACTER expression will be truncated in assignment (3/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/SETUP.FOR:2503:72:
2503 | h15=LTRIM(h15)
| 1
Warning: CHARACTER expression will be truncated in assignment (15/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/SETUP.FOR:1905:72:
1905 | htyp=UCASE(htype)
| 1
Warning: CHARACTER expression will be truncated in assignment (3/255) at (1) [-Wcharacter-truncation]
[ 62%] Building Fortran object CMakeFiles/refprop.dir/Users/ihb/REFPROP10/FORTRAN/TRNSP.FOR.o
[ 68%] Building Fortran object CMakeFiles/refprop.dir/Users/ihb/REFPROP10/FORTRAN/TRNS_TCX.FOR.o
[ 75%] Building Fortran object CMakeFiles/refprop.dir/Users/ihb/REFPROP10/FORTRAN/TRNS_VIS.FOR.o
[ 81%] Building Fortran object CMakeFiles/refprop.dir/Users/ihb/REFPROP10/FORTRAN/UTILITY.FOR.o
/Users/ihb/REFPROP10/FORTRAN/UTILITY.FOR:184:72:
184 | hnam=hname(ABS(icomp))
| 1
Warning: CHARACTER expression will be truncated in assignment (12/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/UTILITY.FOR:186:72:
186 | hn80=hnam80(ABS(icomp))
| 1
Warning: CHARACTER expression will be truncated in assignment (80/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/UTILITY.FOR:943:72:
943 | herr=ha !String contains more information than the space available in the output array.
| 1
Warning: CHARACTER expression will be truncated in assignment (255/10000) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/UTILITY.FOR:4440:72:
4440 | htyp1=UCASE(htyp)
| 1
Warning: CHARACTER expression will be truncated in assignment (3/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/UTILITY.FOR:2495:4:
2495 | 500 if (iFlags(1).eq.1 .or. iFlags(6).eq.1) then !Move slots 2 and 3 to slots 1 and 2.
| 1
Warning: Label 500 at (1) defined but not used [-Wunused-label]
/Users/ihb/REFPROP10/FORTRAN/UTILITY.FOR:3538:72:
3538 | ab2=UCASE(ab)
| 1
Warning: CHARACTER expression will be truncated in assignment (2/255) at (1) [-Wcharacter-truncation]
/Users/ihb/REFPROP10/FORTRAN/UTILITY.FOR:4152:4:
4152 | 520 if (INDEX(UCASE(hFl),'.FLD').eq.0) then
| 1
Warning: Label 520 at (1) defined but not used [-Wunused-label]
[ 87%] Building Fortran object CMakeFiles/refprop.dir/Users/ihb/REFPROP10/FORTRAN/DLLFILES/PASS_FTN.FOR.o
[ 93%] Linking Fortran shared library librefprop.dylib
[ 93%] Built target refprop
[100%] Built target REFPROP_H
Can you show me the list of files in your FORTRAN folder? It must be out of sync somehow.
You need to insert the image in the web interface
You are missing the file SAT_SUB.FOR. Put it in the folder and you should be good to go.
That worked!!!! Thank you so much!