Bug #17621 ICC 9.0 produces bad code for ndb, when using "-ip"
Submitted: 21 Feb 2006 16:14 Modified: 16 Mar 2009 11:09
Reporter: Jonas Oreland Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.1.8 OS:Linux (Linux 2.4.21-37.EL #1 SMP ia64)
Assigned to: CPU Architecture:Any
Tags: icc

[21 Feb 2006 16:14] Jonas Oreland
Description:
ndb_alter_table fails due to invalid code in 
  NdbDictionaryImpl.cpp::3811 : int NdbDictionaryImpl::listIndexes

[mysqldev@rx2620b mysql-5.1.8-beta]$ icc -V
Intel(R) C Itanium(R) Compiler for Itanium(R)-based applications
Version 9.0    Build 20050811 Package ID: l_cc_c_9.0.025
Copyright (C) 1985-2005 Intel Corporation.  All rights reserved.

[mysqldev@rx2620b mysql-5.1.8-beta]$ uname -a
Linux rx2620b.mysql.com 2.4.21-37.EL #1 SMP Wed Sep 7 13:24:42 EDT 2005 ia64 ia64 ia64 GNU/Linux

configure '--prefix=/usr/local/mysql' '--localstatedir=/usr/local/mysql/data' '--libexecdir=/usr/local/mysql/bin' '--with-co
mment=Official MySQL binary' '--with-extra-charsets=complex' '--with-server-suffix=' '--enable-thread-safe-client' '--enable-local-
infile' '--disable-shared' '--with-zlib-dir=bundled' '--with-big-tables' '--with-readline' '--with-archive-storage-engine' '--with-
blackhole-storage-engine' '--with-ndbcluster' '--with-csv-storage-engine' '--with-example-storage-engine' '--with-federated-storage
-engine' '--with-innodb' 'CC=icc' 'CFLAGS= -unroll2 -ip -mp -restrict' 'CXXFLAGS= -unroll2 -ip -mp -restrict' 'CXX=icpc' 'LDFLAGS=-
static-libcxa -i-static' CFLAGS=' -DDBUG_OFF  -unroll2 -ip -mp -restrict  ' CXXFLAGS=' -DDBUG_OFF  -unroll2 -ip -mp -restrict   -fn
o-implicit-templates -fno-exceptions -fno-rtti'

How to repeat:
see above
removing "-ip" fixed problem in ndb_alter_table
  (have not run rest of tests)

Suggested fix:
Fix compiler bug or dont use -ip
[21 Feb 2006 16:15] Jonas Oreland
kent is lead
[13 Mar 2009 9:13] Jonas Oreland
bocklin should not be lead for a "verified" bug in ICC
history: kent told me to report the bug in the first place,
i'm most happy to close it
[16 Mar 2009 11:09] Daniel Fischer
Not a bug in the MySQL Server.