igmk / pamtra

Passive and Active Microwave TRAnsfer model
GNU General Public License v3.0
20 stars 16 forks source link

MacOS Segfault when building #44

Closed ephraims28 closed 1 year ago

ephraims28 commented 1 year ago

Hi, I am in the process of building PAMTRA and ran into a segfault that I've been unable to resolve. Attached is my terminal screen. I hypothesize it has something to do with gcc because this is the first step in the Makefile that uses gcc.

There are also out of bounds indexing errors before the segfault that may or may not be related to my problem. And I don't know why those warnings are occurring since I didn't modify the code

.

Screen Shot 2023-06-01 at 4 18 02 PM

Thanks, Sam Ephraim

jchylik commented 1 year ago

ran into a segfault

However this is not a runtime segmentation fault, but segmentation fault during compilation. So it might indicate that compilers or linkers are not installed correctly.

Attached is my terminal screen.

Instead of a screenshot, a text output would be more helpful.

ephraims28 commented 1 year ago

Yeah, I think it's issue with my gcc. I get a segfault even when just running "gcc --version". I think it's similar to this issue. (https://github.com/Homebrew/homebrew-core/issues/126054)

I'll work on finding a fix, but if you know what is happening, help would be appreciated!

(base) MacBook-Air-36:pamtra samephraim$ gcc --version Segmentation fault: 11

(base) MacBook-Air-36:pamtra samephraim$ brew info gcc ==> gcc: stable 13.1.0 (bottled), HEAD GNU compiler collection https://gcc.gnu.org/ /usr/local/Cellar/gcc/13.1.0 (1,606 files, 429.5MB) * Poured from bottle on 2023-06-01 at 11:15:27 From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/gcc.rb License: GPL-3.0-or-later with GCC-exception-3.1 ==> Dependencies Required: gmp ✔, isl ✔, libmpc ✔, mpfr ✔, zstd ✔ ==> Options --HEAD Install HEAD version ==> Analytics install: 220,781 (30 days), 6,151 (90 days), 993,848 (365 days) install-on-request: 60,178 (30 days), 3,755 (90 days), 486,057 (365 days) build-error: 195 (30 days)

(base) MacBook-Air-36:pamtra samephraim$ make gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/kinds.f90 -o src/kinds.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/nan.f90 -o src/nan.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/vars_index.f90 -o src/vars_index.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/report_module.f90 -o src/report_module.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/rt_utilities.f90 -o src/rt_utilities.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/settings.f90 -o src/settings.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/constants.f90 -o src/constants.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/zlib_stuff.f90 -o src/zlib_stuff.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/mod_fastem4_coef.f90 -o src/mod_fastem4_coef.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/gasabs_module.f90 -o src/gasabs_module.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/conversions.f90 -o src/conversions.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/descriptor_file.f90 -o src/descriptor_file.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/vars_atmosphere.f90 -o src/vars_atmosphere.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/vars_rt.f90 -o src/vars_rt.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/vars_hydroFullSpec.f90 -o src/vars_hydroFullSpec.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/mod_io_strings.f90 -o src/mod_io_strings.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/getopt.f90 -o src/getopt.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/parse_options.f90 -o src/parse_options.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/radmat.f90 -o src/radmat.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/convolution.f90 -o src/convolution.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/get_gasabs.f90 -o src/get_gasabs.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/vars_output.f90 -o src/vars_output.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/azimuth_emissivity_module.f90 -o src/azimuth_emissivity_module.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/hyperbolic_step.f90 -o src/hyperbolic_step.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/slope_variance.f90 -o src/slope_variance.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/reflection_correction_module.f90 -o src/reflection_correction_module.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/large_scale_correction_module.f90 -o src/large_scale_correction_module.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/small_scale_correction_module.f90 -o src/small_scale_correction_module.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/foam_utility_module.f90 -o src/foam_utility_module.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/liu.f90 -o src/liu.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/fresnel.f90 -o src/fresnel.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/fastemx.f90 -o src/fastemx.o src/fastemx.f90:287:17:

287 | emissivity(u_idx) = e_azimuth(u_idx) ! knwon Warning: Array reference is out of bounds (3 > 2) in dimension 1 | 1 Warning: Array reference at (1) is out of bounds (3 > 2) in dimension 1 src/fastemx.f90:287:37:

287 | emissivity(u_idx) = e_azimuth(u_idx) ! knwon Warning: Array reference is out of bounds (3 > 2) in dimension 1 | 1 Warning: Array reference at (1) is out of bounds (3 > 2) in dimension 1 src/fastemx.f90:288:17:

288 | emissivity(v_idx) = e_azimuth(v_idx) ! knwon Warning: Array reference is out of bounds (4 > 2) in dimension 1 | 1 Warning: Array reference at (1) is out of bounds (4 > 2) in dimension 1 src/fastemx.f90:288:37:

288 | emissivity(v_idx) = e_azimuth(v_idx) ! knwon Warning: Array reference is out of bounds (4 > 2) in dimension 1 | 1 Warning: Array reference at (1) is out of bounds (4 > 2) in dimension 1 src/fastemx.f90:293:37:

293 | if (nstokes .gt. 2) reflectivity(u_idx:v_idx) = zero ! 3rd, 4th stokes from atmosphere are not included. ! knwon Warning: Lower array reference is out of bounds (3 > 2) in dimension 1 | 1 Warning: Lower array reference at (1) is out of bounds (3 > 2) in dimension 1 gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/tessem2.f90 -o src/tessem2.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/ocean_sfc_optics.f90 -o src/ocean_sfc_optics.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/mod_mwatlas_nt_bin.f90 -o src/mod_mwatlas_nt_bin.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/telsem2.f90 -o src/telsem2.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/land_sfc_optics.f90 -o src/land_sfc_optics.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/sfc_optics.f90 -o src/sfc_optics.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/sfc_matrices.f90 -o src/sfc_matrices.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/run_rt.f90 -o src/run_rt.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/scat_utilities.f90 -o src/scat_utilities.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/mpm93.f90 -o src/mpm93.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/eps_water.f90 -o src/eps_water.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/mie_scat_utilities.f90 -o src/mie_scat_utilities.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/mie_spheres.f90 -o src/mie_spheres.o gcc -O -fPIC -c src/scatdb.c -o src/scatdb.o make: *** [src/scatdb.o] Segmentation fault: 11

jchylik commented 1 year ago

Yeah, I think it's issue with my gcc. I get a segfault even when just running "gcc --version". I think it's similar to this issue. (https://github.com/Homebrew/homebrew-core/issues/126054)

I have no experience with Mac, but it seem the issue is either that additional compiler flags are required on Mac, or just that the gcc is badly installed on Mac.

(base) MacBook-Air-36:pamtra samephraim$ make

As for the rest of the code, it is doing pretty much what is expected of it.

ephraims28 commented 1 year ago

Ok, I was able to get past the segfault I was getting by running the make command with an older version of gcc.

make CC=/usr/local/bin/gcc-11

I ran into other issues later on though. I think I'm just going to try in Linux and see how that goes. Thanks for the help and quick responses!

(base) MacBook-Air-36:pamtra samephraim$ make CC=/usr/local/bin/gcc-11 gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/kinds.f90 -o src/kinds.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/nan.f90 -o src/nan.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/vars_index.f90 -o src/vars_index.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/report_module.f90 -o src/report_module.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/rt_utilities.f90 -o src/rt_utilities.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/settings.f90 -o src/settings.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/constants.f90 -o src/constants.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/zlib_stuff.f90 -o src/zlib_stuff.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/mod_fastem4_coef.f90 -o src/mod_fastem4_coef.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/gasabs_module.f90 -o src/gasabs_module.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/conversions.f90 -o src/conversions.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/descriptor_file.f90 -o src/descriptor_file.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/vars_atmosphere.f90 -o src/vars_atmosphere.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/vars_rt.f90 -o src/vars_rt.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/vars_hydroFullSpec.f90 -o src/vars_hydroFullSpec.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/mod_io_strings.f90 -o src/mod_io_strings.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/getopt.f90 -o src/getopt.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/parse_options.f90 -o src/parse_options.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/radmat.f90 -o src/radmat.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/convolution.f90 -o src/convolution.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/get_gasabs.f90 -o src/get_gasabs.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/vars_output.f90 -o src/vars_output.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/azimuth_emissivity_module.f90 -o src/azimuth_emissivity_module.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/hyperbolic_step.f90 -o src/hyperbolic_step.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/slope_variance.f90 -o src/slope_variance.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/reflection_correction_module.f90 -o src/reflection_correction_module.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/large_scale_correction_module.f90 -o src/large_scale_correction_module.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/small_scale_correction_module.f90 -o src/small_scale_correction_module.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/foam_utility_module.f90 -o src/foam_utility_module.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/liu.f90 -o src/liu.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/fresnel.f90 -o src/fresnel.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/fastemx.f90 -o src/fastemx.o src/fastemx.f90:287:17:

287 | emissivity(u_idx) = e_azimuth(u_idx) ! knwon Warning: Array reference is out of bounds (3 > 2) in dimension 1 | 1 Warning: Array reference at (1) is out of bounds (3 > 2) in dimension 1 src/fastemx.f90:287:37:

287 | emissivity(u_idx) = e_azimuth(u_idx) ! knwon Warning: Array reference is out of bounds (3 > 2) in dimension 1 | 1 Warning: Array reference at (1) is out of bounds (3 > 2) in dimension 1 src/fastemx.f90:288:17:

288 | emissivity(v_idx) = e_azimuth(v_idx) ! knwon Warning: Array reference is out of bounds (4 > 2) in dimension 1 | 1 Warning: Array reference at (1) is out of bounds (4 > 2) in dimension 1 src/fastemx.f90:288:37:

288 | emissivity(v_idx) = e_azimuth(v_idx) ! knwon Warning: Array reference is out of bounds (4 > 2) in dimension 1 | 1 Warning: Array reference at (1) is out of bounds (4 > 2) in dimension 1 src/fastemx.f90:293:37:

293 | if (nstokes .gt. 2) reflectivity(u_idx:v_idx) = zero ! 3rd, 4th stokes from atmosphere are not included. ! knwon Warning: Lower array reference is out of bounds (3 > 2) in dimension 1 | 1 Warning: Lower array reference at (1) is out of bounds (3 > 2) in dimension 1 gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/tessem2.f90 -o src/tessem2.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/ocean_sfc_optics.f90 -o src/ocean_sfc_optics.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/mod_mwatlas_nt_bin.f90 -o src/mod_mwatlas_nt_bin.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/telsem2.f90 -o src/telsem2.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/land_sfc_optics.f90 -o src/land_sfc_optics.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/sfc_optics.f90 -o src/sfc_optics.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/sfc_matrices.f90 -o src/sfc_matrices.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/run_rt.f90 -o src/run_rt.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/scat_utilities.f90 -o src/scat_utilities.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/mpm93.f90 -o src/mpm93.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/eps_water.f90 -o src/eps_water.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/mie_scat_utilities.f90 -o src/mie_scat_utilities.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/mie_spheres.f90 -o src/mie_spheres.o /usr/local/bin/gcc-11 -O -fPIC -c src/scatdb.c -o src/scatdb.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/dda_db_liu.f90 -o src/dda_db_liu.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/dda_db_hong.f90 -o src/dda_db_hong.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/hongdb.f90 -o src/hongdb.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/dia2vel.f90 -o src/dia2vel.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/rescale_spectra.f90 -o src/rescale_spectra.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/radar_moments.f90 -o src/radar_moments.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/radar_spectrum.f90 -o src/radar_spectrum.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/radar_spectral_broadening.f90 -o src/radar_spectral_broadening.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/radar_simulator.f90 -o src/radar_simulator.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/rosen98_gasabs.f90 -o src/rosen98_gasabs.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/surface.f90 -o src/surface.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/eps_ice.f90 -o src/eps_ice.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/eps_mix.f90 -o src/eps_mix.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/equcom.f90 -o src/equcom.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/land_emis_ssmi.f90 -o src/land_emis_ssmi.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/equare.f90 -o src/equare.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/ref_water.f90 -o src/ref_water.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/ref_ice.f90 -o src/ref_ice.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/e_sat_gg_water.f90 -o src/e_sat_gg_water.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/interpolation.f90 -o src/interpolation.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/collect_output.f90 -o src/collect_output.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/save_active.f90 -o src/save_active.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/random.f90 -o src/random.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/rt4.f90 -o src/rt4.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/radtran4.f90 -o src/radtran4.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/radintg4.f90 -o src/radintg4.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/radscat4.f90 -o src/radscat4.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/drop_size_dist.f90 -o src/drop_size_dist.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/make_dist.f90 -o src/make_dist.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/make_dist_param.f90 -o src/make_dist_param.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/make_mass_size.f90 -o src/make_mass_size.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/calc_moment.f90 -o src/calc_moment.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/make_soft_spheroid.f90 -o src/make_soft_spheroid.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/check_print.f90 -o src/check_print.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/tmatrix.f90 -o src/tmatrix.o src/tmatrix.f90:207:105:

207 | write(db_path,'(A4,A6,A1,4(A6,I3.3),A6,ES12.6,A6,SP,I3.2,SS,2(A6,ES9.3),A6,A3,4(A6,ES9.3),A1)'),& | 1 Warning: Legacy Extension: Comma before i/o item list at (1) src/tmatrix.f90:214:105:

214 | write(db_path,'(A4,A6,A1,4(A6,I3.3),A6,ES12.6,A6,SP,I3.2,SS,2(A6,ES9.3),A6,A3,4(A6,ES9.3),A1)'),& | 1 Warning: Legacy Extension: Comma before i/o item list at (1) gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/rayleigh_gans.f90 -o src/rayleigh_gans.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/scatProperties.f90 -o src/scatProperties.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/hydrometeor_extinction.f90 -o src/hydrometeor_extinction.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/scatcnv.f90 -o src/scatcnv.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/tmatrix_lpq.f -o src/tmatrix_lpq.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/get_scat_mat.f90 -o src/get_scat_mat.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/refractive_index.f90 -o src/refractive_index.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/dsort.f90 -o src/dsort.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/rho_air.f90 -o src/rho_air.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/viscosity_air.f90 -o src/viscosity_air.o echo "!edit in makefile only!" > src/versionNumber.auto.f90 echo "subroutine versionNumber(gitVersion,gitHash)" >> src/versionNumber.auto.f90 echo "implicit none" >> src/versionNumber.auto.f90 echo "character(40), intent(out) ::gitVersion,gitHash" >> src/versionNumber.auto.f90 echo "gitVersion = 'v1.0.0-75-g16f0bbd-master'" >> src/versionNumber.auto.f90 echo "gitHash = '16f0bbda8b7b2a64478b0fe5db0f717de3bbd649'" >> src/versionNumber.auto.f90 echo "return" >> src/versionNumber.auto.f90 echo "end subroutine versionNumber" >> src/versionNumber.auto.f90 gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/versionNumber.auto.f90 -o src/versionNumber.auto.o #otherwise error on first make run! gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/smooth_savitzky_golay.f90 -o src/smooth_savitzky_golay.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/radar_hildebrand_sekhon.f90 -o src/radar_hildebrand_sekhon.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/tmatrix_amplq.lp.f -o src/tmatrix_amplq.lp.o src/tmatrix_amplq.lp.f:479:72:

479 DO 213 N1=1,NMAX

Warning: Fortran 2018 deleted feature: Shared DO termination label 213 at (1) src/tmatrix_amplq.lp.f:510:72:

510 DO 214 N1=1,NM

Warning: Fortran 2018 deleted feature: Shared DO termination label 214 at (1) src/tmatrix_amplq.lp.f:785:72:

785 DO 5 N=1,NMAX

Warning: Fortran 2018 deleted feature: Shared DO termination label 5 at (1) src/tmatrix_amplq.lp.f:809:72:

809 DO 400 N=NMIN,NMAX

Warning: Fortran 2018 deleted feature: Shared DO termination label 400 at (1) src/tmatrix_amplq.lp.f:985:72:

985 DO 10 N1=1,N

Warning: Fortran 2018 deleted feature: Shared DO termination label 10 at (1) src/tmatrix_amplq.lp.f:1054:72:

1054 20 PC=XPB+(XPB-PA)*(DJ-A)/DJ

Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 20 at (1) src/tmatrix_amplq.lp.f:1073:72:

1073 105 PRINT 1200,I,ZZ,I,W(I)

Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 105 at (1) src/tmatrix_amplq.lp.f:1082:72:

1082 120 Z(I)=(A+Z(I))/B

Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 120 at (1) src/tmatrix_amplq.lp.f:1361:72:

1361 DO 10 N=1,NMAX

Warning: Fortran 2018 deleted feature: Shared DO termination label 10 at (1) src/tmatrix_amplq.lp.f:1429:72:

1429 5 Y(I+1)=float(2I+1)X1*Y(I)-Y(I-1)

Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 5 at (1) src/tmatrix_amplq.lp.f:1432:72:

1432 10 V(I)=Y(I-1)-float(I)X1Y(I)

Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 10 at (1) src/tmatrix_amplq.lp.f:1580:72:

1580 DO 25 N=1,NMAX

Warning: Fortran 2018 deleted feature: Shared DO termination label 25 at (1) src/tmatrix_amplq.lp.f:1595:72:

1595 DO 300 N2=MM1,NMAX

Warning: Fortran 2018 deleted feature: Shared DO termination label 300 at (1) src/tmatrix_amplq.lp.f:1689:72:

1689 DO 310 N2=MM1,NMAX

Warning: Fortran 2018 deleted feature: Shared DO termination label 310 at (1) src/tmatrix_amplq.lp.f:1726:72:

1726 DO 320 N2=1,NNMAX

Warning: Fortran 2018 deleted feature: Shared DO termination label 320 at (1) src/tmatrix_amplq.lp.f:1820:72:

1820 DO 25 N=1,NMAX

Warning: Fortran 2018 deleted feature: Shared DO termination label 25 at (1) src/tmatrix_amplq.lp.f:1838:72:

1838 DO 300 N2=MM1,NMAX

Warning: Fortran 2018 deleted feature: Shared DO termination label 300 at (1) src/tmatrix_amplq.lp.f:1983:72:

1983 DO 310 N2=MM1,NMAX

Warning: Fortran 2018 deleted feature: Shared DO termination label 310 at (1) src/tmatrix_amplq.lp.f:2030:72:

2030 DO 320 N2=1,NNMAX

Warning: Fortran 2018 deleted feature: Shared DO termination label 320 at (1) src/tmatrix_amplq.lp.f:2299:72:

2299 20 PC=XPB+(XPB-PA)*(DJ-A)/DJ

Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 20 at (1) src/tmatrix_amplq.lp.f:2317:72:

2317 105 PRINT 1200,I,ZZ,I,W(I)

Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 105 at (1) src/tmatrix_amplq.lp.f:2326:72:

2326 120 Z(I)=(A+Z(I))/B

Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 120 at (1) gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 src/deallocate_everything.f90 -o src/deallocate_everything.o gfortran -c -fPIC -cpp -Jsrc/ -Isrc/ -O2 -I/usr/local/Cellar/netcdf-fortran/4.6.1/include -I/usr/local/Cellar/netcdf-fortran/4.6.1/include -O2 src/write_nc_results.f90 -o src/write_nc_results.o gfortran -Isrc/ -o bin/pamtra src/pamtra.f90 src/kinds.o src/nan.o src/vars_index.o src/report_module.o src/rt_utilities.o src/settings.o src/constants.o src/zlib_stuff.o src/mod_fastem4_coef.o src/gasabs_module.o src/conversions.o src/descriptor_file.o src/vars_atmosphere.o src/vars_rt.o src/vars_hydroFullSpec.o src/mod_io_strings.o src/getopt.o src/parse_options.o src/radmat.o src/convolution.o src/get_gasabs.o src/vars_output.o src/azimuth_emissivity_module.o src/hyperbolic_step.o src/slope_variance.o src/reflection_correction_module.o src/large_scale_correction_module.o src/small_scale_correction_module.o src/foam_utility_module.o src/liu.o src/fresnel.o src/fastemx.o src/tessem2.o src/ocean_sfc_optics.o src/mod_mwatlas_nt_bin.o src/telsem2.o src/land_sfc_optics.o src/sfc_optics.o src/sfc_matrices.o src/run_rt.o src/scat_utilities.o src/mpm93.o src/eps_water.o src/mie_scat_utilities.o src/mie_spheres.o src/scatdb.o src/dda_db_liu.o src/dda_db_hong.o src/hongdb.o src/dia2vel.o src/rescale_spectra.o src/radar_moments.o src/radar_spectrum.o src/radar_spectral_broadening.o src/radar_simulator.o src/rosen98_gasabs.o src/surface.o src/eps_ice.o src/eps_mix.o src/equcom.o src/land_emis_ssmi.o src/equare.o src/ref_water.o src/ref_ice.o src/e_sat_gg_water.o src/interpolation.o src/collect_output.o src/save_active.o src/random.o src/rt4.o src/radtran4.o src/radintg4.o src/radscat4.o src/drop_size_dist.o src/make_dist.o src/make_dist_param.o src/make_mass_size.o src/calc_moment.o src/make_soft_spheroid.o src/check_print.o src/tmatrix.o src/rayleigh_gans.o src/scatProperties.o src/hydrometeor_extinction.o src/scatcnv.o src/tmatrix_lpq.o src/get_scat_mat.o src/refractive_index.o src/dsort.o src/rho_air.o src/viscosity_air.o src/versionNumber.auto.o src/smooth_savitzky_golay.o src/radar_hildebrand_sekhon.o src/tmatrix_amplq.lp.o src/deallocate_everything.o src/write_nc_results.o -L/usr/lib/ -L/usr/local/lib/ -llapack -Llib/ -L../lib/ -lblas -lz -lfftw3 -L/usr/local/Cellar/netcdf-fortran/4.6.1/lib -lnetcdff -lnetcdf -lnetcdf ld: warning: directory not found for option '-Llib/' ld: warning: directory not found for option '-L../lib/' ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/lib//libblas.tbd' for architecture x86_64 collect2: error: ld returned 1 exit status make: *** [bin/pamtra] Error 1

jchylik commented 1 year ago
ld: warning: directory not found for option '-L../lib/'
ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/lib

It looks like you would need to check paths with the location of libraries and modify some parts of Makefile file