I am attempting to compile db2util and am getting the following error when run within chroot:
% git clone git@bitbucket.org:litmis/db2util.git
% cd db2util
% /opt/freeware/bin/make
make: *** virtual memory exhausted. Stop.
I do not get this error outside of chroot. So that's why I am posting the issue here in the ibmichroot project vs. the db2util project.
Some AIX forums report this error with gmake v3.80 and an upgrade to v3.81 fixes it. I am running gmake v4.1 from perzl both inside and outside chroot.
The Linux solution is to increase swap file size, and many point at this tutorial on how to do that. I am not sold it is a swap file issue because it works outside of chroot and the ulimit command delivers the same values both inside and outside chroot.
Others in the IBM i community have had this error when running gmake from QP2TERM and it resolved itself by running from an SSH session. I am already in an SSH session.
My next plan is go deeper with dbx. Here's my first attempt...
% dbx /opt/freeware/bin/make
Type 'help' for help.
reading symbolic information ...warning: no source compiled with -g
(dbx) run
make: *** virtual memory exhausted. Stop.
execution completed (exit code 2)
I am following the line of thinking from our original deep journey into dbx. In that scenario we were blind debugging and knew the offending function; mmap64. In this case we don't know the offending function.
I am armed with the dbxme.py program you provided but am lost as to what I should be looking for. That's where I am hoping you can guide me concerning what to look for. Please.
I am compiling inside a chroot and do not have any error.