I have a file that could be successfully compiled with Xcode native compiler. My attempt to switch project to the ICC fails, because of all files complied in the following way:
CompileICC /Users/misha/Library/Developer/Xcode/DerivedData/system-gikqgxovhcwspiekxsybjzxtxlrn/Build/Intermediates/dcs.build/Debug/libdcsQt.build/Objects-normal-asan/x86_64/controls.o gui/qt/controls.cpp
cd /Users/misha/SharedW/svn/soac/trunk/common/pc/dcs
/usr/local/bin/icc-16.0 -x c++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.11 -g -O0 -w1 -fno-omit-frame-pointer -D_LIBRARY_ -D_OS_MACOSX_ -DDEBUG=1 -D_GUI_QT_ -DQT_GUI_LIB -DQT_CORE_LIB -DQT_WIDGETS_LIB -DQT_SHARED -stdlib=libc++ -fvisibility=default -fpascal-strings -I/Users/misha/Library/Developer/Xcode/DerivedData/system-gikqgxovhcwspiekxsybjzxtxlrn/Build/Intermediates/dcs.build/Debug/libdcsQt.build/libdcs-txt.hmap -F/Users/misha/Library/Developer/Xcode/DerivedData/system-gikqgxovhcwspiekxsybjzxtxlrn/Build/Products/Debug -F/Developer/Qt5/clang_64/lib -F/Library/Frameworks -I/Users/misha/Library/Developer/Xcode/DerivedData/system-gikqgxovhcwspiekxsybjzxtxlrn/Build/Products/Debug/include -I/opt/boost/include -I/opt/BDB/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include -Icore -I/Users/misha/SharedW/svn/soac/trunk/common/pc/dcs -I/Users/misha/SharedW/svn/soac/trunk/common/pc/dcs/.. -I/usr/local/include -I/System/Library/Frameworks/CarbonCore.framework/Headers -I/Developer/Qt5/clang_64/lib/QtCore.framework/Versions/5/Headers -I/Developer/Qt5/clang_64/lib/QtGui.framework/Versions/5/Headers -I/Developer/Qt5/clang_64/lib/QtWidgets.framework/Versions/5/Headers -I/Developer/Qt5/clang_64/mkspecs/macx-xcode -std=c++14 -pipe -pipe -fvisibility=hidden -c /Users/misha/SharedW/svn/soac/trunk/common/pc/dcs/gui/qt/controls.cpp -o /Users/misha/Library/Developer/Xcode/DerivedData/system-gikqgxovhcwspiekxsybjzxtxlrn/Build/Intermediates/dcs.build/Debug/libdcsQt.build/Objects-normal-asan/x86_64/controls.o -MMD -MT dependencies -MF /Users/misha/Library/Developer/Xcode/DerivedData/system-gikqgxovhcwspiekxsybjzxtxlrn/Build/Intermediates/dcs.build/Debug/libdcsQt.build/Objects-normal-asan/x86_64/controls.d
icc-16_0: command line warning #10121: overriding '-fvisibility=default' with '-fvisibility=hidden'
NOTE: Use of this header (bool_trait_def.hpp) is deprecated
NOTE: Use of this header (template_arity_spec.hpp) is deprecated
NOTE: Use of this header (template_arity_spec.hpp) is deprecated
Command /usr/local/bin/icc-16.0 failed with exit code 2
The same command in console successfully compiles file, but under Xcode I always have "Command /usr/local/bin/icc-16.0 failed with exit code 2" What does it mean?