Go Back   DaemonForums > NetBSD > NetBSD Package System (pkgsrc)

NetBSD Package System (pkgsrc) Installation and upgrading of packages on NetBSD.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th June 2008
JMJ_coder JMJ_coder is offline
VPN Cryptographer
Join Date: May 2008
Posts: 464
Default pkgsrc build time excessive!


Building from source, pkgsrc is taking an extremely long time to compile. To be certain, I haven't yet compiled outside of pkgsrc - so I don't know if it is just plain slow compiling. It is taking probably 10x longer than I expect it to compile. For instance:

Checking for cc .... (wait two seconds) yes
Checking for whatever ... (wait three seconds) yes
Checking for this ... (wait two seconds) yes

Instead of having all this in about two seconds:

Checking for cc ... yes
Checking for whatever ... yes
Checking for this ... yes
Checking for that ... no
Checking for whoknows ... yes
Checking for whatnot ... yes
Checking for theotherthing ... yes
Checking for idontknow ... no

You get the point. Also, when compiling, it takes upwards of several minutes for a page of hieroglyphics to scroll across the screen instead of several screens of such every second or two (I am speaking of my experience of compiling on Linux, where it is that fast).

I only have my processor going 50% - AMD dual core with GENERIC (can't get GENERIC.MP to boot reliably) - but still, this is ridiculous. It took over 4 hours to compile the korn shell!!!
And the WORD was made flesh, and dwelt among us. (John 1:14)
Reply With Quote
  #2   (View Single Post)  
Old 7th June 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
Join Date: May 2008
Location: USofA
Posts: 1,547

compile time various both on hardware and task, e.g. my P3 compiles slower then my PD but a hard target still takes longer then a simple program to compile.

When compiling from source, the commands you see echo'd out are generated through programs outputs and through commands in the Makefile being run. Not the actual progress of things happening.
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #3   (View Single Post)  
Old 7th June 2008
JMJ_coder JMJ_coder is offline
VPN Cryptographer
Join Date: May 2008
Posts: 464


I set up a new NetBSD partition (actually recycled a FreeBSD partition I haven't used in over a year) and installed the GENERIC.MP on it. After waiting to get the machine to boot (I get it to boot > 25% of the time with that kernel) I tried compiling both from source and through pkgsrc. The difference is telling!! It is as fast compiling with the multiprocessor kernel as with my usual Linux (Slackware) experience (actually faster!).

Example: With GENERIC kernel, tcsh takes the better part of an hour to compile through pkgsrc. With GENERIC.MP kernel, that same compilation takes less than 2 minutes! I am not kidding!!!

My task now is to try and get the MP kernel more reliable - maybe I'll try and compile my own kernel. This is food for another thread in a different sub-forum here, though. See this thread.
And the WORD was made flesh, and dwelt among us. (John 1:14)

Last edited by JMJ_coder; 7th June 2008 at 08:16 PM.
Reply With Quote
  #4   (View Single Post)  
Old 18th June 2008
Bitweiler Bitweiler is offline
Real Name: Patrick
New User
Join Date: Jun 2008
Location: St. Louis, MO
Posts: 7

Have you tried adding MAKE_JOBS=2
to your "/etc/mk.conf " ?

This always help me speed things up

Last edited by Bitweiler; 20th June 2008 at 03:22 AM. Reason: error correction
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pkgsrc pkg_add problems not connecting Mr-Biscuit NetBSD Package System (pkgsrc) 30 14th June 2009 11:28 AM
jdk 1.6 build error. bsdnewbie999 OpenBSD General 19 3rd January 2009 02:51 PM
pkgsrc on OpenBSD Oko OpenBSD Packages and Ports 3 22nd December 2008 06:51 PM
In search of: NetBSD and pkgsrc maintainer for open source projects mdh NetBSD Package System (pkgsrc) 0 16th October 2008 12:42 AM
NetBSD 4.0 upgrade and pkgsrc fenrisW0lf NetBSD Installation and Upgrading 3 19th June 2008 09:39 PM

All times are GMT. The time now is 12:25 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick