IRC channel logs
2023-11-19.log
back to list of logs
<ekaitz>i'm reading a very interesting book <stikonas>kicked off riscv64 native run too on this commit <Googulator>Mikaku: looks like Fiwix has a small bug related to handling disk full errors <Googulator>ramdisk_read(): block 2621312 is beyond the size of the ramdisk. <Googulator>afterwards, it recovers and actually reports "No space left on device" <Googulator>But the first write that would overrun the disk yields I/O error instead <Googulator>oriansj: yes, xz would provide even more compression... but good luck implementing LZMA decompression in any kind of trivial/bootstrap-friendly language <matrix_bridge><Andrius Štikonas> Googulator: Simple C is bootstrap friendly, just need to simplify it for M2-Planet <sam_>yeah the notoriously difficult thing sounds very wrong to me <oriansj>Googulator: notoriously difficult to bootstrap, sounds like a fun to solve problem. <oriansj>and we certainly already solved a good few of those together. <stikonas>yeah, I don't think xz is that hard to bootstrap. I've heard that too, but e.g. in live-bootstrap (though much later) we had no issue bootstrapping xz <stikonas>oriansj: I've now removed VPATH from M2-Planet makefiles <stikonas>e.g. make clean all test DESTDIR=xyz install now works <oriansj>found two missing details but fixed those but great work <oriansj>and I am guessing probably something similiar needs to be done to mescc-tools <stikonas>not sure why vagrantc didn't complain about it <stikonas>probably he had already separated make and make install targets there <stikonas>hmm, I'm getting some linker error if I make the same change <stikonas>gcc -D_GNU_SOURCE -std=c99 -ggdb -fno-common hex2.c bin/hex2 -o hex2 <stikonas>/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: bin/hex2: stdout: invalid version 3 (max 0) <oriansj>gcc was trying to link the binary with itself <stikonas>oh, it actually compiled it and then tried to rebuild it again... <stikonas>in your last commit, where you added M2-Planet: target, we still need to add it to .PHONY <stikonas>and mescc-tools-extra has the same issue... <Mikaku>Googulator: I've been testing 'cat /dev/zero > /dev/ram0' and I get 'cat: write error: No space left on device' all the time <Mikaku>Googulator: can you tell me the exact command I need to reproduce your scenario? <efraim>mescc-tools-1.5 and m2-planet-1.11 both build on powerpc-linux <Googulator>the one I first linked already had this code removed, since it was only something I was testing <Googulator>(to see how much space is left over in the initrd after the Linux build) <Googulator>of course, it could be related to some of the live-bootstrap-specific patches <Mikaku>Googulator: I've just tested: ' mkfs.ext2 -m 0 -r 0 /dev/ram0 ; mount -t ext2 /dev/ram0 /mnt/disk ; while true ; do cat /boot/fiwix >> /mnt/disk/fiwix || break ; done' and I get the same 'cat: write error: No space left on device' all the time