Pierre Labastie wrote:
On 15/05/2016 09:29, Bruce Dubbs wrote:
Pierre Labastie wrote:
Hi,
The "Creating a new partition" page tells that a partion of about 4GB is
enough for building LFS. It seem that it is no longer true. A jhalfs build
I've done to answer a question from Douglas, run out space during GCC tests on
a 5.8 GB partition.
What? No swap? ;)
Not sure I understand that: swap is for memory space, not disk sapce, isn't
it? Actually, I have a small swap area (4GB), while memory on this VM is 14GB
(and total memory on the computer is 16GB).
Yes, you are right. I conflated the time I was building on a remote VM
and ran out of memory+swap.
I am not sure exactly what is needed, but at least 6 GB
seem to be needed.
Book version: recent SVN (with GCC 6).
I ran a jhalfs build and while I did that a loop measuring the disk usage
every five seconds. The high water mark was in the gcc tests at 5314 MB. I
also had a 5205 MB reading during glibc.
It does not really explain why it failed for me on a 5.8 GB partition, but
maybe you do not count the jhalfs directory itself.
Yes, I did.
df -m /mnt/lfs | tail -n1 >> /tmp/diskspace.log
I did that every 5 seconds, but I suppose there could have been a
transient increase that I missed. In any case I've changed the minimum to
6 GB.
BTW, I just found that
/tools/libexec is about 880 MB and is not stripped at the end of chapter 5.
Stripping allows to remove 300 MB:
---
find /tools/libexec -type f -exec strip --strip-unneeded {} \;
---
Yes, I remember that. There was a discussion earlier about stripping.
I'll look at that again today.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page