dvergin's Journal http://use.perl.org/~dvergin/journal/ dvergin's use Perl Journal en-us use Perl; is Copyright 1998-2006, Chris Nandor. Stories, comments, journals, and other submissions posted on use Perl; are Copyright their respective owners. 2012-01-25T02:42:41+00:00 pudge pudge@perl.org Technology hourly 1 1970-01-01T00:00+00:00 dvergin's Journal http://use.perl.org/images/topics/useperl.gif http://use.perl.org/~dvergin/journal/ More Perl6-Pugs feedback http://use.perl.org/~dvergin/journal/23673?from=rss First a compile problem with a recent revision. Farther down, an issue with postpositionals. <p> Yesterday I posted a Pugs issue simply as a record for my own use and then was surprised to see that <a href="http://use.perl.org/~autrijus/journal/23663">the gods had taken notice</a> (search on the page for "dvergin"). I applied the <a href="http://rt.openfoundry.org/Foundry/Project/Source/index.html/pugs/diff/Makefile.PL?rev1=739&amp;rev2=746">needed patch</a> by hand &lt;shrug&gt; and am up and running again with Perl6-Pugs-6.0.11. </p><p> Thus emboldened, I located <a href="http://svn.openfoundry.org/pugs/">the browsable svn repository</a> and wget'ed the package (too lazy to set up a subversion client). The version I grabbed (779) has compile probs under WinXP SP2 with ghc 6.4 again. </p><p> Here's the beginning of the (working) hand-patched Perl6-Pugs-6.0.11 install: </p><blockquote><div><p> <tt>C:\bin\perl6\Perl6-Pugs-6.0.11&gt;perl Makefile.PL<br>*** Readline support disabled.&nbsp; If you want readline support,<br>&nbsp; &nbsp; please install Term::ReadLine::Gnu from CPAN, as well as<br>&nbsp; &nbsp; the GNU Readline headers and shared library.<br>Writing Makefile for Kwid<br>Writing Makefile for Pugs::MakeMaker<br>Writing Makefile for Test<br>Writing Makefile for Perl6::Pugs<br> <br>C:\bin\perl6\Perl6-Pugs-6.0.11&gt;nmake<br> <br>Microsoft (R) Program Maintenance Utility&nbsp; &nbsp;Version 1.50<br>Copyright (c) Microsoft Corp 1988-94. All rights reserved.<br> <br>&nbsp; &nbsp; &nbsp; &nbsp; C:\Perl\bin\perl.exe -Iinc -MExtUtils::Command -e cp kwid C:\bin\perl6\P<br>erl6-Pugs-6.0.11\blib6\script\kwid<br>&nbsp; &nbsp; &nbsp; &nbsp; pl2bat.bat C:\bin\perl6\Perl6-Pugs-6.0.11\blib6\script\kwid<br>&nbsp; &nbsp; &nbsp; &nbsp; ghc --make -isrc -static -Wall -fno-warn-missing-signatures -fno-warn-na<br>me-shadowing -o pugs src\Main.hs<br> <br>C:\bin\perl6\Perl6-Pugs-6.0.11&gt;\ghc\ghc-6.4\bin\ghc.exe --make -isrc -static -Wa<br>ll -fno-warn-missing-signatures -fno-warn-name-shadowing -o pugs src\Main.hs<br>Chasing modules from: src/Main.hs<br>Skipping&nbsp; Config&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;( src/Config.hs, src/Config.o )<br>Skipping&nbsp; Help&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;( src/Help.hs, src/Help.o )<br>Skipping&nbsp; UTF8&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;( src/UTF8.lhs, src/UTF8.o )<br>Skipping&nbsp; Cont&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;( src/Cont.hs, src/Cont.o )<br>Skipping&nbsp; Rule.Pos&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;( src/Rule/Pos.hs, src/Rule/Pos.o )</tt></p></div> </blockquote><p> But here is the same thing for Revision 779: </p><blockquote><div><p> <tt>C:\bin\perl6\svn.openfoundry.org\pugs&gt;perl Makefile.PL<br>*** Readline support disabled.&nbsp; If you want readline support,<br>&nbsp; &nbsp; please install Term::ReadLine::Gnu from CPAN, as well as<br>&nbsp; &nbsp; the GNU Readline headers and shared library.<br>Writing Makefile for Kwid<br>Writing Makefile for Pugs::MakeMaker<br>Writing Makefile for Test<br>Writing Makefile for Perl6::Pugs<br> <br>C:\bin\perl6\svn.openfoundry.org\pugs&gt;nmake<br> <br>Microsoft (R) Program Maintenance Utility&nbsp; &nbsp;Version 1.50<br>Copyright (c) Microsoft Corp 1988-94. All rights reserved.<br> <br>&nbsp; &nbsp; &nbsp; &nbsp; ghc --make -Wall -fno-warn-missing-signatures -fno-warn-name-shadowing -<br>o<nobr> <wbr></nobr>./kwid.exe<nobr> <wbr></nobr>./src\Main.hs -i"./src"<br> <br>C:\bin\perl6\svn.openfoundry.org\pugs\ext\Kwid&gt;\ghc\ghc-6.4\bin\ghc<nobr> <wbr></nobr>.exe --make -<br>Wall -fno-warn-missing-signatures -fno-warn-name-shadowing -o<nobr> <wbr></nobr>./kwid.exe<nobr> <wbr></nobr>./src\M<br>ain.hs -i"./src"<br>Chasing modules from:<nobr> <wbr></nobr>./src/Main.hs<br>ghc.exe: can't find file `./src/Main.hs'<br>NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code '0x1'<br>Stop.<br>NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code '0x2'<br>Stop.</tt></p></div> </blockquote><p> I did some diff's but couldn't find the source of the problem. I do notice the difference between -isrc and -i"./src" but can't find the source of this and can't dope out its implications. </p><p> ------------------------------------------- </p><p> Meanwhile I have found some problems with the compiled Perl6-Pugs-6.0.11. This started out as something else involving postposition calls failing in other than simple settings. Here are a few tests that seem to demonstrate the problem: </p><blockquote><div><p> <tt>#!/usr/bin/perl6<br>use v6;<br> <br>require Test;<br> <br>my $filename = 'tempfile';<br> <br>my $out = open("&gt;$filename");<br> <br>is($out.ref,&nbsp; 'Handle',&nbsp; &nbsp;'Postposition<nobr> <wbr></nobr>.ref works when alone');<br>is(ref($out), 'Handle',&nbsp; &nbsp;'Function ref() works alone');<br>ok(ref($out) eq 'Handle', 'Function ref() works in a statement');<br>#ok($out.ref&nbsp; eq 'Handle', 'But<nobr> <wbr></nobr>.ref crashes in a statement');<br>$out.close;<br> <br>my $num = 2.5<br>is($num,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2.5, '$num is 2.5');<br>is(int($num),&nbsp; &nbsp; &nbsp;2,&nbsp; &nbsp;'int() works alone');<br>is($num.int,&nbsp; &nbsp; &nbsp; 2,&nbsp; &nbsp;'.int works alone');<br>is($num + 1,&nbsp; &nbsp; &nbsp; 3.5, '$num + 1 is 3.5');<br>is(int($num) + 1, 3,&nbsp; &nbsp;'int() works in a statement');<br>#is($num.int&nbsp; + 1, 3, 'But<nobr> <wbr></nobr>.int crashes in a statement');</tt></p></div> </blockquote> dvergin 2005-03-16T05:40:42+00:00 journal Pugs (perl6) compile fails http://use.perl.org/~dvergin/journal/23656?from=rss I previously had Perl6-Pugs-6.0.9 working just fine. Now Perl6-Pugs-6.0.11 is out. I upgraded to GHC 6.4 and went at it. <p> The "perl Makefile.PL" went fine. But then <i>no joy</i>... </p><blockquote><div><p> <tt>C:\bin\perl6\Perl6-Pugs-6.0.11&gt;nmake<br> <br>Microsoft (R) Program Maintenance Utility&nbsp; &nbsp;Version 1.50<br>Copyright (c) Microsoft Corp 1988-94. All rights reserved.<br> <br>cp lib/Perl6/Pugs.pm blib\lib\Perl6\Pugs.pm<br>cp lib/Kwid.pm C:\bin\perl6\Perl6-Pugs-6.0.11\blib6\lib\Kwid.pm<br>cp lib/perlkwid.kwid C:\bin\perl6\Perl6-Pugs-6.0.11\blib6\lib\perlkwid.kwid<br>&nbsp; &nbsp; &nbsp; &nbsp; C:\Perl\bin\perl.exe -Iinc -MExtUtils::Command -e cp kwid C:\bin\perl6\P<br>erl6-Pugs-6.0.11\blib6\script\kwid<br>&nbsp; &nbsp; &nbsp; &nbsp; pl2bat.bat C:\bin\perl6\Perl6-Pugs-6.0.11\blib6\script\kwid<br>cp lib/Pugs/MakeMaker.pm C:\bin\perl6\Perl6-Pugs-6.0.11\blib\lib\Pugs\MakeMaker.<br>pm<br>cp lib/Test.pm C:\bin\perl6\Perl6-Pugs-6.0.11\blib6\lib\Test.pm<br>&nbsp; &nbsp; &nbsp; &nbsp; C:\Perl\bin\perl.exe -Iutil -MPugsConfig -e "PugsConfig-&gt;write_config_mo<br>dule" &gt; src\Config.hs<br>&nbsp; &nbsp; &nbsp; &nbsp; ghc --make -static -Wall -fno-warn-deprecations -fno-warn-missing-signat<br>ures -fno-warn-name-shadowing -o pugs src\Main.hs -isrc<br> <br>C:\bin\perl6\Perl6-Pugs-6.0.11&gt;\ghc\ghc-6.4\bin\ghc.exe --make -static -Wall -fn<br>o-warn-deprecations -fno-warn-missing-signatures -fno-warn-name-shadowing -o pug<br>s src\Main.hs<br>Chasing modules from: src/Main.hs<br>Could not find module `Posix':<br>&nbsp; use -v to see a list of the files searched for<br>&nbsp; (imported from src/Main.hs)<br>NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code '0x1'<br>Stop.</tt></p></div> </blockquote><p> Here's the odd part. If I edit src/Main.hs to move the reference to Posix farther up in the list of imports near the top of the file, it loads fine and whichever import that happens to be last causes the same error as Posix did above. I could not find a fiddle that solved the problem.</p> dvergin 2005-03-15T06:46:13+00:00 journal