[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: MySQL port: Virtual Memory Exhausted...



Hello,

You could try something that has been suggested to me in the past,
and that is to use bison.  I have often installed this on servers
that lacked it where builds were being problematical.
The installation of bison often solved the problem.

Regards Stephen


----------------------------------------------

"But they're marching to Bastille Day.
 La guillotine will claim her bloody prize.
 Free the dungeons of the innocent
 The king will kneel and let his kingdom
 rise."


-----Original Message-----
From: owner-misc_(_at_)_openbsd_(_dot_)_org [mailto:owner-misc_(_at_)_openbsd_(_dot_)_org]On Behalf Of
Ryan Erwin
Sent: Wednesday, November 24, 1999 2:41 PM
To: misc_(_at_)_openbsd_(_dot_)_org
Subject: MySQL port: Virtual Memory Exhausted...


I have been running trying to build MySQL all day and keep getting the
virtual memory exhausted error.  I searched the misc_(_at_)_openbsd_(_dot_)_org archive on
geocrawler and found
-> http://www.geocrawler.com/archives/3/256/1999/10/0/2743957/
which says that the solution is to turn off the compiler optomization when
compiling the file "sql_yacc.cc".  Now, my question is how?

I tried editing ports/databases/mysql/work/mysql-3.22.22/Makefile and
replacing:
-O2 to -O0
in SAVE_CFLAGS and SAVE_CXXFLAGS

but when i go back to ports/databases/mysql and run make: i get
c++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local\"" \
-DDATADIR="\"/var/db/mysql\"" -DSHAREDIR="\"/usr/local/share/mysql\"" \
-DHAVE_MYSQL_H -I./../include -I./../regex -I../include -I.. -I. -02 -pthrea
d -fno-inline -DDBUG_OFF -fno-inline -c sql_yacc.cc
/my/gnu/lib/bison/bison.simple: in function 'int yyparse()':
/my/gnu/lib/bison/bison.simple:692: virtual memory exhausted

Notice that it is still passing -O2 instead of -O0...

Note that I did a make clean before i recompiled and it still passes -O2...

Also, How can I change the flags that are passed to a single file?  I want
to pass -O2 to all files *except* sql_yacc.cc right?  But how?

Thanks in Advance





Visit your host, monkey.org