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.
lizmat And yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2022/10/17/2022-...p-no-fear/ 14:10
Oshawott Nicholas: Laaate getting back to this, but the cross-compilation was mostly so that it might be possible to add a Termux package for Rakudo, since all platforms for their packages are done with a single builder 18:51
My current Configure.pl invocation for Rakudo looks like: ./Configure.pl --gen-moar --moar-option="--build=${TERMUX_BUILD_TUPLE}" --moar-option="--host=${TERMUX_HOST_PLATFORM}" --moar-option="--ar=llvm-ar" --moar-option="--cc=clang" --gen-nqp --backends=moar --prefix=$TERMUX_PREFIX 18:52
The --host and --build options were something I noticed in the cross-compiled builds for moarvm in debian
As in like, this: deb.debian.org/debian/pool/main/m/m...ian.tar.xz 18:53
(In the rules file)
I think the packages on this page may have been cross-compiled: packages.debian.org/stretch/moarvm 18:54
But I'm having a tricky time figuring out how to specifically configure rakudo to gen-moar, while also not defaulting to the host I'm building on 18:55
The reason for --host and --build with --cc rather than --compiler is because in the Configure.pl script for moarvm has that as mutually exclusive with the cross-compilation options: github.com/MoarVM/MoarVM/blob/mast...e.pl#L1099 18:57
Nicholas I'm not sure if any debian packages are cross compiled. At times I've had access to most of the platforms listed there (not s390x, and not some of the variants of each CPU) and all the builds were always native
I've neve tried to cross compile. I'm not sure if it ever worked. I doubt that it currently works.
Oshawott Ooh 18:58
Nicholas and I think if you want to try it, start with trying to build MoarVM from its directory, running ./Configure.pl there
rather than attempting ./Confugre.pl from the Rakudo tree
Oshawott Yeah! I might play around with it a bit!
Nicholas but, if you can get MoarVM to build
Oshawott (I wonder what it would take to get that working..?)
Nicholas you can build everything else on a different CPU architecture if you have the install paths correct (IIRC) 18:59
except, I guess, the linking part of native executables
compiling and linking
because the MoarVM bytecode is platform independent
but anyway, start with trying to build just MoarVM
no, I don't know what it would take
Oshawott Will do!
I did actually originally have moarvm as its own package, though the gen-moar seemed like it could be convenient if I could figure it out!
I figured I'd ask here in case there was something silly I was missing, since I'm not that great at perl, so dissecting the configure script kinda only got me so far 19:00
Nicholas: Thanks for the info..! ^^ 19:01