IRC channel logs

2023-03-05.log

back to list of logs

<stikonas>fossy: do you remember why dist does not install into DESTDIR?
<stikonas>I guess we should change that
<fossy>oversight ;)
<pder>stikonas: I believe you might need to do grep -h or grep --no-filename with that grep command using run*.sh
<pder>Otherwise you will iterate over names like run.sh:bash-5.2.15
<stikonas>hmm, how did it work before?
<stikonas>or ir didn't?
<pder>when you specify only one file grep doesnt prefix the results with the filename, but with multiple files it does
<stikonas>oh I see
<stikonas>ok, at least that old grep still has this option
<stikonas>pder: fixed
<pder>cool, thanks. how much disk space is actually used at the end of sysa?
<pder>or ram drive space
<stikonas>pder: I haven't checked...
<stikonas>pder: you can insert bash command at the end and check
<stikonas>now bash is interactive
<stikonas>I think the maximum usage is just after linux linking stage
<stikonas>so if you add "bash" at the end of src_compile
<stikonas>then mount /proc
<stikonas>and then you could take a look at /proc/meminfo
<stikonas>fossy: do we want to keep independent .env files for sysa and sysc?
<stikonas>some variables are changing, so if we transfer it, we would have to source it, update some variables and reexport
<stikonas>so not sure whether it's worth transferring it
<muurkha> https://riscv.org/blog/2022/10/deepcomputing-and-xcalibyte-announce-the-roma-laptop-will-be-powered-by-th1520-the-first-soc-from-wujian-600s-platform-by-alibaba-t-head-xcalibyte/
<gforce_de1977>hi there, i just opened https://github.com/fosslinux/live-bootstrap/issues/256 - any hints for a ready-to-run-kernel or a build-receipt?
<rickmasters>stikonas: the new bash is raising new kernel bootstrap issues.
<stikonas>rickmasters: oh :(
<stikonas>maybe we need to revert then...
<rickmasters>sitkonas: I'm looking forward to post-integration when the impact of these changes can be more easily assessed.
<gforce_de1977>hi rickmasters - a see https://github.com/fosslinux/live-bootstrap/pull/253 - so my-kernel question seems obsolete - thanks for this!
<stikonas>gforce_de1977: unbz2 is missing in your run, did you update submodules?
<stikonas>rickmasters: yeah, once it is integrated, it will be easier to make those changes
<gforce_de1977>stikonas: sorry - let me double check this
<stikonas>rickmasters: do you have any details of what is going wrong with new bash?
<stikonas>rickmasters: if we know what causes it, we could see if there is a version of bash between 2 and 5 that works
<rickmasters>It's a few faults in configure resulting in different answers which lead to checksum differences.
<stikonas>oh, that's a minor thing then
<stikonas>should be fixable by forcing the answer to configure tests
<rickmasters>stikonas: the first is that divide by zero is not producing SIGFPE
<rickmasters>stikonas: Page Fault after: checking for presence of POSIX-style sigsetjmp/siglongjmp...
<stikonas>I guess once we start using autotools, we should expect reproducibility issues with different kernels :(
<gforce_de1977>stikonas: just, updating the submodules fixes it - sorry for the noise, i closed the report in github
<rickmasters>stikonas: Page Fault after: checking if signal handlers must be reinstalled when invoked...
<rickmasters>gforce_de1977: no worries. glad your ok
<rickmasters>stikonas: that's it
<stikonas>hmm, do you think it's possible to workaround those then?
<stikonas>or do you want me to change something with bash then
<rickmasters>stikonas: I'm not sure how much work these are yet
<stikonas>ok, let me know if you see that it's a lot of work...
<stikonas>my initial goal was to get to as new autotools as possible
<stikonas>but then I realized it's getting very hard to build binutils newer than 2.30
<stikonas>and 2.30 does not yet need automake 1.16 (which needed newer bash than 2.05b)
<stikonas>gforce_de1977: yes, soon we won't need a pre-built kernel in live-bootstrap
<stikonas>but we are still not quite yet there, though getting fairly close
<rickmasters>And the reason for doing it in sysa was to get bash interactivity as soon as possible?
<stikonas>rickmasters: no, see that automake stuff
<stikonas>automake needs newer bash
<stikonas>I thought we'll be able to update more stuff
<stikonas>thoguh interactivity is also a plus
<rickmasters>ok
<stikonas>but if we just want interactivity, I could rebuild bash 2.05b too with musl
<stikonas>but I'm not sure if that would help
<stikonas>your issues might be there too (caused by differences in autotools on different kernels)
<stikonas>gforce_de1977: by the way, you need 32-bit kernel, 64-bit kernel won't work
<stikonas>you'll be able to run sysa on 64-bit kernel but the transition with kexec won't work
<rickmasters>stikonas: forcing the answer to configure tests sound easier than kernel debugging. Any hints on how I can try that?
<stikonas>something like https://github.com/fosslinux/live-bootstrap/blob/master/sysa/binutils-2.30/binutils-2.30.sh#L83
<stikonas>you basically just pass it to ./configure script
<stikonas>I suppose ./configure system environment autodetection is a bit at odds with reproducibility in general
<stikonas>we should be fine with libc and userspace tests but once they start testing kernel features we are in trouble
<muurkha>the reason the TH1520 is interesting is that it's a fully open-source RISC-V implementation which can evidently deliver fairly reasonable performance when implemented in a modern process (2.4 GHz in 12nm in this case)
<muurkha>oh hey, here's the blog post: http://web.archive.org/web/20221016063724/https://riscv.org/blog/2022/10/deepcomputing-and-xcalibyte-announce-the-roma-laptop-will-be-powered-by-th1520-the-first-soc-from-wujian-600s-platform-by-alibaba-t-head-xcalibyte/
<gforce_de1977>stikonas: is there a known-to-work-32bit-kernel downloadable somewhere?
<stikonas>I can upload mine
<stikonas> https://stikonas.eu/files/bootstrap/kernel/kernel32
<stikonas>I think this should work
<stikonas>probably slightly outdated, so just use it for live-bootstrap and not for production
<gforce_de1977>stikonas: thanks for the kernel, will report
<rickmasters>stikonas: I was able to force matching answers for the three obvious configure problems.
<rickmasters>stikonas: unfortunately, there is still a checksum mismatch so I'll have to look closer.
<stikonas>maybe yet another configure issue?
<rickmasters>stikonas: yes, found one more
<rickmasters>stikonas: I've still got an issue. I'm wondering if you could at least hold off on further changes to sysa until I can resolve this.
<stikonas[m]>Sure
<stikonas[m]>I'll just push non package change (pass environment variables via file).That wouldn't affect fiwix
<rickmasters>stikonas: Thanks. I'm hoping I can work through this soon.
<stikonas[m]>Yeah, sorry for extra work for you
<stikonas[m]>Though we updated binutils from 2.14 to 2.30. That will help us longer turn
<stikonas>s/turn/term/
<rickmasters>stikonas: don't worry about it. I'll try to review your PRs in advance until integration. I have to step away for a while. Back later.
<stikonas>gforce_de1977: still stuck with mkdir call?
<stikonas>make sure that you don't have unnecessary files in live-bootstrap directory
<stikonas>one thing that might go wrong is that those files will make initramfs image too big