1 2018-03-03 08:19:55 <FraJah> moinings
2 2018-03-03 10:03:23 <dongcarl> Has anyone tried building bitcoin against musl?
3 2018-03-03 10:26:38 <arubi> dongcarl, I haven't yet but I /think/ bitcoind is available as a package in alpine linux. would be interesting to know how that's set up
4 2018-03-03 10:36:09 <dongcarl> arubi: they have musl-gcc, but that's only for C code
5 2018-03-03 10:36:47 <dongcarl> for c++ you'd have to have built every dep and libstdc++ with musl from my understanding
6 2018-03-03 10:36:55 <dongcarl> So probably only build on alpine haha
7 2018-03-03 10:38:58 <arubi> there is musl-cross-make that builds gcc (and g++) for pretty much every platform. it plays really well with mkroot
8 2018-03-03 10:41:18 <arubi> dongcarl, https://github.com/richfelker/musl-cross-make , the mkroot readme shows how to set it up. I was able to build an x86_64 environment and boot it with qemu
9 2018-03-03 10:43:46 <arubi> I then put the whole gcc package built with musl cross make (mcm) into that. it kinda works but I do want to attach a qcow2 disk to that so I can really start building everything I need
10 2018-03-03 10:48:04 <dongcarl> Hmmmm...
11 2018-03-03 10:49:04 <dongcarl> So with mkroot we don't even need an additional mkroot container inside the mkroot QEMU?
12 2018-03-03 10:51:03 <arubi> right, that's what I think. with the native musl gcc build with mcm and the image built with mkroot, the setup in qemu seems to be a clean one
13 2018-03-03 10:52:08 <arubi> also got bash to work both statically built with musl and then dynamically when I moved the gcc stuff into the image too
14 2018-03-03 10:52:38 <dongcarl> So we just need to get all the deps to build in mkroot?
15 2018-03-03 10:54:22 <dongcarl> Also wondering what cfields thinks about mkroot
16 2018-03-03 10:54:40 <arubi> what I did was build the whole mcm outside of mkroot, then mkroot's linux using the mcm gcc package, then copy the native mcm gcc to where mkroot puts its files, and repackage, and boot the result with qemu
17 2018-03-03 10:55:31 <dongcarl> Yup that's what I thought. I'm saying the only step left to building bitcoin in it is to be able to make sure the deps build correctly in the mkroot
18 2018-03-03 10:55:45 <arubi> ah, yes, correct
19 2018-03-03 10:56:10 <dongcarl> arubi: do you have a Makefile or sth? or just playing around rn?
20 2018-03-03 10:56:24 <arubi> just playing around
21 2018-03-03 10:57:42 <dongcarl> gotcha. I might spend some time getting a script working. any trip ups you've experienced so far?
22 2018-03-03 10:59:01 <arubi> well most I was following the mkroot readme, I had to re-run the cpio command from the mkroot setup again manually to package the musl gcc stuff, and also set up a bridge on the host so qemu could get network
23 2018-03-03 11:00:56 <arubi> also this https://github.com/robxu9/bash-static for bash
24 2018-03-03 11:01:03 <dongcarl> arubi: So let me make sure I understand. You're using mcm to build the qemu mkroot, then you got mcm inside the qemu mcm?
25 2018-03-03 11:01:18 <dongcarl> inside the qemu mkroot*
26 2018-03-03 11:01:29 <dongcarl> Just started looking at this today
27 2018-03-03 11:01:53 <arubi> yes, mcm will build it so you can just drop it in /usr that mkroot creates
28 2018-03-03 11:02:42 <dongcarl> Hmmmm. How are you getting files into the QEMU image? I've been just supplying files as -hda and cp-ing /dev/?da
29 2018-03-03 11:02:46 <arubi> I changed the symlinks in mkroot so /usr is its own directory and, placed musl's libc.so in mkroot's /lib
30 2018-03-03 11:03:21 <arubi> ah I was re-running the cpio package command from mkroot, no hard drives
31 2018-03-03 11:03:33 <arubi> for some reason I can't get qemu to load a drive image :\
32 2018-03-03 11:03:46 <dongcarl> you can make it load a file as a "drive" lol
33 2018-03-03 11:03:59 <dongcarl> hmmm cpio package command... looking...
34 2018-03-03 11:04:18 <arubi> I know but I'm getting errors, I forgot what it was
35 2018-03-03 11:04:51 <arubi> you just made me want to look at this again though :)
36 2018-03-03 11:04:51 <dongcarl> where did you find the cpio package command?
37 2018-03-03 11:05:12 <dongcarl> Hahaha yay I'd be happy to be rid of Canonical
38 2018-03-03 11:05:26 <dongcarl> and apologies if I ask dumb questions
39 2018-03-03 11:05:36 <arubi> from the module/kernel file , line 354
40 2018-03-03 11:05:59 <arubi> not at all dumb questions, I'm exploring this for the first time myself :)
41 2018-03-03 11:06:32 <dongcarl> I see, you modified that script a little to include your files?
42 2018-03-03 11:06:37 <dongcarl> mcm?
43 2018-03-03 11:07:04 <dongcarl> (I guess you could put a sleep 99999 before it gzips it up and put things in $ROOT as well
44 2018-03-03 11:07:07 <dongcarl> )
45 2018-03-03 11:07:36 <dongcarl> At some point it should be a module tho right?
46 2018-03-03 11:07:47 <dongcarl> Like make mcm into a module, and bitcoin a module?
47 2018-03-03 11:07:58 <arubi> I really just re-ran the command after changing the symlinks it creates the first time and copying the mcm stuff. my end goal was just getting a simple setup, load a drive image, and copy stuff over the network
48 2018-03-03 11:09:18 <arubi> bitcoin as a module is interesting, I thought to build it inside qemu
49 2018-03-03 11:09:26 <dongcarl> Gotcha
50 2018-03-03 11:09:29 <dongcarl> Yeah no you're right
51 2018-03-03 11:09:37 <dongcarl> modules are built out of container
52 2018-03-03 11:09:45 <dongcarl> container/QEMU
53 2018-03-03 11:10:33 <arubi> yea so mcm as one makes sense. really all it would be is copy the files, since you've built them all prior with mcm itself
54 2018-03-03 11:11:24 <dongcarl> Yeah makes sense. Aight I might DM you if I have new discoveries. Danke schon.
55 2018-03-03 11:11:57 <arubi> cheers
56 2018-03-03 12:21:02 <nightlingo> do I need to have a fully synced full node in order to execute bitcoin-cli commands?
57 2018-03-03 14:14:50 <mmgen> nightlingo: no
58 2018-03-03 14:15:41 <mmgen> nightlingo: but they might block for a long time if your node's syncing
59 2018-03-03 16:24:50 <ProfMac> what are people's thoughts on SQLite?
60 2018-03-03 17:30:55 <nightlingo> mmgen: thank you!