Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Comunicados
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.

Warnings when linking executables

Alexander_C_1
Principiante
990 Visualizações

I recently updated the compilers from 2015 to 2017 on my Mac Pro (running El Capitan), and now whenever I compile anything (Fortran or C), during the linking step I get the following errors:

ld: warning: directory not found for option '-L/opt/intel/composer_xe_2015.2.132/compiler/lib'
ld: warning: directory not found for option '-L/opt/intel/composer_xe_2015.2.132/mkl/lib'
ld: warning: directory not found for option '-L/opt/intel/composer_xe_2015.3.187/ipp/../compiler/lib'
ld: warning: directory not found for option '-L/opt/intel/composer_xe_2015.3.187/ipp/lib'
ld: warning: directory not found for option '-L/opt/intel/composer_xe_2015.2.132/tbb/lib'

I'm guessing that what's happening is that even though I uninstalled the 2015 compiler, somehow the linker is still looking for it. It still compiles the code, so really the warning is more of an annoyance rather than a hindrance. However, I have no idea how to get rid of the old folders from the linker path? I've tried searching around but can't find anything useful.

And it does this whether or not I do source /opt/intel/compilers_and_libraries/mac/bin/compilervars.sh intel64

Thanks,
-Alex

0 Kudos
5 Respostas
Kevin_D_Intel
Funcionário
990 Visualizações

It is not clear what leads to inclusion of those 2015 paths. Did you uninstall all the different 2015 updates that are visible in the messages? Which particular 2017 release did you install?   What Xcode do you have installed?

Alexander_C_1
Principiante
990 Visualizações

Yes, I ran the uninstall scripts in all of the old versions of the compiler prior to installing the new version. Specifically, I'm running Compose XE 2017, version 17.0.1. Xcode is version 8.1.

Kevin_D_Intel
Funcionário
990 Visualizações

I reproduced this at least one way. Please check if you have the LIBRARY_PATH environment variable set that contains those paths and if so then remove any that are no longer needed and retry the compilation.

Alexander_C_1
Principiante
990 Visualizações

Thank you, Kevin! That appears to have done the trick.

Kevin_D_Intel
Funcionário
990 Visualizações

Great, glad that was it.

Responder