<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi,<div><br></div><div>Where is this ‘ifort’ coming from ? A Macports package or elsewhere ? From the messages below, I am not sure I see what this has to do with MacPorts ?</div><div><br></div><div>Chris</div><div><br><div><div>On 11 Dec 2013, at 5:13pm, zhifeng yang &lt;<a href="mailto:yangzf01@gmail.com">yangzf01@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Here is the whole command to compile this fortran code with error<div><br></div><div><div style="margin: 0px; font-size: 16px; font-family: Courier;">ifort -o wrf.exe -openmp -fpp -auto -O3 -ip -fp-model precise -w -ftz -align all -fno-alias -FR -convert big_endian &nbsp; -ip -Wl,-stack_addr,0xF10000000 -Wl,-stack_size,0x64000000 -m64 &nbsp; wrf.o ../main/module_wrf_top.o libwrflib.a /Users/bruce/Documents/A/model/WRFChem/WRFChem3_5_1/WRFV3/external/fftpack/fftpack5/libfftpack.a /Users/bruce/Documents/A/model/WRFChem/WRFChem3_5_1/WRFV3/external/io_grib1/libio_grib1.a /Users/bruce/Documents/A/model/WRFChem/WRFChem3_5_1/WRFV3/external/io_grib_share/libio_grib_share.a /Users/bruce/Documents/A/model/WRFChem/WRFChem3_5_1/WRFV3/external/io_int/libwrfio_int.a -L/Users/bruce/Documents/A/model/WRFChem/WRFChem3_5_1/WRFV3/external/esmf_time_f90 -lesmf_time /Users/bruce/Documents/A/model/WRFChem/WRFChem3_5_1/WRFV3/external/RSL_LITE/librsl_lite.a /Users/bruce/Documents/A/model/WRFChem/WRFChem3_5_1/WRFV3/frame/module_internal_header_util.o /Users/bruce/Documents/A/model/WRFChem/WRFChem3_5_1/WRFV3/frame/pack_utils.o&nbsp; -L/Users/bruce/Documents/A/model/WRFChem/WRFChem3_5_1/WRFV3/external/io_netcdf -lwrfio_nf -L/opt/local/lib -lnetcdff -lnetcdf</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">Undefined symbols for architecture x86_64:</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">&nbsp; "_module_data_soa_vbs_mp_ccofm_", referenced from:</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">&nbsp; &nbsp; &nbsp; _module_aerosols_soa_vbs_mp_nuclcond_ in libwrflib.a(module_aerosols_soa_vbs.o)</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">&nbsp; &nbsp; &nbsp; _module_aerosols_soa_vbs_mp_aerosols_soa_vbs_init_ in libwrflib.a(module_aerosols_soa_vbs.o)</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">&nbsp; "_module_data_soa_vbs_mp_ccofm_org_", referenced from:</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">&nbsp; &nbsp; &nbsp; _module_aerosols_soa_vbs_mp_nuclcond_ in libwrflib.a(module_aerosols_soa_vbs.o)</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">&nbsp; &nbsp; &nbsp; _module_aerosols_soa_vbs_mp_aerosols_soa_vbs_init_ in libwrflib.a(module_aerosols_soa_vbs.o)</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">&nbsp; "_module_data_soa_vbs_mp_cw_phase_", referenced from:</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">&nbsp; &nbsp; &nbsp; _module_aerosols_soa_vbs_mp_modpar_ in libwrflib.a(module_aerosols_soa_vbs.o)</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">&nbsp; &nbsp; &nbsp; _module_aerosols_soa_vbs_mp_modpar_..0 in libwrflib.a(module_aerosols_soa_vbs.o)</div><div><br></div><div apple-content-edited="true">
<div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style=" orphans: 2; text-align: -webkit-auto; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Thank you</div><div>Bruce</div></div></div>
</div>
<br><div><div>On Dec 11, 2013, at 10:09 AM, zhifeng yang &lt;<a href="mailto:yangzf01@gmail.com">yangzf01@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Here is the whole error<div><br></div><div><div style="margin: 0px; font-size: 16px; font-family: Courier;">Undefined symbols for architecture x86_64:</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">&nbsp; "___kmpc_end_master", referenced from:</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">&nbsp; &nbsp; &nbsp; _wrf_message_ in module_wrf_error.o</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">&nbsp; &nbsp; &nbsp; _wrf_message2_ in module_wrf_error.o&nbsp; &nbsp; &nbsp; _wrf_check_error_ in module_wrf_error.o&nbsp; &nbsp; &nbsp; _wrf_error_fatal_ in module_wrf_error.o&nbsp; &nbsp; &nbsp; _wrf_error_fatal3_ in module_wrf_error.o</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">&nbsp; "___kmpc_global_thread_num", referenced from:</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">&nbsp; &nbsp; &nbsp; _wrf_message_ in module_wrf_error.o</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">&nbsp; &nbsp; &nbsp; _wrf_message2_ in module_wrf_error.o</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">&nbsp; &nbsp; &nbsp; _wrf_check_error_ in module_wrf_error.o</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">&nbsp; &nbsp; &nbsp; _wrf_error_fatal_ in module_wrf_error.o</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">&nbsp; &nbsp; &nbsp; _wrf_error_fatal3_ in module_wrf_error.o</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">&nbsp; &nbsp; &nbsp; _module_wrf_error._ in module_wrf_error.o</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">&nbsp; "___kmpc_master", referenced from:</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">&nbsp; &nbsp; &nbsp; _wrf_message_ in module_wrf_error.o</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">&nbsp; &nbsp; &nbsp; _wrf_message2_ in module_wrf_error.o</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">&nbsp; &nbsp; &nbsp; _wrf_check_error_ in module_wrf_error.o</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">&nbsp; &nbsp; &nbsp; _wrf_error_fatal_ in module_wrf_error.o</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">&nbsp; &nbsp; &nbsp; _wrf_error_fatal3_ in module_wrf_error.o</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">ld: symbol(s) not found for architecture x86_64</div><div style="margin: 0px; font-size: 16px; font-family: Courier;">make[2]: [diffwrf] Error 1 (ignored)</div><div><br></div><div>Actually the code is fine, no error in the code. Because it’s from WRF committee. I guess the reason that I get the error is from compiler or its flags. But I am not sure currently.</div><div><br></div><div apple-content-edited="true">
<div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style=" orphans: 2; text-align: -webkit-auto; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Thank you</div><div>Bruce</div></div></div>
</div>
<br><div><div>On Dec 11, 2013, at 10:06 AM, Ryan Schmidt &lt;<a href="mailto:ryandesign@macports.org">ryandesign@macports.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br>On Dec 11, 2013, at 01:40, Gmail wrote:<br><br><blockquote type="cite">When I compile a fortran code, I got the error <br>Undefined symbols for architecture x86_64<br><br>My mac is 64bits. The fortran compiler used here is ifort.<br></blockquote><br>The relevant information would be *what* symbols were undefined, what your code looks like, and where those symbols are actually defined.<br><br><br></blockquote></div><br></div></div></blockquote></div><br></div></div>_______________________________________________<br>macports-users mailing list<br><a href="mailto:macports-users@lists.macosforge.org">macports-users@lists.macosforge.org</a><br>https://lists.macosforge.org/mailman/listinfo/macports-users<br></blockquote></div><br></div></body></html>