Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jul 2000 15:04:05 +0200
From:      "Noor Dawod" <noor@comrax.com>
To:        "Dag-Erling Smorgrav" <des@flood.ping.uio.no>, <stable@freebsd.org>
Subject:   RE: Has anybody built MySQL lately?
Message-ID:  <PHEBIOJOBJJLIIJCOINKAEAACEAA.noor@comrax.com>
In-Reply-To: <xzp8zuq1lba.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_000E_01BFF649.937977C0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi Dag,

The compiler takes too much time compiling sql_yacc.cc in -O3 or above under
FreeBSD.
To correct, cd to root directory of MySQL (preferebly, a new clean untar),
and use the attached patch file to disable optimization for sql_yacc.cc

That's all.

Noor

-----Original Message-----
From: owner-freebsd-stable@FreeBSD.ORG
[mailto:owner-freebsd-stable@FreeBSD.ORG]On Behalf Of Dag-Erling
Smorgrav
Sent: eai uieue 25 eaie 2000 13:50
To: stable@freebsd.org
Subject: Has anybody built MySQL lately?


When I try to build MySQL on 4.1-RC2 (running on a -CURRENT kernel,
but that shouldn't make any difference), I get the following when it
reaches sql_yacc.cc:

last pid: 83002;  load averages:  1.34,  1.41,  1.50    up 6+23:58:13
13:46:42
101 processes: 1 running, 100 sleeping
CPU states:  3.3% user,  0.0% nice,  6.9% system,  0.0% interrupt, 89.8%
idle
Mem: 129M Active, 7080K Inact, 44M Wired, 5240K Cache, 29M Buf, 576K Free
Swap: 512M Total, 232M Used, 280M Free, 45% Inuse, 1788K In, 780K Out

  PID USERNAME PRI NICE  SIZE    RES STATE    TIME   WCPU    CPU COMMAND
82846 root     -22   0   215M   119M swread  20:24 31.10% 31.10% cc1plus

At about that point I have to kill it to stop the machine from
swapping itself to oblivion...

DES
--
Dag-Erling Smorgrav - des@flood.ping.uio.no


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message

------=_NextPart_000_000E_01BFF649.937977C0
Content-Type: application/octet-stream;
	name="mysql-yacc-patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="mysql-yacc-patch"

--- sql/Makefile.in.orig	Sat Jan  1 18:01:13 2000=0A=
+++ sql/Makefile.in	Wed Jan  5 20:28:17 2000=0A=
@@ -317,6 +317,10 @@=0A=
 	else :; fi=0A=
 sql_yacc.hh: sql_yacc.cc=0A=
 =0A=
+# gcc takes a lot of memory and cpu time if it compiles sql_yacc.cc =
with -O=0A=
+sql_yacc.o: sql_yacc.cc=0A=
+	$(CXXCOMPILE) -O0 -c $<=0A=
+=0A=
 =0A=
 # This directory's subdirectories are mostly independent; you can cd=0A=
 # into them and run `make' without going through this Makefile.=0A=

------=_NextPart_000_000E_01BFF649.937977C0--



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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