Hi,
Jeffrey Hunter wrote:
> I have successfully made the MySQL 5.0.16 client
> using gcc and a 2.4.21-32.0.1 RHEL 3 kernel. Now,
> I am to use the Intel compiler (icc) to do the
> same thing, but am encountering errors. I set the
> proper environment variables:
>
> $ export CC=icc
> $ export CXX=icc
> $ export CFLAGS="-O3 -unroll2 -ip -mp -no-gcc
> -restrict"
> $ export CXXFLAGS="-O3 -unroll2 -ip -mp -no-gcc
> -restrict"
>
> and then I configure with the following options:
>
> $ ./configure --without-server
> --prefix=/usr/local/mysql_client
> --enable-thread-safe-client --enable-l
> ocal-infile --enable-assembler --disable-shared
> --with-client-ldflags=-all-static
>
> I then run "make clean" to clean out any failed
> compiles and it runs fine.
>
> I then run just "make" and it chugs along for a
> while, but then exits with errors like:
>
>
> mkdir .libs
> icc -O3 -DDBUG_OFF -O3 -unroll2 -ip -mp -no-gcc
> -restrict -o gen_lex_hash gen_lex_hash.o
> ../myisam/libmyisam.a ../myisammrg/libmyisammrg.a
> ../heap/libheap.a ../vio/libvio.a
> ../mysys/libmysys.a ../dbug/libdbug.a
> ../regex/libregex.a ../strings/libmystrings.a -lz
> -lpthread -lcrypt -lnsl -lm -lpthread
> gen_lex_hash.o(.eh_frame+0x12): undefined
> reference to `__gxx_personality_v0'
> make[2]: *** Error 1
> make[2]: Leaving directory
> `/srcpath/5.0.16/mysql-5.0.16/sql'
> make[1]: *** Error 1
> make[1]: Leaving directory
> `/srcpath/5.0.16/mysql-5.0.16'
> make: *** Error 2
>
>
> Obviously, I'm missing a reference to __gxx_personality_v0, but where do I get that
> from? Maybe one of my other libaries is out of date?
If you are using ICC 9.0, make sure to use CXX=icpc - you need to use the C++ compiler frontend.
These are the ICC 9.0 options we use for our icc builds:
CC=icc \
CFLAGS="-O3 -unroll2 -ip -mp -restrict" \
CXX=icpc \
CXXFLAGS="-O3 -unroll2 -ip -mp -restrict" \
LDFLAGS="-static-libcxa -i-static"
Bye,
LenZ
Lenz Grimmer - MySQL Community Relations Manager -
http://de.sun.com/
Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten, DE
Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels
Vorsitz d. Aufsichtsrates: Martin Haering AG Muenchen: HRB161028
Edited 1 time(s). Last edit at 12/13/2005 01:44AM by Lenz Grimmer.