databases/mysql50-server switches compiler during build

Björn König bkoenig at cs.tu-berlin.de
Mon Jun 5 23:54:12 PDT 2006


[LoN]Kamikaze schrieb:
> The mysql50-server port suddenly switches the compiler while building. I've got no idea what might cause this and how to solve it apart from deinstalling gcc41 - which would break everything built with it.
> 
> This is the end of the output.
> ---------------------------------------------------------------------------------------
> make  all-recursive
> Making all in share
> if /usr/local/bin/libtool --preserve-dup-deps --tag=CXX --mode=compile c++ -DMYSQL_SERVER  -DDEFAULT_MYSQL_HOME="\"/usr/local\""  -DDATADIR="\"/var/db/mysql\""  -DSHAREDIR="\"/usr/local/share/mysql\""  -DHAVE_CONFIG_H  -I. -I. -I.. -I../bdb/build_unix -I../innobase/include   -I../include -I../include  -I../regex -I.        -DDBUG_OFF -O2 -pipe -march=pentium-m -O2 -pipe -march=pentium-m  -felide-constructors -fno-rtti -fno-exceptions   -fno-implicit-templates -fno-exceptions -fno-rtti -DMYSQLD_NET_RETRY_COUNT=1000000 -MT udf_example.lo -MD -MP -MF ".deps/udf_example.Tpo" -c -o udf_example.lo udf_example.cc;  then mv -f ".deps/udf_example.Tpo" ".deps/udf_example.Plo"; else rm -f ".deps/udf_example.Tpo"; exit 1; fi
>  c++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=\"/usr/local\" -DDATADIR=\"/var/db/mysql\" -DSHAREDIR=\"/usr/local/share/mysql\" -DHAVE_CONFIG_H -I. -I. -I.. -I../bdb/build_unix -I../innobase/include -I../include -I../include -I../regex -I. -DDBUG_OFF -O2 -pipe -march=pentium-m -O2 -pipe -march=pentium-m -felide-constructors -fno-rtti -fno-exceptions -fno-implicit-templates -fno-exceptions -fno-rtti -DMYSQLD_NET_RETRY_COUNT=1000000 -MT udf_example.lo -MD -MP -MF .deps/udf_example.Tpo -c udf_example.cc  -fPIC -DPIC -o .libs/udf_example.o
>  c++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=\"/usr/local\" -DDATADIR=\"/var/db/mysql\" -DSHAREDIR=\"/usr/local/share/mysql\" -DHAVE_CONFIG_H -I. -I. -I.. -I../bdb/build_unix -I../innobase/include -I../include -I../include -I../regex -I. -DDBUG_OFF -O2 -pipe -march=pentium-m -O2 -pipe -march=pentium-m -felide-constructors -fno-rtti -fno-exceptions -fno-implicit-templates -fno-exceptions -fno-rtti -DMYSQLD_NET_RETRY_COUNT=1000000 -MT udf_example.lo -MD -MP -MF .deps/udf_example.Tpo -c udf_example.cc -o udf_example.o >/dev/null 2>&1
> /usr/local/bin/libtool --preserve-dup-deps --tag=CXX --mode=link c++   -DDBUG_OFF -O2 -pipe -march=pentium-m -O2 -pipe -march=pentium-m  -felide-constructors -fno-rtti -fno-exceptions   -fno-implicit-templates -fno-exceptions -fno-rtti -DMYSQLD_NET_RETRY_COUNT=1000000   -o udf_example.la  -module -rpath /usr/local/lib/mysql udf_example.lo  -pthread -lcrypt -lm  -pthread
> g++41 -shared -nostdlib /usr/lib/crti.o /usr/local/lib/gcc/i386-portbld-freebsd6.1/4.1.1/gcc/i386-portbld-freebsd6.1/4.1.1/crtbeginS.o  .libs/udf_example.o  -pthread -lcrypt -lm -pthread -L/usr/local/lib/gcc/i386-portbld-freebsd6.1/4.1.1/gcc/i386-portbld-freebsd6.1/4.1.1 -L/usr/local/lib/gcc/i386-portbld-freebsd6.1/4.1.1/gcc/i386-portbld-freebsd6.1/4.1.1/../../.. -lstdc++ -lm -lgcc_s -lgcc_s /usr/local/lib/gcc/i386-portbld-freebsd6.1/4.1.1/gcc/i386-portbld-freebsd6.1/4.1.1/crtendS.o /usr/lib/crtn.o  -march=pentium-m -march=pentium-m -pthread -pthread -pthread -pthread -pthread -pthread -Wl,-soname -Wl,udf_example.so.0 -o .libs/udf_example.so.0
> g++41: /usr/local/lib/gcc/i386-portbld-freebsd6.1/4.1.1/gcc/i386-portbld-freebsd6.1/4.1.1/crtbeginS.o: No such file or directory
> g++41: /usr/local/lib/gcc/i386-portbld-freebsd6.1/4.1.1/gcc/i386-portbld-freebsd6.1/4.1.1/crtendS.o: No such file or directory
> *** Error code 1
> 
> Stop in /mnt/vault/work/mnt/vault/ports/databases/mysql50-server/work/mysql-5.0.22/sql.
> *** Error code 1
> 
> Stop in /mnt/vault/work/mnt/vault/ports/databases/mysql50-server/work/mysql-5.0.22/sql.
> *** Error code 1
> 
> Stop in /mnt/vault/work/mnt/vault/ports/databases/mysql50-server/work/mysql-5.0.22/sql.
> *** Error code 1
> 
> Stop in /mnt/vault/work/mnt/vault/ports/databases/mysql50-server/work/mysql-5.0.22.
> *** Error code 1
> 
> Stop in /mnt/vault/work/mnt/vault/ports/databases/mysql50-server/work/mysql-5.0.22.
> *** Error code 1
> 
> Stop in /mnt/vault/ports/databases/mysql50-server.

Did you set CC and CXX in /etc/make.conf?

Björn


More information about the freebsd-ports mailing list