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

-dynamic: No such file or directory After Xcode update

Peter_M_1
Beginner
1,026 Views

Hi,

Yesterday I was compiling some fortran code no problem on my mac. Today I performed a system update via the Mac App Store.

After this now when I try and compile the same code using the same command as yesterday I get ..

ifort -assume realloc-lhs triangle_cant_g.f90 -o cant

-dynamic: No such file or directory

 

There was a command line tools update, and an Xcode update, to version 6.0.1, as well as an Mac OS X update ...

Is any one else having these problems, I tried running

source /opt/intel/bin/ifortvars.sh intel64

But this didn't help. Thanks, Peter

0 Kudos
8 Replies
Steven_L_Intel1
Employee
1,026 Views

I don't remember your mentioning an Xcode update on StackOverflow. If you change Xcode versions, you MUST reinstall Intel Fortran. That said, we don't yet support Xcode 6.

0 Kudos
Peter_M_1
Beginner
1,026 Views

Stackoverflow ? I've not posted this there, are there other people having similar problems ? Do you have a link to the SO post ?

I wasn't aware Xcode 6 was unsupported, this however wasn't an update to a major version, rather an update too 6.0.1. It's pretty disappointing if I have to reinstall all the intel compilers every time  there's a minor update...

 

0 Kudos
Steven_L_Intel1
Employee
1,026 Views

Sorry - I thought I had seen it there. Somewhere else...

Yes, unfortunately, you do often need to reinstall after each Xcode update. Apple likes to pretend that nobody uses any software that doesn't come from Apple and Xcode updates often wipe out our integration. Some updates might not need this, but it is our general advice.

I'll let our Mac experts comment on your specific problem.

0 Kudos
Ron_Green
Moderator
1,026 Views

I have that same OS and Xcode version:  OS X 10.9.5 and Xcode 6.0.1.  I've not had any issues.

the source you have is wrong - needs to be

source /opt/intel/bin/compilervars.sh intel64

-dynamic is an argument we pass to the system linker 'ld'.  Do this to see what linker you have:  here is what I see what do you see?

$ which ld

/usr/bin/ld

rwgreen-mac03:~ rwgreen$ ld -v

