Current in loop while compiling MySQL Server 3.22.27

1999-12-05 Thread Ron Klinkien



Hi,

After cvsupping and a make kernel/world I decided 
to update my pkg's, all goes well until a make in 
/usr/ports/database/mysql322-server.

It hangs half way the compile on...
--- cut ---
I./../regex 
-I. -I../include -I.. -I. 
-D_LARGEFILE_SOURCE-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 
-DDBUG_OFF -O -pipe -fno-implicit-templates -c 
sql_parse.ccc++ 
-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. 
-D_LARGEFILE_SOURCE-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 
-DDBUG_OFF -O -pipe -fno-implicit-templates -c 
sql_yacc.cc
--- cut ---

top showed:
--- cut ---
last pid: 29984; load averages: 
0.93, 0.88, 0.65 up 6+19:45:29 
16:55:0359 processes: 2 running, 57 sleepingCPU states: 95.7% 
user, 0.0% nice, 2.4% system, 0.0% interrupt, 1.9% 
idleMem: 85M Active, 5384K Inact, 29M Wired, 3880K Cache, 11M Buf, 680K 
FreeSwap: 256M Total, 105M Used, 151M Free, 40% Inuse, 80K 
In PID USERNAME PRI NICE SIZE RES 
STATE TIME WCPU CPU 
COMMAND29974 root 59 0 
156M 84064K RUN 4:21 92.63% 92.63% 
cc1plus29976 root 29 0 
1928K 964K RUN 0:02 2.76% 
2.59% top 189 root 2 
0 2824K 576K select 0:18 0.00% 0.00% 
apache 223 root 2 
0 1608K 436K select 0:07 0.00% 0.00% 
nmbd 180 root 2 
0 904K 308K select 0:06 0.00% 
0.00% master 183 postfix 2 0 
936K 424K select 0:04 0.00% 0.00% 
qmgr 77 root 2 
0 848K 324K select 0:03 0.00% 
0.00% syslogd 102 root 10 
0 888K 284K nanslp 0:03 0.00% 
0.00% cron74322 root 2 
0 1384K 284K select 0:01 0.00% 0.00% 
telnetd 100 root 2 
0 928K 284K select 0:01 0.00% 
0.00% inetd 215 mysql 2 0 
11888K 124K select 0:00 0.00% 0.00% 
mysqld 82 daemon 2 
0 868K 196K select 0:00 0.00% 
0.00% portmap 105 root 
2 0 860K 200K select 0:00 
0.00% 0.00% lpd 221 root 
2 0 2000K 196K select 0:00 
0.00% 0.00% smbd29837 root 
10 0 1264K 324K wait 
0:00 0.00% 0.00% make26273 root 
10 0 1104K 324K wait 
0:00 0.00% 0.00% make20572 root 
10 0 1100K 324K wait 
0:00 0.00% 0.00% make
--- cut ---

any idea what is wrong?

Btw after the screencapture's above  cc1plus kept 
eating memory and cpu cycles ... but i didn't let it finish...

zappa# uname -aFreeBSD zappa.demon.nl 
4.0-CURRENT FreeBSD 4.0-CURRENT #56: Sun Nov 28 16:50:176

Regards,
Ron.




Re: Current in loop while compiling MySQL Server 3.22.27

1999-12-05 Thread Dan Nelson

In the last episode (Dec 05), Ron Klinkien said:
 Hi,
 
 After cvsupping and a make kernel/world I decided to update my pkg's,
 all goes well until a make in /usr/ports/database/mysql322-server.
 
 It hangs half way the compile on...
 --- cut ---
 c++ -DMYSQL_SERVER  -DDEFAULT_MYSQL_HOME="\"/usr/local\""  -
 DDATADIR="\"/var/db/mysql\""-DSHAREDIR="\"/usr/local/share/m
 ysql\"" -DHAVE_CONFIG_H -I./../include -
 I./../regex -I. -I../include -I.. -I.-D_LARGEFILE_SOURCE
  -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -DDBUG_OFF  -O -pipe  -fno-implic
 it-templates  -c sql_yacc.cc
 --- cut ---

sql_yacc.cc is the parser for all of mysqld, and is a 400K c++ file. 
It just takes a LONG time to compile.
 
 top showed:
  
   PID USERNAME PRI NICE  SIZERES STATETIME   WCPUCPU COMMAND
 29974 root  59   0   156M 84064K RUN  4:21 92.63% 92.63% cc1plus
 
 any idea what is wrong?

nothing's wrong; you just need to let it finish :)  Add
"--with-low-memory" to the CONFIGURE_ARGS line in the port Makefile if
you run out of swap during the compile.

-- 
Dan Nelson
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message