Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Mar 2010 14:46:54 -0500
From:      Greg Larkin <glarkin@FreeBSD.org>
To:        lconrad@Go2France.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: sorry,	email program ate my subject: Can't compile MySQL 5.0 server on 7.2
Message-ID:  <4B8C19AE.9050108@FreeBSD.org>
In-Reply-To: <201003012018.AA147652888@mail.Go2France.com>
References:  <201003012018.AA147652888@mail.Go2France.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Len Conrad wrote:
> ---------- Original Message ----------------------------------
> From: "Len Conrad" <lconrad@Go2France.com>
> Reply-To: lconrad@Go2France.com
> Date:  Mon,  1 Mar 2010 19:04:58 +0100
> 
>> FreeBSD 7.2 as ESXi virtual machine
>>
>> after portsnap fetch update
>>
>> cd /usr/ports/databases/mysql50-server
>>
>> make configure
>>
>> make
>>
>> blah blah
>>
>> mv -f .deps/ha_example.Tpo .deps/ha_example.Po
>> c++ -DEMBEDDED_LIBRARY -DMYSQL_SERVER  -DDEFAULT_MYSQL_HOME="\"/usr/local\""  -DMYSQL_DATADIR="\"/var/db/mysql\""  -DSHAREDIR="\"/usr/local/share/mysql\"" -I. -I../include -I../bdb/build_unix  -I../innobase/include -I../innobase/include   -I../include -I../include  -I../sql -I../sql  -I../sql/examples  -I../regex       -DDBUG_OFF -O2 -fno-strict-aliasing -pipe -fPIC -O2 -fno-strict-aliasing -pipe  -fPIC -felide-constructors -fno-rtti -fno-exceptions   -fno-implicit-templates -fno-exceptions -fno-rtti -DMYSQLD_NET_RETRY_COUNT=1000000 -MT ha_tina.o -MD -MP -MF .deps/ha_tina.Tpo -c -o ha_tina.o ha_tina.cc
>> mv -f .deps/ha_tina.Tpo .deps/ha_tina.Po
>> c++ -DEMBEDDED_LIBRARY -DMYSQL_SERVER  -DDEFAULT_MYSQL_HOME="\"/usr/local\""  -DMYSQL_DATADIR="\"/var/db/mysql\""  -DSHAREDIR="\"/usr/local/share/mysql\"" -I. -I../include -I../bdb/build_unix  -I../innobase/include -I../innobase/include   -I../include -I../include  -I../sql -I../sql  -I../sql/examples  -I../regex       -DDBUG_OFF -O2 -fno-strict-aliasing -pipe -fPIC -O2 -fno-strict-aliasing -pipe  -fPIC -felide-constructors -fno-rtti -fno-exceptions   -fno-implicit-templates -fno-exceptions -fno-rtti -DMYSQLD_NET_RETRY_COUNT=1000000 -MT sql_yacc.o -MD -MP -MF .deps/sql_yacc.Tpo -c -o sql_yacc.o sql_yacc.cc
>> c++: Internal error: Killed: 9 (program cc1plus)
>> Please submit a full bug report.
>> See <URL:http://gcc.gnu.org/bugs.html>; for instructions.
>> *** Error code 1
>> 1 error
>> *** Error code 1
>> 1 error
>> *** Error code 1
>> 1 error
>> *** Error code 2
>> 1 error
>> *** Error code 1
>>
>> Stop in /usr/ports/databases/mysql50-server.
>>
>>
>> Thanks
>> Len
>>

Hi Len,

How much memory have you allocated to the VM?  This error indicates that
the compiler didn't have enough memory to compile that source file.
Also, check the output of this command:

sysctl -a | grep ^kern.maxd

I have a VM with 1.5 GB allocated to it, and I've added the following
line to /boot/loader.conf.local:

kern.maxdsize=1363148800

That gave me enough breathing room to use gcc (gcj, actually) to compile
some complex Java source files.

Hope that helps,
Greg
- --
Greg Larkin

http://www.FreeBSD.org/           - The Power To Serve
http://www.sourcehosting.net/     - Ready. Set. Code.
http://twitter.com/sourcehosting/ - Follow me, follow you
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFLjBmu0sRouByUApARAi0vAJ96IfepBA5qhY0Tpbj7Mqu+ZMCFFACeOhKR
Ov0ynzi/gBt4HkF8qNoebUo=
=5q+5
-----END PGP SIGNATURE-----




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B8C19AE.9050108>