@(#)PROGRAM:ld  PROJECT:ld64-241.8

configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h armv6m armv7m armv7em

LTO support using: LLVM version 3.5svn

 

Now what I want you to do is compile with option -#

source /opt/intel/bin/compilervars.sh

ifort -#  -assume realloc-lhs  triangle_cant_g.f90 -o cant

Show me the full output from this command

ron

0 Kudos
Peter_M_1
Beginner
1,026 Views

 

Peters-MacBook-Pro:tri_fem_140925 Peter$ source /opt/intel/bin/compilervars.sh intel64

Peters-MacBook-Pro:tri_fem_140925 Peter$ ifort -#  -assume realloc-lhs  triangle_cant_g.f90 -o cant

/usr/bin/ifort-14.0-base/bin/intel64/fortcom  \

    -D__INTEL_COMPILER=1400 \

    -D__INTEL_COMPILER_UPDATE=3 \

    -D__x86_64 \

    -D__x86_64__ \

    -D_MT \

    -D__INTEL_COMPILER_BUILD_DATE=20140415 \

    -D__PIC__ \

    -D__APPLE__ \

    -D__MACH__ \

    -D__pentium4 \

    -D__pentium4__ \

    -D__tune_pentium4__ \

    -D__SSE2__ \

    -D__SSE3__ \

    -D__SSSE3__ \

    -D__SSE__ \

    -D__MMX__ \

    -mGLOB_pack_sort_init_list \

    -I. \

    -I/opt/intel/composer_xe_2013_sp1.3.166/ipp/include \

    -I/opt/intel/composer_xe_2013_sp1.3.166/mkl/include \

    -I/opt/intel/composer_xe_2013_sp1.3.168/tbb/include \

    -I/opt/intel/composer_xe_2013_sp1.3.166/ipp/include \

    -I/opt/intel/composer_xe_2013_sp1.3.166/mkl/include \

    -I/opt/intel/composer_xe_2013_sp1.3.168/tbb/include \

    -I/usr/bin/ifort-14.0-base/compiler/include/intel64 \

    -I/usr/bin/ifort-14.0-base/compiler/include \

    -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0/include \

    -I/usr/local/include \

    -I/usr/include \

    "-assume realloc_lhs" \

    -O2 \

    -simd \

    -mP1OPT_version=14.0-intel64 \

    -mGLOB_diag_file=/var/folders/l1/xy86_dd92x3d3sb460g5czpr0000gn/T/ifortJBHJbk.diag \

    -mGLOB_diag_use_message_catalog=FALSE \

    -mGLOB_source_language=GLOB_SOURCE_LANGUAGE_F90 \

    -mP2OPT_static_promotion \

    -mP1OPT_print_version=FALSE \

    -mCG_use_gas_got_workaround=F \

    -mP2OPT_align_option_used=TRUE \

    -mGLOB_gcc_version=481 \

    "-mGLOB_options_string=-# -assume realloc-lhs -o cant" \

    -mGLOB_position_independent_code \

    -mGLOB_preemption_model=1 \

    -mGLOB_no_compact_unwind=TRUE \

    -mGLOB_cxx_limited_range=FALSE \

    -mCG_extend_parms=FALSE \

    -mGLOB_compiler_bin_directory=/usr/bin/ifort-14.0-base/bin/intel64 \

    -mGLOB_as_output_backup_file_name=/var/folders/l1/xy86_dd92x3d3sb460g5czpr0000gn/T/ifortTaZ0JUas_.s \

    -mIPOPT_activate \

    -mIPOPT_lite \

    -mGLOB_em64t \

    -mGLOB_instruction_tuning=0x0 \

    -mGLOB_product_id_code=0x22006d8f \

    -mCG_bnl_movbe=T \

    -mGLOB_extended_instructions=0x80 \

    -mP3OPT_use_mspp_call_convention \

    -mP2OPT_subs_out_of_bound=FALSE \

    -mGLOB_ansi_alias \

    -mPGOPTI_value_profile_use=T \

    -mP2OPT_il0_array_sections=TRUE \

    -mP2OPT_hlo_level=2 \

    -mP2OPT_hlo \

    -mP2OPT_hpo_rtt_control=0 \

    -mIPOPT_args_in_regs=0 \

    -mP2OPT_disam_assume_nonstd_intent_in=FALSE \

    -mGLOB_imf_mapping_library=/usr/bin/ifort-14.0-base/bin/intel64/libiml_attr.dylib \

    -mIPOPT_obj_output_file_name=/var/folders/l1/xy86_dd92x3d3sb460g5czpr0000gn/T/ifortJBHJbk.o \

    -mIPOPT_whole_archive_fixup_file_name=/var/folders/l1/xy86_dd92x3d3sb460g5czpr0000gn/T/ifortwarchHP4P1E \

    -mGLOB_long_size_64 \

    -mGLOB_routine_pointer_size_64 \

    -mGLOB_driver_tempfile_name=/var/folders/l1/xy86_dd92x3d3sb460g5czpr0000gn/T/iforttempfile446ru3 \

    -mGLOB_os_target=GLOB_OS_TARGET_MACH \

    -mGLOB_async_unwind_tables=TRUE \

    -mGLOB_obj_output_file=/var/folders/l1/xy86_dd92x3d3sb460g5czpr0000gn/T/ifortJBHJbk.o \

    -mGLOB_source_dialect=GLOB_SOURCE_DIALECT_FORTRAN \

    -mP1OPT_source_file_name=triangle_cant_g.f90 \

    -mP2OPT_symtab_type_copy=true \

    triangle_cant_g.f90

 

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld  \

    -dynamic \

    -arch \

    x86_64 \

    -weak_reference_mismatches \

    non-weak \

    -macosx_version_min \

    10.9.5 \

    -no_compact_unwind \

    -o \

    cant \

    /usr/bin/ifort-14.0-base/compiler/lib/for_main.o \

    -L/opt/intel/composer_xe_2013_sp1.3.168/compiler/lib \

    -L/opt/intel/composer_xe_2013_sp1.3.166/ipp/../compiler/lib \

    -L/opt/intel/composer_xe_2013_sp1.3.166/ipp/lib \

    -L/opt/intel/composer_xe_2013_sp1.3.166/compiler/lib \

    -L/opt/intel/composer_xe_2013_sp1.3.166/mkl/lib \

    -L/opt/intel/composer_xe_2013_sp1.3.168/tbb/lib \

    -L/opt/intel/composer_xe_2013_sp1.3.168/compiler/lib \

    -L/opt/intel/composer_xe_2013_sp1.3.166/ipp/../compiler/lib \

    -L/opt/intel/composer_xe_2013_sp1.3.166/ipp/lib \

    -L/opt/intel/composer_xe_2013_sp1.3.166/compiler/lib \

    -L/opt/intel/composer_xe_2013_sp1.3.166/mkl/lib \

    -L/opt/intel/composer_xe_2013_sp1.3.168/tbb/lib \

    -L/usr/bin/ifort-14.0-base/compiler/lib \

    -L/usr/lib \

    /var/folders/l1/xy86_dd92x3d3sb460g5czpr0000gn/T/ifortJBHJbk.o \

    /usr/bin/ifort-14.0-base/compiler/lib/libifport.a \

    /usr/bin/ifort-14.0-base/compiler/lib/libifcore.a \

    /usr/bin/ifort-14.0-base/compiler/lib/libimf.a \

    /usr/bin/ifort-14.0-base/compiler/lib/libsvml.a \

    /usr/bin/ifort-14.0-base/compiler/lib/libipgo.a \

    -lSystem \

    /usr/bin/ifort-14.0-base/compiler/lib/libirc.a \

    -lpthread \

    /usr/bin/ifort-14.0-base/compiler/lib/libsvml.a \

    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0/lib/darwin/libclang_rt.osx.a

 

rm /var/folders/l1/xy86_dd92x3d3sb460g5czpr0000gn/T/ifortxcrunz5o57Z

rm /var/folders/l1/xy86_dd92x3d3sb460g5czpr0000gn/T/ifortxcrunrHshSA

rm /var/folders/l1/xy86_dd92x3d3sb460g5czpr0000gn/T/ifortxcrund3HTIx

rm /var/folders/l1/xy86_dd92x3d3sb460g5czpr0000gn/T/ifortxcrun0Xgmft

rm /var/folders/l1/xy86_dd92x3d3sb460g5czpr0000gn/T/ifortgnudirsjF3HOU

rm /var/folders/l1/xy86_dd92x3d3sb460g5czpr0000gn/T/ifortxcrunOhg1Dj

rm /var/folders/l1/xy86_dd92x3d3sb460g5czpr0000gn/T/ifortclangdashv4TEuo6

rm /var/folders/l1/xy86_dd92x3d3sb460g5czpr0000gn/T/ifortJBHJbk.o

rm /var/folders/l1/xy86_dd92x3d3sb460g5czpr0000gn/T/ifortosGts2iH

rm /var/folders/l1/xy86_dd92x3d3sb460g5czpr0000gn/T/iforttosiBLayz

rm /var/folders/l1/xy86_dd92x3d3sb460g5czpr0000gn/T/ifortTaZ0JUas_.s

rm /var/folders/l1/xy86_dd92x3d3sb460g5czpr0000gn/T/iforttempfile446ru3

rm /var/folders/l1/xy86_dd92x3d3sb460g5czpr0000gn/T/ifortargj95LLk

rm /var/folders/l1/xy86_dd92x3d3sb460g5czpr0000gn/T/ifortJBHJbk.o

Peters-MacBook-Pro:tri_fem_140925 Peter$ ifort -assume realloc-lhs  triangle_cant_g.f90 -o cant

ld: warning: directory not found for option '-L/opt/intel/composer_xe_2013_sp1.3.168/compiler/lib'

ld: warning: directory not found for option '-L/opt/intel/composer_xe_2013_sp1.3.168/compiler/lib'


Although it now appears to compile, although with these new warnings I did not get previously..

0 Kudos
Ron_Green
Moderator
1,026 Views

well the above is helpful but note that -# shows all the steps the compiler WOULD DO, but it doesn't actually compile anything.

BUT I think I see what's happening.  So you installed Xcode 6.0.1 the other day.  Since then, have you actually started the Xcode application?  From your Applications folder start XCode.  There is a new step after installing 6.0.1 that requires you to accept a license agreement before it finishing downloading and installing all the command line tools.

So run the Xcode app, accept the license agreement, let it install things, then try the compile again without the -#.  

Also, bring up Xcode, go to menu Preferences.  When the Preferences window comes up, go to the Downloads icon/tab.  It should look like this:

xc601preferences.jpg

0 Kudos
Peter_M_1
Beginner
1,026 Views

Ah ha interesting!
I hadn't actually opened Xcode, since I never use it. It started to work again after I fell back to gfortran to do some work. When I attempted to compile with gfortran it told me to run it as sudo, and accept the new Xcode user agreement.

The next time I tried to use ifort, it worked, with the exception of this message

 

ld: warning: directory not found for option '-L/opt/intel/composer_xe_2013_sp1.3.168/compiler/lib'

ld: warning: directory not found for option '-L/opt/intel/composer_xe_2013_sp1.3.168/compiler/lib'




But it compiles and seems to run ok, so I can live with this just now, thanks a lot!

Peter

 

 

0 Kudos
Ron_Green
Moderator
1,026 Views

As Steve said, I think you need to re-install the latest IFORT compiler so that it'll look for the libraries from the directories of the new compiler and not your old one.

ron

0 Kudos
Reply