* Victor Martinez (pitillo@crux-arm.nu) wrote:
Hello, I have been doing some test with native compilations under handhelds (at the moment I'm trying on htc-prophet).
I noticed what Fredick told me about the -pipe flag, which seems to kill memory (only with 64Mb). I want to know your opinions about this and another topic related to native compilations and the commits in native git repos. I think it can be a good idea to remove the -pipe flags in ports which have it hardcoded (like perl). In this way we can let native building work with devices which don't have too much amount of ram.
We can see this errors reported at the end of the pkgbuild log: "cc: Internal error: Killed (program cc1) Please submit a full bug report."
Related to ram are sources too, xz and lzma needs more ram to be uncompressed (their size is smaller that bz2 sources) and then it's impossible in devices with small amount of ram.
A full report about xz/lzma problem: lzma: =======> Building '/nfs/crux/pkg/curl#7.20.1-1.pkg.tar.gz'. bsdtar -p -o -C /nfs/crux/work/src -xf /nfs/crux/src/curl-7.20.1.tar.lzma unlzma: (stdin): Memory usage limit reached unlzma: Limit was 22 MiB, but 33 MiB would have been needed bsdtar: Unrecognized archive format bsdtar: Child process exited with status 1 bsdtar: Error exit delayed from previous errors. =======> ERROR: Building '/nfs/crux/pkg/curl#7.20.1-1.pkg.tar.gz' failed. xz: bsdtar -p -o -C /nfs/crux/work/src -xf /nfs/crux/src/coreutils-8.5.tar.xz unxz: (stdin): Memory usage limit reached unxz: Limit was 22 MiB, but 65 MiB would have been needed bsdtar: Unrecognized archive format bsdtar: Child process exited with status 1 bsdtar: Error exit delayed from previous errors. =======> ERROR: Building '/nfs/crux/pkg/coreutils#8.5-1.pkg.tar.gz' failed. Using gz/bz2 sources avoid this problem, but we can get the problem exposed above.
I hope this can be interesting. Waiting your comments and suggestions.
Regards, Victor.
--- Learning bit by bit Victor Martinez | http://lokalix.dyndns.org