IRC channel logs

2023-07-27.log

back to list of logs

<oriansj>lanodan: yeah cproc is starting to look very promising
<oriansj>muurkha: no worries, we all need reminders some days
<oriansj>with a bit more love, it'll probably become a very strong bootstrapping competitor to tcc
<oriansj>but yeah, any "simple" C or scheme or (insert language bootstrappable from assembly here) compiler able to build GCC definitely are interesting
<luke-jr>has anyone recently built Guix from source-only? getting stuck on Mes not building :/
<luke-jr>unhandled exception: unbound-variable: (export)
<luke-jr>during CC ../lib/linux/x86_64-mes-mescc/crt1.c
<stikonas>luke-jr: are you building mes manually?
<stikonas>or letting Guix build it?
<luke-jr>trying to, yes
<luke-jr>I don't have guix yet
<stikonas>if you build mes manually, then you need quite a few env variables
<stikonas>though mes won't be able to run buix
<stikonas>guix
<stikonas>I think you need guile
<luke-jr>well, what's the best approach to this?
<luke-jr>I have guile
<stikonas>have you exported path to nyacc modules?
<luke-jr>no, though nyacc is installed too :x
<stikonas>you probaby need to set GUILE_LOAD_PATH
<stikonas> https://github.com/fosslinux/live-bootstrap/blob/master/sysa/run.kaem and https://github.com/fosslinux/live-bootstrap/blob/master/sysa/mes-0.24.2/mes-0.24.2.kaem you can find some env variables needed to build mes
<stikonas>or to be more precise, to run mescc
<luke-jr>I'm not dead-set on the mes path, just thought that was "the way" to do this
<luke-jr>couldn't find a walkthrough outlining the process
<stikonas>well, live-bootstrap is basically a script to build gcc/guile/other things starting from nothing
<stikonas>you could try that
<luke-jr>but I have those things already, my goal is to get to Guix ;)
<oriansj>luke-jr: live-bootstrap is the one you probably want (guix includes things like a guile blob as a driver and some pregenerated files)
<stikonas>ACTION is running live-bootstrap on riscv64 HW for the first time
<stikonas>it's not fast though :(
<oriansj>well how many bogomips does the cpu cores have?
<oriansj>(a core2duo @2.4Ghz from 2008 is 4800.16 on a librebooted x200 for reference)
<stikonas> https://paste.debian.net/1287050/
<stikonas>it says 8
<stikonas>but probably that's just a fake number
<vagrantc>insufficiently bogus
<stikonas>I think on newer ISAs Linux does not calculate bogomips
<stikonas>I couldn't find any storage media to boot from...
<stikonas>but at least netboot worked
<oriansj>what does lscpu show?
<vagrantc>anyways, seems like some appluase is in order, yay!
<stikonas>oriansj: I don't have a booted system yet...
<stikonas>that's probably for tomorrow
<stikonas>for my first test I compiled linux kernel and netbooted kernel and initramfs with partial live-bootstrap image (no distfiles after tcc)
<oriansj>ah
<stikonas>yeah, it's slower than qemu...
<stikonas>so bootstrap to tcc will take hours...
<stikonas>maybe it could be a bit faster once I get heatsink...
<oriansj>is it an in-order cpu core? running at 100Mhz?
<stikonas>I thought it should be faster
<stikonas>than 100 Mhz
<stikonas>but yes, I guess in-order
<stikonas> https://www.cnx-software.com/2022/08/29/starfive-jh7110-risc-v-processor-specifications/
<stikonas>should be up to 1.5 GHz
<luke-jr>oriansj: but live-bootstrap doesn't end with a guix system, does it?
<oriansj>luke-jr: it could be as we bootstrap guile
<luke-jr>I have guile already tho
<oriansj>stikonas: looks like it is supposed to have up to 3840 DMIPS which puts it behind a PowerPC G4
<oriansj>and in comparison core2duo is 27,079 DMIPS
<stikonas>yeah, so I guess emulated core on amd64 is comparable to real riscv64 core
<stikonas>though that was user emulation
<stikonas>full system qemu would have been much slower
<oriansj>well assuming a 2-4x performance drop for virtualization
<stikonas>it's probably 10x or so
<stikonas>if not 20x
<stikonas>my riscv64 user emulated bootstrap runs for maybe 6h
<oriansj>an AMD Phenon II is 78,440 MIPS
<stikonas>but natively it can finish in 20 minutes
<luke-jr>oriansj: I have a fully installed and working system that I've already bootstrapped; the trouble is getting a Guix environment that can match hashes with normal Guix systems
<oriansj>luke-jr: ah, sorry for misunderstanding your problem
<stikonas>it's definitely more power efficient to run on real HW though....
<oriansj>yeah, 130 mW should definitely be much less than an x86 system (unless one has a Via C7M system)