Skip to main content.

2002-May-31

Modified USE_PTHREAD for qt3-tools and qt3-libs to use pth before pth-syscall.

The qt3-lib build died again:

c++: Internal compiler error: program cc1plus got fatal signal 9
And my /var/log/messages said:
May 31 09:07:05 rainier /netbsd: UVM: pid 14818 (cc1plus), uid 0 killed:
out of swap
(Also in log from yesterday too!) While not compiling:
$ free
total       used       free    buffers
Mem:        126072      70956      55116          0
Swap:       197564     195480       2084
And top(1) showed:
Memory: 49M Act, 712K Inact, 344K Wired, 54M Free, 191M Swp, 2088K Swp free
And:
$ swapctl -lk
Device      1K-blocks     Used    Avail Capacity  Priority
/dev/wd0b      197568   195480     2088    99%    0
$ swapctl -sk
total: 197568k bytes allocated = 195480k used, 2088k available
And looking at top(1) again (sorted by size):
PID USERNAME PRI NICE   SIZE   RES STATE      TIME   WCPU    CPU COMMAND
4804 reed       2    0    74M   26M select     7:47  0.00%  0.00% galeon-bin
4406 reed       2    0    32M 2648K select     0:27  0.00%  0.00% links
247 reed       2    0    26M   12M select    29:59  0.05%  0.05% XF86_SVGA
So I closed galeon ("Exit with session") and my swap became:
$ swapctl -lk
Device      1K-blocks     Used    Avail Capacity  Priority
/dev/wd0b      197568    95196   102372    48%    0
$ swapctl -sk
total: 197568k bytes allocated = 95196k used, 102372k available
Then closed all links and got it down to 131160 KB available.
$ free
total       used       free    buffers
Mem:        126072     125820        252          0
Swap:       197564     197564          0
Okay, nothing was happening so I stopped it and built a swapfile:
$ dd if=/dev/zero of=/backups/swapfile bs=1024 count=250000
250000+0 records in
250000+0 records out
256000000 bytes transferred in 36 secs (7111111 bytes/sec)
$ swapctl -a -p 1 /backups/swapfile
swapctl: /backups/swapfile is readable by the world
rainier:~$ swapctl -lk
Device            1K-blocks     Used    Avail Capacity  Priority
/dev/wd0b            197568    61884   135684    31%    0
/backups/swapfile    250000        0   250000     0%    1
Total                447568    61884   385684    14%
$ chmod u-r /backups/swapfile

So about 3.5 hours later, it failed again, because qt3-docs required qt3-libs-3.0.4, but "qt3-libs-3.0.4nb1 is already installed". So I commented out the BUILDLINK_DEPENDS.qt3-libs. And I send-pr'd it: pkg/17120. (A fix was applied; and skrll closed on 1/Jun/2002.)

And now to building a scribus pkgsrc. Trying to figure out how to properly use -I/usr/X11R6/qt3/include at configure time.

"../../mk/pthread.buildlink.mk", line 71: Need an operator
means you need USE_PTHREAD set.