List:General Discussion« Previous MessageNext Message »
From:Dan Nelson Date:September 20 1999 10:17pm
Subject:Re: Compile hang with mysql-3.22.22/OpenBSD-2.5/gcc version 2.95.1 19990816 (release)
View as plain text  
In the last episode (Sep 20), Jesse Trucks said:
> Oddly enough this identical problem occurs with gcc 2.95 as well.
> 
> Everything runs smoothly until the system appears to hang on:
> 
> c++ -DMYSQL_SERVER  -DDEFAULT_MYSQL_HOME="\"/usr/local\"" 
> -DDATADIR="\"/var/db/mysql\""  -DSHAREDIR="\"/usr/local/share/mysql\"" 
> -DHAVE_CONFIG_H -I./../include  -I./../regex  -I. -I../include -I.. -I. 
> -O2    -pthread  -fno-inline -DDBUG_OFF -fno-inline -c sql_yacc.cc
> 
> I have waited as long as 7 hours (the system was left alone to
> compile, much to my chagrin to discover my server was useless while
> it sat there). This system is a PII-350 running:

See the manual, under the "Problems compiling?" section.  The problem
is basically that gcc can't compile large switch statements efficiently
and ends up eating a couple hundred meg of RAM for that file.

solution: rerun configure and add the --with-low-memory option.

-- 
	Dan Nelson
	dnelson@stripped
Thread
Compile hang with mysql-3.22.22/OpenBSD-2.5/gcc version 2.95.1 19990816 (release)Jesse Trucks21 Sep
  • Re: Compile hang with mysql-3.22.22/OpenBSD-2.5/gcc version 2.95.1 19990816 (release)Dan Nelson21 Sep
    • Re: Compile hang with mysql-3.22.22/OpenBSD-2.5/gcc version 2.95.119990816 (release)Jesse Trucks21 Sep
      • Re: Compile hang with mysql-3.22.22/OpenBSD-2.5/gcc version 2.95.119990816 (release)Chris Cappuccio21 Sep
  • Re: Compile hang with mysql-3.22.22/OpenBSD-2.5/gcc version 2.95.119990816 (release)Chris Cappuccio21 Sep
    • Re: Compile hang with mysql-3.22.22/OpenBSD-2.5/gcc version 2.95.119990816 (release)Vivek Khera21 Sep
      • Re: Compile hang with mysql-3.22.22/OpenBSD-2.5/gcc version2.95.1 19990816 (release)Dan O'Reilly21 Sep
  • Compile hang with mysql-3.22.22/OpenBSD-2.5/gcc version 2.95.1 19990816 (release)Michael Widenius22 Sep
  • Re: Compile hang with mysql-3.22.22/OpenBSD-2.5/gcc version 2.95.1 19990816 (release)Jesse Trucks29 Sep
    • Re: Compile hang with mysql-3.22.22/OpenBSD-2.5/gcc version 2.95.1 19990816 (release)Michael Widenius30 Sep