Bug #24779 icc intel c linking failed on all current versions
Submitted: 3 Dec 2006 16:57 Modified: 28 May 2007 20:34
Reporter: [ name withheld ] Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:5.0.41 OS:Linux (suse 10.2)
Assigned to: CPU Architecture:Any

[3 Dec 2006 16:57] [ name withheld ]
Description:
getting the same error with all 3 current versions. 4.1.22, 5.0.27 and the 5.1 beta.
suse 10.1, icc 9.1.
due to length log attached ...

How to repeat:
just build one of the 3 with icc.
[3 Dec 2006 16:57] [ name withheld ]
buildlog

Attachment: sqlbug (application/octet-stream, text), 20.29 KiB.

[4 Dec 2006 15:28] Valeriy Kravchuk
Thank you for a problem report. Please, send the ./configure command line and CFLAGS value used.
[4 Dec 2006 19:25] [ name withheld ]
i used:

configure --prefix=/usr/local/mysql

no flags beside: -O3

thanks
[28 Jan 2007 13:54] Valeriy Kravchuk
Please, try to repeat with a newer version, 5.0.33, with and without -O3 flag, and inform about the results.
[1 Mar 2007 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[14 Apr 2007 16:53] [ name withheld ]
i just used 'configure' with no cflags at all but got a LOT of errors.
attached due to its size.
[14 Apr 2007 16:53] [ name withheld ]
errors

Attachment: sqlerr (application/octet-stream, text), 27.53 KiB.

[16 Apr 2007 8:29] Sveta Smirnova
Please provide output of `bison --version`
[16 May 2007 23:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[16 May 2007 23:08] [ name withheld ]
it's bison-2.3-21 from suse 10.2. x86.
[16 May 2007 23:09] [ name withheld ]
changed to 10.2
[23 May 2007 9:41] Valeriy Kravchuk
Please, try to repeat with a newer version, 5.0.41. In case of the same problem, please, send the entire output of the configure command.
[25 May 2007 2:19] [ name withheld ]
still not working. will attach the config.log ...
[25 May 2007 2:19] [ name withheld ]
config.log

Attachment: config.log.gz (application/gzip, text), 31.72 KiB.

[28 May 2007 9:01] Kent Boortz
The icc compiler has a corresponding C++ command 'icpc',
the problem is that you do CXX=icc, when it should say
CXX=icpc.

The relation between the 'icc' command and 'icpc'
command is the same as between 'gcc' and 'g++'.
While both 'icc' and 'gcc' can compile C++ source,
the don't know about the runtime libraries needed.

For gcc you can in fact use CXX=gcc when compiling
the MySQL server sources, because work has been done
to avoid C++ constructs that adds C++ runtime library
dependencies. But this has not been done for icc, so
you need to set CXX=icpc.

To fool libtool to pass some options, we use a bit
more complex settings, this environment

CC="icc -static-libgcc -static-libcxa -i-static"
CXX="icpc -static-libgcc -static-libcxa -i-static"
CFLAGS="-O3 -unroll2 -ip -mp -restrict"
CXXFLAGS="-O3 -unroll2 -ip -mp -restrict"
export CC CFLAGS CXX CXXFLAGS

and this configuration on one line

./configure
--disable-shared
--without-embedded-server
--with-innodb
--with-archive-storage-engine
--with-blackhole-storage-engine
--with-example-storage-engine
--with-federated-storage-engine
--with-zlib-dir=bundled
--with-big-tables
--enable-assembler
--enable-local-infile
--with-pic
--with-extra-charsets=complex
--enable-thread-safe-client
--with-readline
[28 May 2007 20:34] [ name withheld ]
ah, well, easy solution. much thanks & sorry for the hassle :-)