Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

'no platform load command found in' ... macOS

gilmour__arthur
4,171 Views

My macOS recently upgraded to Ventura 13.4

and my large Fortran application would no longer build.

I upgraded to oneapi 2023.2 but it still fails with hundreds of lines like

ld: warning: no platform load command found in '/opt/intel/oneapi/mkl/latest/lib/libmkl_core.a[22436](xdpptrf.o)', assuming: macOS

ld: warning: no platform load command found in '/opt/intel/oneapi/mkl/latest/lib/libmkl_core.a[22441](xdsptrd.o)', assuming: macOS

ld: warning: no platform load command found in '/opt/intel/oneapi/mkl/latest/lib/libmkl_core.a[22540](dgesvdx.o)', assuming: macOS

referring to all the static libraries it needs.  e.g.

 

-rw-r--r--@ 1 root  wheel  415274272 14 Jun 03:16 libmkl_core.a

-rw-r--r--@ 1 root  wheel   56582800 14 Jun 03:16 libmkl_intel_ilp64.a

-rw-r--r--@ 1 root  wheel   61978400 14 Jun 03:16 libmkl_intel_lp64.a

-rw-r--r--@ 1 root  wheel   77574368 14 Jun 03:16 libmkl_intel_thread.a

and 

ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/latest/mac/compiler/lib/libimf.a[1316](matherr.o)', assuming: macOS

ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/latest/mac/compiler/lib/libimf.a[1317](matherrf.o)', assuming: macOS

ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/latest/mac/compiler/lib/libimf.a[1318](matherrl.o)', assuming: macOS

ld: warning: no platform load command found in '/opt/intel/oneapi/compiler/latest/mac/compiler/lib/libimf.a[1320](acosf_avx2.o)', assuming: macOS

 

-rw-r--r--@ 1 root  wheel   1849824  9 Jun 21:00 libifcore.a

-rw-r--r--@ 1 root  wheel   1871992  9 Jun 21:00 libifcoremt.a

-rw-r--r--@ 1 root  wheel    409432  9 Jun 21:00 libifport.a

-rw-r--r--@ 1 root  wheel   5865872  9 Jun 21:00 libimf.a

-rw-r--r--@ 1 root  wheel   2157800  9 Jun 21:00 libiomp5.a

-rw-r--r--@ 1 root  wheel    233128  9 Jun 21:00 libiompstubs5.a

 

I enclose my makefile in case someone can see what is wrong

or has a suggestion.

 

Labels (1)
2 Replies
gilmour__arthur
4,103 Views

I eventually discovered this is 'just a warning' that the linker is 'assuming macOS' (since I am running

on a Mac) and it actually did build my program despite the hundreds of warnings.

 

It would be nice to be able to suppress the warning.

 

 

 

0 Kudos
JiuweiZhao
Beginner
4,010 Views

Most of fortran programs can be compiled with the warnings. However, some models could not compile , which may be related with the "ar" .

0 Kudos
Reply