Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28744 Discussions

How to get rid of so many warning message when compiling fortran code in Mac Sonoma?

tz0616
Beginner
3,796 Views

 Hi,

 I get so many warning messages (see below) when I compile a fortran code in Mac Sonoma.

 I am using intel fortran compiler 2023.2.0 build.

 Could you direct me how to get rid of so many warning messages?

 Thanks a lot

----------------------------

ifort test.f


-macosx_version_min has been renamed to -macos_version_min
ld: warning: -keep_dwarf_unwind is obsolete
ld: warning: ignoring duplicate libraries: '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libsvml.a'
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/compiler/lib/for_main.o', assuming: macOS
ld: warning: no platform load command found in '/private/var/folders/p_/v0x_2lt92g107vwlf_p3kp680000gp/T/ifortbRRUU7.o', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[2](cvt__globals.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[3](cvt_int_to_text.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[4](cvt_data_to_text.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[5](cvt_log_to_text.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[6](cvt_text_to_int.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[7](cvt_text_to_data.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[8](cvt_text_to_log.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[9](cvt_vax_f.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[10](cvt_vax_d.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[11](cvt_vax_g.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[13](cvt_cray.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[14](cvt_ibm_short.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[15](cvt_ibm_long.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[16](cvt_ieee_double.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[17](cvt_ieee_single.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[20](cvt_cvtas_t.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[21](cvt_cvtas_s.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[22](cvt_cvtas_x.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[28](for_close.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[29](for_close_proc.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[34](for_default_io_sizes_env_init.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[36](for_desc_item.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[37](for_diags_intel.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[43](for_exit.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[44](for_exit_handler.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[48](for_fmt_comp.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[49](for_fmt_val.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[51](for_get.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[57](for_init.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[59](for_intrp_fmt.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[60](for_io_util.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[61](for_ldir_wfs.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[64](for_lub_mgt.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[65](for_need_lf.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[66](for_open.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[69](for_preconnected_units_init.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[70](for_put.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[75](for_reentrancy.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[84](for_secnds.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[85](for_stop.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[94](for_udio.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[97](for_vm.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[102](for_wseq.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[103](for_wseq_fmt.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[104](for_wseq_lis.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[142](tbk_traceback.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[145](for_aio.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[149](for_open_proc.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[150](for_aio_wrap.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[158](cvtas_globals.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[159](cvtas_pow_ten_53.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[160](cvtas_pow_ten_64.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[161](cvtas_pow_ten_128.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[162](cvtas_a_to_s.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[163](cvtas_a_to_t.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[164](cvtas_s_to_a.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[165](cvtas_t_to_a.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[166](cvtas_nan_s.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[167](cvtas_nan_t.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[168](cvtas_a_to_x.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[169](cvtas_x_to_a.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libifcoremt.a[170](cvtas_nan_x.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libimf.a[309](fetestexcept_iface_c99.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libimf.a[1225](fetestexcept.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[3](ints2q.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[4](irc_msg_support.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[7](qcomp.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[9](fp2q.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[10](q2fp.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[72](xmm_malloc.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[76](tbk_display.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[77](tbk_backtrace.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[80](cpu_feature_disp.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[83](ia32_memcmp.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[84](fast_mem_ops.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[85](fastmemcpy.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[87](fastmemset.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[100](proc_init_utils.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[103](new_proc_init.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[104](ia32_addsubq.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[106](ia32_divq.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[117](sse2_strlen.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[118](sse2_strchr.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[120](sse2_strncmp.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[123](sse2_strncat.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[126](ssse3_strcpy.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[127](ssse3_strncpy.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[159](intel_mic_avx512f_memcpy.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[160](intel_mic_avx512f_memset.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[163](intel_avx_rep_memcpy.o)', assuming: macOS
ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/2023.2.0/mac/bin/intel64/../../compiler/lib/libirc.a[165](intel_avx_rep_memset.o)', assuming: macOS

0 Kudos
1 Solution
Barbara_P_Intel
Employee
3,750 Views

macOS Sonoma is not supported. See the System Requirements.

View solution in original post

12 Replies
andrew_4619
Honored Contributor III
3,765 Views

there are numerous -warn: options  to control diagnostic output, see https://www.intel.com/content/www/us/en/docs/fortran-compiler/developer-guide-reference/2023-0/warn.html

 

0 Kudos
tz0616
Beginner
3,589 Views

How to suppress this specific warming "ld: warning: -keep_dwarf_unwind is obsolete" ?

Thanks

0 Kudos
Steve_Lionel
Honored Contributor III
3,762 Views

These are not compiler warnings, they are ld warnings. An earlier report is 'no platform load command found in' ... macOS - Intel Community  for the "no platform" messages. The first couple of messages are different, and possibly due to incompatible changes introduced by Apple. One of Intel's Mac experts will need to comment.

 

0 Kudos
Barbara_P_Intel
Employee
3,751 Views

macOS Sonoma is not supported. See the System Requirements.

mcdssmwa
Beginner
3,198 Views

I get exactly the same problem on my Mac M2 with Ventura 13.6

0 Kudos
DSfusion-1972
Beginner
3,281 Views

I'm also getting similar warning messages under MacOS Ventura. According to what I saw on your System Requirements link, you are supposed to still be supporting MacOS Ventura.

0 Kudos
Ron_Green
Moderator
3,245 Views

Do you have a reproducer and build script or makefile?

Or perhaps a list of your compile and link options?

0 Kudos
DSfusion-1972
Beginner
3,175 Views

Hi Ron,

Yes, I have attached a tar file that contains the source code and a build script (build_far3d.sh). Let me know if you have questions.

Don

0 Kudos
Barbara_P_Intel
Employee
3,192 Views

Intel Fortran is only supported for Mac* computers with Intel® Processors.

0 Kudos
DSfusion-1972
Beginner
3,175 Views

I'm running on a MacBook Pro with a 2.7 GHz Quad-Core Intel Core i7 processor, so I would think that should still be supported.

Don

0 Kudos
Barbara_P_Intel
Employee
3,158 Views

@DSfusion-1972, you're fine with an Intel processor; we'll work on that. It's @mcdssmwa who's using Apple silicon.

0 Kudos
Ron_Green
Moderator
3,112 Views

You can try this option:

 -Wl,-ld_classic

 

this gets rid of the bulk of them but leaves a couple:

$ ifort hello.f90 -Wl,-ld_classic

-macosx_version_min has been renamed to -macos_version_min

ld: warning: -keep_dwarf_unwind is obsolete
$
$ ./a.out

 

but as has been said, ifort is no longer officially supported on macOS.  

0 Kudos
Reply