Bug #13936 sql_yacc.cc compilation warning with ICC on IA64 "optimization disabled"
Submitted: 11 Oct 2005 19:30 Modified: 16 Mar 2009 9:43
Reporter: Lenz Grimmer Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:4.1,5.1 OS:Linux (Linux/IA64)
Assigned to: Kent Boortz CPU Architecture:Any
Tags: icc

[11 Oct 2005 19:30] Lenz Grimmer
Description:
Compiling MySQL (4.1 or 5.1) with Intel icc 9.0 throws the following warning when compiling sql_yacc.cc:

Note: The following compile may take a long time.
If it fails, re-run configure with --with-low-memory
icpc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local/mysql\"" -DDATADIR="\"/usr/local/mysql/data\" " -DSHAREDIR="\"/usr/local/mysql/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I../innobase/include -I../include -I../include -I../regex -I.     -O3 -DDBUG_OFF -O1 -ip   -fno-implicit-templates -fno-exceptions -fno-rtti  -c sql_yacc.cc
icpc: Command line warning: overriding '-O3' with '-O1'
sql_yacc.cc(12098): warning #1357: optimization disabled due to excessive resource requirements; contact Intel Premier Support for assistance

How to repeat:
Take a 4.1 or 5.1 source tarball and configure/compile it with the following options:

CC=icc CFLAGS="-O1 -ip" CXX=icpc CXXFLAGS="-O1 -ip"  ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --libexecdir=/usr/local/mysql/bin --with-extra-charsets=complex --enable-thread-safe-client --enable-local-infile  --disable-shared --with-readline --with-embedded-server --with-archive-storage-engine --with-innodb

Observe the above warning during the compilation of sql_yacc.cc
[30 Apr 2007 13:53] Magnus BlÄudd
Just checked the build logs from 5.0.40 and it's still there.

12006: icpc -static-libgcc -static-libcxa -i-static -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local/mysql\"" -DDATADIR="\"/usr/local/mysql/data\"" -DSHAREDIR="\"/usr/local/mysql/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I../zlib -I../include -I../include -I../regex -I.     -DDBUG_OFF -O3 -unroll2 -ip -mp -restrict -no-ftz   -fno-implicit-templates -fno-exceptions -fno-rtti  -c sql_yacc.cc
12007: sql_yacc.cc(13991): warning #592: variable "MYSQLlval" is used before its value is set
12008:     yyvsp[0] = yylval;
12009:                ^
12010: 
12011: sql_yacc.cc(13924): warning #1357: optimization disabled due to excessive resource requirements; contact Intel Premier Support for assistance
12012: 
12013: sql_yacc.cc(13924): warning #1357: optimization disabled due to excessive resource requirements; contact Intel Premier Support for assistance
12014:
[16 Mar 2009 9:43] Daniel Fischer
This is not a bug in MySQL.