Bug #64502 -mp option si deprecated but still listed at DBUILD_CONFIG=mysql_release
Submitted: 1 Mar 2012 5:12 Modified: 16 Jan 2014 10:48
Reporter: Neil Armstrong Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.5.21 OS:Linux (CentOS 5.6)
Assigned to: CPU Architecture:Any

[1 Mar 2012 5:12] Neil Armstrong
Description:
I use cmake option:

-DBUILD_CONFIG=mysql_release \

and get in every string during configuration:

icpc: command line remark #10010: option '-mp' is deprecated and will be removed in a future release.

What is the option we need to replace -mp with?

How to repeat:
cmake \
-DCMAKE_C_COMPILER=/opt/intel/bin/icc \
-DCMAKE_CXX_COMPILER=/opt/intel/bin/icpc \
-DBUILD_CONFIG=mysql_release
[1 Mar 2012 7:46] Valeriy Kravchuk
What exact version of Intel compiler do you use? 

I do see -mp used in sources:

BUILD/compile-pentium-icc-yassl:30:extra_flags="$fast_cflags -unroll2 -ip -mp -restrict"
BUILD/compile-pentium-icc:30:extra_flags="$fast_cflags -unroll2 -ip -mp -restrict"
BUILD/build_mccge.sh:482:    C/C++ flags = -mp -restrict
BUILD/build_mccge.sh:1575:    compiler_flags="$compiler_flags -mp -restrict"

...

cmake/build_configurations/mysql_release.cmake:178:      SET(COMMON_C_FLAGS                 "-static-intel -static-libgcc -g -mp -restrict")
cmake/build_configurations/mysql_release.cmake:179:      SET(COMMON_CXX_FLAGS               "-static-intel -static-libgcc -g -mp -restrict -fno-exceptions -fno-rtti")

But I am not sure if we still support some/any versions of icc formally...
[1 Mar 2012 12:52] Neil Armstrong
I'm using the latest Intel® C++ Composer XE 2011 for Linux 64-bit 2011.8.273

As I right understand the option "-DBUILD_CONFIG=mysql_release" has been intended to give all the flags mysql-dev team using? Why you're using the deprecated flag then? )
[1 Mar 2012 13:02] Valeriy Kravchuk
Why do you think that Intel compiler is still used for building official binaries?

Anyway, http://software.intel.com/sites/products/documentation/hpc/compilerpro/en-us/cpp/lin/main_... clearly lists -mp as deprecated, so we have a valid problem report here for sure.
[1 Mar 2012 16:55] Neil Armstrong
Yes, it's better to replace these strings in cmake/build_configurations/mysql_release.cmake to eliminate -mp with getting some appropriate flag. I've read about the "-fp-model precise (fast[=1|2], strict, source, double, extended)" frag. Is it safe to use it? And what is the option than?
[16 Jan 2014 10:48] Ståle Deraas
Posted by developer:
 
ICC compiler not supported any more.