Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* RE: Mysql compiler under Redhat 5.1
@ 1998-07-08  3:51 WaiSun Chia
  0 siblings, 0 replies; 2+ messages in thread
From: WaiSun Chia @ 1998-07-08  3:51 UTC (permalink / raw)
  To: 'axp-list@redhat.com'

Please RTFM!
From the INSTALL-SOURCE file:
   * If you get errors compiling sql_yacc.yy errors like:

     `Internal compiler error: program cc1plus got fatal signal 11' or
     `Out of virtual memory' you can try the configure switch:
     `--with-low-memory'.  This adds `-fno-inline' to the compile line
     if you are using gcc and -O0 if you are using something else. The
     problem is that gcc requires about 180M to compile sql_yacc.cc
     with inline functions.

GCC/EGCS really need that much virtual memory! I have 400MB swap and it
still puked!

On axp-list@redhat.com, jhohertz@golden.net wrote:
<SNIP>
> I'm thinking it *HAS* to be a problem with egcs as this worked just
> fine under Redhat 5.0 (and thus gcc)
<SNIP>


^ permalink raw reply	[flat|nested] 2+ messages in thread
* Mysql compiler under Redhat 5.1
@ 1998-07-07 20:34 jhohertz
  0 siblings, 0 replies; 2+ messages in thread
From: jhohertz @ 1998-07-07 20:34 UTC (permalink / raw)
  To: axp-list

Trying to compile mysl under Redhat 5.1 (and thus under egcs) and I get:

gcc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local/mysql\"" -DDATADIR="\"/usr/local/mysql/var\"" -DSHAREDIR="\"/usr/local/mysql/share/mysql\"" -DHAVE_CONFIG_H -I./../include -I./../regex -I. -I../include -I.. -I.  -O -O3 -Dalpha_linux_port -fno-implicit-templates -DDBUG_OFF  -c sql_yacc.cc
/my/gnu/lib/bison/bison.simple: In function `int yyparse()':
/my/gnu/lib/bison/bison.simple:692: virtual memory exhausted
make[2]: *** [sql_yacc.o] Error 1
make[2]: Leaving directory `/usr/local/apache/sources/mysql-3.21.32a/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/apache/sources/mysql-3.21.32a'
make: *** [all-recursive-am] Error 2

I'm thinking it *HAS* to be a problem with egcs as this worked just
fine under Redhat 5.0 (and thus gcc)

I get the same results whether I use the egcs 1.0.2 from the 5.1 distro
or egcs 1.0.3a from ftp://ftp.redhat.com/pub/contrib/manhattan/alpha.

Haven't had a chance to try it under 5.1 for i386 to compare yet.

FYI: the file it is puking on is a 300k c++ source, and I have 300+Megs
Real+Swap available. from top, it shows it steady at 

Anyone with similar experiences?

Joe


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-07-08  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-08  3:51 Mysql compiler under Redhat 5.1 WaiSun Chia
  -- strict thread matches above, loose matches on Subject: below --
1998-07-07 20:34 jhohertz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox