Perl 6 - the future is here, just unevenly distributed

IRC log for #native, 2016-05-02

| Channels | #native index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
20:01 sivoais What would it take to standardise passing in parallel make builds (e.g., -j4) to Alien modules? Is this something that would be better done at a higher level with people in #toolchain ?
20:03 sivoais I see that GNU make has the MAKEFLAGS environment variable
20:05 sivoais and I see that dmake also uses it
20:05 jberger I really don't know what would be sane here
20:06 jberger questions like those are why I'm sure I've left my depth ;-P
20:08 sivoais I finally got my Appveyor build for one project working!
20:09 sivoais ... after  105 builds *grumble*
20:09 sivoais But it builds Gtk3 and tests it all under Windows
20:09 sivoais still need to squash it, but here it is <https://github.com/project-renard/curie/pull/86>
20:10 plicease the challenges with appveyor aren't so much with appveyor but with windows.
20:11 sivoais yes, it's mostly Windows, but having so many things in the PATH by default did get in the way. :-P
20:11 plicease true that doesn't help.
20:11 sivoais I had to figure out that the version of cc in the path is not the same as the MSYS2 gcc O_o
20:12 sivoais err, the MSYS-mingw64 gcc
20:12 sivoais *MSYS2-mingw64 gcc* There. ETOOMANYTOOLCHAINS
20:12 plicease strawberry "simplified" things by bundling its own gcc
20:12 plicease also MSYS2 simplifies things by having its own perl.
20:13 plicease windows is so simplified see?
20:13 sivoais hahah :-D
20:13 plicease is -j generally supported by make?
20:13 sivoais I don't think so. dmake doesn't support it. It uses -P
20:14 plicease so that is a challenge too.
20:14 plicease what about MAKEFLAGS
20:14 plicease ?
20:15 plicease my other question is: can you generally assume that a project is safe to build parallel?
20:15 sivoais I know that dmake and gmake support it, but other platforms will certainly be more interesting. I'll look up the POSIX page.
20:15 sivoais True, that's not necessarily the case.
20:15 plicease I checked BSD make mentions it in the man page.
20:15 plicease at least on FreeBSD
20:16 plicease wait that is -j not MAKEFLAGS (though that may be supported too)
20:16 sivoais POSIX also mentions MAKEFLAGS <http://pubs.opengroup.org/onlinepubs/009695399/utilities/make.html>
20:18 sivoais I only ask because my CI builds for Alien::MuPDF are really slow :-)
20:18 plicease I think there is a standard way to specify parallel testing for Perl modules, but I am not sure about parallel build.
20:19 plicease if there is though, it might make sense to detect it and add a %{cpu} or something like that which can be optionally used.
20:19 plicease are there any Alien::Base based Aliens that use dmake on Windows?
20:19 plicease most of mine actually use gmake from MSYS
20:19 plicease Alien::MSYS
20:22 sivoais Not that I know of. We can also patch dmake itself. Just ask mohawk. ;-)
20:29 plicease if the toolchain doesn't have a good way to do it we can also add an environment variable say ALIEN_CPU_COUNT
20:33 sivoais I'll link this over to #toolchain in case they know of anything
20:37 sivoais I think that MAKEFLAGS="-j4" cpanm Alien::MuPDF works decently as is. It may be too complex to leave something system dependent like that to the Alien::* module author.
20:37 sivoais YAGNI for now?
21:37 plicease yup

| Channels | #native index | Today | | Search | Google Search | Plain-Text | summary