Perl 6 language and compiler development | Logs at colabti.org/irclogger/irclogger_log/perl6-dev | For toolchain/installation stuff see #perl6-toolchain | For MoarVM see #moarvm
Set by Zoffix on 27 July 2018.
00:19 MasterDuke joined, MasterDuke left, MasterDuke joined 00:40 AlexDaniel left
Geth rakudo: efa9f7a946 | (Daniel Green)++ | Configure.pl
Cleanup Configure.pl
03:53
rakudo: 83286e2943 | (Daniel Green)++ | src/core/CompUnit/Repository/Installation.pm6
Support JS in CompUnit/Repository/Installation.pm6
rakudo: d6563816eb | (Nick Logan)++ (committed using GitHub Web editor) | 2 files
Merge pull request #2701 from MasterDuke17/cleanup_Configure.pl_etc

Cleanup Configure.pl, etc and add some JS support
07:52 yoleaux joined
|Tux| Rakudo version 2018.12-311-gd6563816e - MoarVM version 2018.12-110-g04982f6e9
csv-ip5xs0.749 - 0.777
csv-ip5xs-206.125 - 6.127
csv-parser22.625 - 22.630
csv-test-xs-200.429 - 0.435
test7.176 - 7.374
test-t1.908 - 1.938
test-t --race0.807 - 0.859
test-t-2032.418 - 33.360
test-t-20 --race10.379 - 10.580
09:10
lizmat Files=1267, Tests=88064, 407 wallclock secs (20.84 usr 6.51 sys + 2943.03 cusr 232.17 csys = 3202.55 CPU) 09:44
13:12 AlexDaniel joined 14:13 lucasb joined 16:48 lucasb left
lizmat .ask ugexe www.reddit.com/r/perl/comments/asc...s/egvtxmc/ 16:55
yoleaux lizmat: I'll pass your message to ugexe.
17:57 patrickb joined 19:03 Kaiepi joined 19:42 Kaiepi left 19:43 Kaiepi joined 20:28 titsuki left 21:05 robertle joined
patrickb Hi everyone! 21:10
What's the canonical way to run roast?
MasterDuke patrickb: in the rakudo directory, `make m-spectest` 21:24
21:27 sortiz joined
patrickb MasterDuke: Thanks! Running now... 21:27
sortiz \o perl6-dev 21:28
Two questions: First a simple (stupid?) one: How can a get, in a program, the current Moar's version? 21:32
MasterDuke m: say $*VM.version 21:34
camelia v2018.12.110.g.04982.f.6.e.9
sortiz Thanks MasterDuke 21:36
MasterDuke np
21:38 nebuchadnezzar left
sortiz I'm fixing my NativeHelpers-Blob module for a change in the REPR of CStruct, so I need to known on what version the change was introduced. 21:41
MasterDuke rj: say $*VM.version 21:45
camelia v1.8 21:46
MasterDuke does NativeCall even work with the JVM and/or JS backends? would it be better to check the Perl6/Rakudo version? 21:47
sortiz Yep, can be better. 21:52
timotimo oh hey sortiz 22:02
sortiz Hi timotimo! 22:03
timotimo we should really look into getting those functionalities into moarvm proper :S 22:06
sortiz Yep, but in the mean time I'm releasing a quick fix. 22:08
timotimo yes, sure 22:10
did you see what the change was for? :) 22:11
sortiz The REPR body was simplified moving the real pointer to the head. I suspect for ease the JITing 22:13
timotimo aye 22:14
the jit actually got a cool new feature that makes nativecalls even closer to native calls than ever before
but passing a CStruct was - until then - making it fall back to the simpler method
22:17 robertle left
sortiz Great 22:19
patrickb I now ran my reloc branches through a full spectest and had no regressions. I also did some performance measurements an the branch comes out roughly as fast or slightly faster as before. 22:21
sortiz I now have very few spare time for perl6, I hope to follow the development more closely soon. 22:22
timotimo as always there's the p6weekly :) :) 22:28
22:30 MasterDuke left
patrickb As far as I can see I have nothing left to do on my relocatability branches. I did not test on all platforms though (the BSDs, Mac and AIX are all untested). 22:31
What is the best way to proceed now?
timotimo hm, Kaiepi is our main BSD person i think? 22:32
do you have experience with flatpack or appimage or snap or something similar? 22:33
patrickb no
timotimo OK
do the platforms you've tested on include windows?
patrickb Yes, I tested on linux and windows
on windows I tried MinGW and VC
timotimo nice
patrickb VC was actually broken even without my changes. Got it to build again. :-P 22:34
timotimo it's probably not much work, but we should make Star use this ASAP
VC refering to MSVC?
patrickb yes
Kaiepi yeah timotimo 22:37
yoleaux 18 Feb 2019 15:08Z <[Coke]> Kaiepi: I have sent you a few emails re: grant and received no response. please check spam filter, ping me at [email@hidden.address] (maybe I'm using wrong email address)
Kaiepi already done
what needs testing?
patrickb Kaiepi: github.com/patzim/{MoarVM,nqp,raku...tree/reloc 22:39
vrurg patrickb: what's needed for mac testing? Just make & make test? 22:42
Kaiepi aight
patrickb thanks! 22:43
vrurg: Yes. 22:46
vrurg: If you want to go crazy, you can also do make install and then move the installation folder around and try if stuff still works. 22:47
vrurg: actually to test the new runners you have to do make install and then run perl6 from the installation folder 22:48
22:49 Kaiepi left, Kaiepi joined
vrurg patrickb: Would take me some time. 22:50
Kaiepi patrickb, moar doesn't work on openbsd -current
ld.so: moar: can't load library 'libmoar.so'
patrickb Kaiepi: OK. Do you know something about rpath and $ORIGIN on OpenBSD? 22:51
Kaiepi never used them before 22:52
patrickb hm... 22:53
Kaiepi rpath should work the same i think
not sure about $ORIGIN, i'll tell you when my dns stops being a shit
patrickb can you do `objdump -a -x moar` on the moar executable? 22:54
Kaiepi sure
patrickb objdump -a -x moar | grep RPATH 22:55
Kaiepi empty
patrickb ugh
Kaiepi: `grep LDFLAGS Makefile`#Can you paste the first line this returns? 22:57
Kaiepi LDFLAGS = -O3 -DNDEBUG -Wl,-z,origin,-rpath,'$$ORIGIN/../lib' 22:58
patrickb that looks good
patrickb suspects he will have to set up a OpenBSD VM... 22:59
Kaiepi would it be related to libuv's procfs-exepath.o? 23:01
patrickb Kaiepi: I don't think so.
Kaiepi hm
patrickb It seems the moar executable is missing the required rpath.
objdump should return something like: " RPATH $ORIGIN/../lib" 23:02
but the LDFLAGS you have in the Makefile look good according to lekensteyn.nl/rpath.html#openbsd
Kaiepi: An easy test to see whether it's the rpaths fault is to do `LD_LIBRARY_PATH=/path/to/libmoarso moar` 23:04
Kaiepi openbsd doesn't use LD_LIBRARY_PATH iirc
patrickb Ugh. Is there any substitute? 23:05
Kaiepi ldconfig -r | grep moar is empty
patrickb what does that do? 23:07
Kaiepi ldconfig is used to prepare a set of ā€œhintsā€ for use by the run-time 23:09
linker ld.so(1) to facilitate quick lookup of shared libraries available
in multiple directories.
-r lists the contents of ld.so.hints
patrickb did you try the LD_LIBRARY_PATH thing? man.openbsd.org/ldconfig.8 < seems to indicate it works on OpenBSD...
AlexDaniel sortiz: thank you
vrurg patrickb: was distracted by urgent matter... nqp configure complains on too old version of moar. 23:10
AlexDaniel (for working on NativeHelpers-Blob)
Kaiepi patrickb, still doesn't load the library
patrickb vrurg: Did you use the reloc branch in all three repos? 23:11
vrurg Yes.
patrickb vrurg: And did you install MoarVM and gave the same prefix to nqp?
vrurg One sec, I have master branch installed in my path. 23:12
Nah, that's not it.
Found /Users/vrurg/perl6.reloc/bin/moar version 2015.08-5063-gdcfa5f15a, which is too old. Wanted at least 2018.12-94-g2eab275df
patrickb Kaiepi: OK. I'm out of ideas atm. Will have to look closer (will probably set up a VM). 23:13
sortiz AlexDaniel: Thank you for the original report
patrickb Kaiepi: If you want to dig in yourself some - feel free!
vrurg: Then you have the wrong repo, give me a moment 23:14
vrurg Fetch URL: [email@hidden.address]
patrickb vrurg: and then check out the reloc branch 23:15
vrurg 'He did it twice!' ;)
patrickb :-)
vrurg git branch: \n * reloc 23:16
patrickb vrurg: Is it working now? 23:18
vrurg Now, still the same. Checked for no other nqp/moar in the path ā€“ nah, the moar in ~/perl6.reloc is the only I have. 23:19
s/now/no/ 23:21
patrickb what does moar -version print?
timotimo double dashes btw 23:23
patrickb Kaiepi: Thanks for your help so far! I hope we'll get this sorted out soon...
vrurg patrickb: This is MoarVM version 2015.08-5063-gdcfa5f15a built with JIT support 23:26
And this is from ./Configure.pl --backends=moar --prefix ~/perl6.reloc: Found /Users/vrurg/perl6.reloc/bin/moar version 2015.08-5063-gdcfa5f15a, which is too old. Wanted at least 2018.12-94-g2eab275df
patrickb vrurg: Let's try a fresh start. These are the commands I use to build a MoarVM: 23:27
git clone [email@hidden.address]
cd MoarVM/
git checkout reloc
./Configure.pl --prefix=../install 23:28
make && make install
#same failure on my side! 23:29
at least I can reporoduce now :-P
vrurg patrickb: That's the best part. 23:31
vrurg is crazy about a method behaving differently with seemingly same parameters.
patrickb: ping me if you get it fixed. I'll be doing my other stuff. 23:33
patrickb vrurg: OK. Thanks so far!
vrurg NP, welcome! BTW, I'm available until 11pm EST. 23:34
patrickb vrurg: Quick fix: rm -rf .git in MoarVM before calling Configure. 23:43
:-/
vrurg patrickb: Found ../install/bin/moar version 2018.12, which is too old. Wanted at least 2018.12-94-g2eab275df 23:47
patrickb cleaner solution: Call `git remote add official github.com/MoarVM/MoarVM.git && git fetch official` before Configure
argh!
Sorry, you'll have to do a new clone :-/
23:47 j3nnn1 left
vrurg with .git delete its inevitable. ;) 23:48
*deleted
patrickb so just to make sure we get it right this time:
git clone [email@hidden.address]
cd MoarVM/
git remote add official github.com/MoarVM/MoarVM.git && git fetch official 23:49
./Configure.pl --prefix=../install
cat src/gen/config.h |grep VERSION
^ that should give 2018.08-28-g0f77a741a
vrurg Yep, that's the line! 23:50
But what about nqp? It still requires newer moar! 23:51
patrickb ?!? 23:52
vrurg When I try building nqp from your repo and reloc branch it fails to configure. 23:53
patrickb I see it
give me a moment
vrurg But that's not relevant now. moar is not relocatable: 23:54
dyld: Library not loaded: /Users/vrurg/tmp/MoarVM/../install/lib/libmoar.dylib
macOS has very strict rules with regard to locating dynamic libraries. 23:55
not sure if your idea would ever work here.
patrickb did you move the folder? 23:57
vrurg Yes 23:58
patrickb and it works without moving the folder?
vrurg It does.
~/tmp/install/bin/moar --version 20-02-19 18:58
This is MoarVM version 2018.08-28-g0f77a741a built with JIT support