🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 6 September 2022.
Oshawott So! Does anyone here know how to cross-compile rakudo? 00:18
I can compile moar-vm with --gen-moar's --moar-options to set the right host and build 00:19
But rakudo itself seems to pretty stubbornly want to compile for my current architecture 00:20
(I'm trying to package rakudo for Termux, and their builder cross-compiles)
-rwxrwxrwx 1 archenoth archenoth 4.3M Oct 13 18:16 rakudo_2022.07_aarch64.deb 00:21
archenoth@Jirachi ~/Desktop/a $ find -name 'rakudo' -exec file {} \;
./data/data/com.termux/files/usr/bin/rakudo: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, stripped
(So, the aarch deb contains x86_64 binaries) 00:22
This is what my Configure.pl invocation is looking like: 00:23
ARCH="${TERMUX_ARCH}" CC=clang AR=llvm-ar ./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
The env variables were mostly me grasping at straws because I can't find anything in Configure.pl to set the desired host
(This is the rakudo Configure.pl) 00:24
I stole the moar cross-compilation options from Debian's moarvm package here: packages.debian.org/stretch/moarvm (The source) 00:26
But rakudo only has one arch: packages.debian.org/stretch/rakudo
It's labelled as "all", but is actually just x86_64 as well
Ubuntu just kinda delegated to Debian 00:27
So I don't really have any references for working cross-compiles
Does anyone have any hints where I could look to figure this out..? 00:28
tl;dr - no idea how to cross-compile rakudo because I'm unfamiliar with how ./Configure.pl could set that up
MasterDuke Oshawott: do you see any difference if you use the MoarVM option `--compiler=clang` instead of `--cc=clang`? MoarVM's Configure.pl --help suggests that's a more complete way to use llvm 02:05
Oshawott Oh, --compiler=clang makes the script ignore the --host and --build options, so it doesn't try to cross-compile MoarVM 02:15
github.com/MoarVM/MoarVM/blob/mast...e.pl#L1099
The version of the arguments where you give the host triple and tuple doesn't have a --compiler option in it 02:16
(It actually complains that I didn't pass --host if I supply both --host and --compiler, and it can't run the probe binaries it compiles) 02:17
Wild huh? 02:19
MasterDuke ah. unfortunately i don't know much about cross-compiling, but [Coke] pinged nwc10 over in #moarvm. he's likely to know a lot more, but this is pretty late in his timezone so probably won't be able to respond for a while 02:21
Oshawott Oh! That's okay! And ooh, thank you..! I super-appreciate it hahah 02:26
I'm not really in a hurry or anything, but I figured after just kinda stumbling on the Reddit post about running it on Termux, what it would take to make a proper package for it, since I've done that before for a few games~ ^^ 02:28
I'm not really good at Perl, so the build system has been a bit of a trick to figure out, but Raku has always seemed like a really interesting language to me! So I wanted to do my best to bring it to a platform I care a lot about 02:31
MasterDuke always happy to have people helping out
Oshawott (Hm! Maybe I'll hop over to that other channel too!) 02:32
Xliff Why doesn't this regular expression work? 06:03
replit.com/@Xliff/RoyalblueDependa...#main.raku
Xliff Oh, fahrfignugen.... I need the recursive rule. 06:08
Fixed, now.
lizmat Fahrvergnugen :-) 08:19
Kernspin Guten Morgen / Bonjour / Доброе утро / Good morning. 09:29
El_Che jnthn is playing with was, I read. Raku is now hip :) 09:32
Xliff lizmat: Ah! Thanks! ;) 09:42
lizmat Actually: Fahrvergnügen :-) en.wikipedia.org/wiki/Volkswagen_advertising 09:43
[Coke] can someone verify my take here: github.com/rakudo/rakudo/issues/4546 and maybe we can close it as not a bug. 14:22
Nemokosch you know what is really interesting 14:37
Nemokosch nevermind, figured it out lol 14:38
still gonna show it
[Coke] I cannot understand the ask here, can someone translate? github.com/rakudo/rakudo/issues/4515
Nemokosch m: say 12.500000000000002.round((1e-5).Rat) 14:39
camelia 12.500005
Nemokosch hehehe
Nemokosch [Coke]: I'm afraid someone would need a 2019.03.1 version to even figure it out 14:44
tonyo [Coke]: your response to 4546 looks sane
rational, maybe
Nemokosch building 2019.03.1 in the meantime... 14:49
[Coke] bisectable6: help 14:52
bisectable6 [Coke], Like this: bisectable6: old=2015.12 new=HEAD exit 1 if (^∞).grep({ last })[5] // 0 == 4 # See wiki for more examples: github.com/Raku/whateverable/wiki/Bisectable
[Coke] bisectable6: old=2019.01 new=HEAD Date.today.yyyy-mm-dd("/")
bisectable6 [Coke], Cannot find revision “2019.01” (did you mean “2020.01”?)
[Coke] bisectable6: old=2019.03.01 new=HEAD Date.today.yyyy-mm-dd("/") 14:53
bisectable6 [Coke], Cannot find revision “2019.03.01” (did you mean “2019.03.1”?)
[Coke] bisectable6: old=2019.03.1 new=HEAD Date.today.yyyy-mm-dd("/")
bisectable6 [Coke], Bisecting by exit code (old=2019.03.1 new=4cdb558). Old exit code: 1
[Coke], bisect log: gist.github.com/19651d1bd757920c16...15a45f79d9 14:54
[Coke], (2020-03-14) github.com/rakudo/rakudo/commit/30...059a8507e3
[Coke] ah. so it was an intentional change. closing ticket.
we have 92 tickets in rakudo on GH that are tagged "tests needed" 14:58
These are often adding a raku-level test, with code already available in the ticket if people are looking for some LHF. 14:59
m: say 92/1268
camelia 0.072555
tonyo Nemokosch: ^ 15:05
Nemokosch hm? 15:11
[Coke] .seen melezhik 15:37
tellable6 [Coke], I saw melezhik 2022-10-12T15:07:30Z in #raku: <melezhik> tbrowder , sure, thanks again!
[Coke] .ask melezhik - github.com/rakudo/rakudo/issues/4685 - shouldn't this be a Curlie bug, not a rakudo bug? 15:38
tellable6 [Coke], I'll pass your message to melezhik
tonyo anyone using fez that is willing to provide some feedback/help testing a new bundler that should make bundling a little easier/predictable/reliable? 18:32
tonyo please pm if so, going to be afk for a few days. 18:38
Nemokosch what do I need to have in order to help? 18:42
tonyo a module to publish and a fez log in 19:03
Nemokosch moment 19:13
lizmat weekly: dev.to/lizmat/its-time-to-rak-part-2-18ha 20:43
notable6 lizmat, Noted! (weekly)
Nemokosch > The order in which options (anything that starts with a dash (-) 20:47
Nemokosch lizmat: this sentence seems to lack an end 20:47
lizmat arg, last minute change... :-) 20:56
fixed
Nemokosch++
lizmat afk& 21:09
[Coke] want to create a dashboard for issues across various products; any suggestions on how? 21:24
(all on github) 21:25
[Coke] to start, guessing gh API to markdown update a wiki page occasionally 21:30