Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

Compiler error on OS X

Moshe_R_
Beginner
456 Views

When compiling with icpc, regardless of which code, I get

icpc: error #10401: error running 'xcrun -find ld'

Any idea on how this can be fixed?

0 Kudos
3 Replies
Light_Intel
Moderator
456 Views

Try to reinstall xcode (xrun is provided by xcode). This may solve your issue. Keep me posted.

Regards,

Noga

0 Kudos
Moshe_R_
Beginner
456 Views

I found out what the problem is: Macports installs libraries in opt/local/lib. Including this in DYLD_LIBRARY_PATH interfered with system files. I removed it then and instead used something called DYLD_FALLBACK_LIBRARY_PATH I found on the internet, things are now working. Since unix is black magic passed as oral tradition from one generation to the next, there might well be a better hack out there.

0 Kudos
Light_Intel
Moderator
456 Views

Thank you for spreading the magic.

0 Kudos
Reply