Welcome to the main channel on the development of MoarVM, a virtual machine for NQP and Rakudo (moarvm.org). This channel is being logged for historical purposes.
Set by lizmat on 24 May 2021.
00:07 reportable6 left 00:16 evalable6 joined 01:01 linkable6 left, linkable6 joined 01:08 reportable6 joined 01:22 frost joined 01:32 frost left 01:46 frost joined 02:46 benchable6 left, releasable6 left, nativecallable6 left, greppable6 left, evalable6 left, committable6 left, notable6 left, bloatable6 left, coverable6 left, tellable6 left, reportable6 left, shareable6 left, bisectable6 left, unicodable6 left, statisfiable6 left, sourceable6 left, squashable6 left, quotable6 left, linkable6 left 02:47 linkable6 joined, sourceable6 joined, bisectable6 joined, shareable6 joined 02:49 squashable6 joined, bloatable6 joined, evalable6 joined, tellable6 joined, releasable6 joined 03:47 greppable6 joined, benchable6 joined 03:48 notable6 joined, statisfiable6 joined 03:49 quotable6 joined, reportable6 joined 04:47 committable6 joined 05:30 [Coke] left 05:33 [Coke] joined 05:47 unicodable6 joined 06:07 reportable6 left 06:08 reportable6 joined 06:47 nativecallable6 joined 09:07 committable6 left, reportable6 left, unicodable6 left, notable6 left, sourceable6 left, bisectable6 left, statisfiable6 left, greppable6 left, squashable6 left, linkable6 left, nativecallable6 left, quotable6 left, bloatable6 left, evalable6 left, tellable6 left, releasable6 left, benchable6 left, shareable6 left 09:09 linkable6 joined, quotable6 joined, reportable6 joined, sourceable6 joined, statisfiable6 joined, bloatable6 joined, nativecallable6 joined 09:10 bisectable6 joined, notable6 joined, committable6 joined 09:11 releasable6 joined
Nicholas good UGT, #moarvm 09:12
nine good time for greeting 09:17
10:09 unicodable6 joined, evalable6 joined
timo greetste gemeinsame timer 10:14
MasterDuke collect2: error: ld returned 1 exit status 10:22
 /usr/bin/ld: inst-rakudo.o: undefined reference to symbol 'mi_free'
 /usr/bin/ld: /usr/lib/libmimalloc.so.2.0: error adding symbols: DSO missing from command line
could swear i got the same error when switching to gmp 10:23
but don't remember what i did wrong/what the fix was...
oh, and related to all this. looks like we might need to make cmake a moarvm build dependency. anyone have any objections to that? 10:25
timo it's possible the order of stuff is wrong in the linker list of libraries 10:26
or, i dare not say, missing? 10:38
Nicholas cmake is a right bloody pain to build from source 10:44
MasterDuke cmake is what's used to build mimalloc. i assume most of the systems we support have pre-built packages for cmake 10:47
Nicholas several of the gcc compiler farm machines don't, and on some I've given up trying to build cmake from source 10:48
it's that bad.
it's not worth it as a *hard* dependency for mimalloc
timo wow 11:01
we use the gcc compiler farm machines for platforms we dont have any of ourselves? 11:02
Nicholas for some value of "we" 11:05
timo no u 11:07
11:09 shareable6 joined, squashable6 joined 11:11 sena_kun joined
Nicholas but to be clear, by "hard" I meant - if Configure.pl detects cmake then using mimalloc instead of regular malloc sounds like a win. But yes, that's more complex. 11:17
12:08 reportable6 left 12:09 benchable6 joined 12:10 tellable6 joined 12:11 reportable6 joined 12:35 frost left 14:04 linkable6 left, evalable6 left 15:05 linkable6 joined 15:48 coverable6 joined 16:07 evalable6 joined 16:10 greppable6 joined 17:38 discord-raku-bot left 17:39 discord-raku-bot joined 17:43 discord-raku-bot left, discord-raku-bot joined 18:08 reportable6 left, reportable6 joined 19:07 sena_kun left 19:36 squashable6 left, squashable6 joined 20:13 [Coke] left 20:16 [Coke] joined
MasterDuke why do i pick these project that require knowledge i don't have? i don't know anything about linking, compiling c programs, etc. now moarvm builds and seems to be linking against the the 3rdparty mimalloc, but rakudo running compilation dies with `/usr/bin/ld: inst-rakudo.o: in function `MVM_malloc': 21:11
*rakudo runner
`/home/dan/Source/perl6/install/include/moar/core/alloc.h:2: undefined reference to `mi_malloc'` 21:12
nine MasterDuke: because you can hardly learn anything from doing things you already know everything about 21:48
MasterDuke: rakudo's build system also needs to link mimalloc
MasterDuke yeah, i thought it picked up the stuff from moarvm's configuration 21:49
e.g., rakudo's Makefile does have $PREFIX/include/mimalloc.h already listed in its includes 21:51
nine But what about -lmimalloc or something like that? 21:53
Could be you just missed a spot in MoarVM's configuration system that'd be supposed to forward this information. 21:54
Gotta go, but FWIW build systems are just the worst
MasterDuke what's throwing me off is that i'm looking at the gmp pr and mirroring the changed i made there (where i think i saw that same error before and then ended up with a fix)
japhb MasterDuke: See #raku-dev -- I think the ?? !! warning you added might be over-conservative; can you take a look? 21:55
MasterDuke i added -lmimalloc originally, but that just links to the "system" mimalloc, we want to link to the bundled libmimalloc.a
21:55 linkable6 left 21:57 linkable6 joined
japhb Actually, should say this here: 22:27
Lots of pointer size and signedness warnings building MoarVM on RPi4 + Raspbian (32-bit)
moon-child signedness is probably because char is unsigned 22:28
japhb moon-child: Nah, comparisons between 'int' and 'MVMuint32' 22:29
moon-child ah, huh
japhb e.g. callstack.c: if (region->alloc_limit - region->alloc < diff) 22:30