Pugs (perl6) compile fails

dvergin on 2005-03-15T06:46:13

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.

The "perl Makefile.PL" went fine. But then no joy...

C:\bin\perl6\Perl6-Pugs-6.0.11>nmake

Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved.

cp lib/Perl6/Pugs.pm blib\lib\Perl6\Pugs.pm cp lib/Kwid.pm C:\bin\perl6\Perl6-Pugs-6.0.11\blib6\lib\Kwid.pm cp lib/perlkwid.kwid C:\bin\perl6\Perl6-Pugs-6.0.11\blib6\lib\perlkwid.kwid C:\Perl\bin\perl.exe -Iinc -MExtUtils::Command -e cp kwid C:\bin\perl6\P erl6-Pugs-6.0.11\blib6\script\kwid pl2bat.bat C:\bin\perl6\Perl6-Pugs-6.0.11\blib6\script\kwid cp lib/Pugs/MakeMaker.pm C:\bin\perl6\Perl6-Pugs-6.0.11\blib\lib\Pugs\MakeMaker. pm cp lib/Test.pm C:\bin\perl6\Perl6-Pugs-6.0.11\blib6\lib\Test.pm C:\Perl\bin\perl.exe -Iutil -MPugsConfig -e "PugsConfig->write_config_mo dule" > src\Config.hs ghc --make -static -Wall -fno-warn-deprecations -fno-warn-missing-signat ures -fno-warn-name-shadowing -o pugs src\Main.hs -isrc

C:\bin\perl6\Perl6-Pugs-6.0.11>\ghc\ghc-6.4\bin\ghc.exe --make -static -Wall -fn o-warn-deprecations -fno-warn-missing-signatures -fno-warn-name-shadowing -o pug s src\Main.hs Chasing modules from: src/Main.hs Could not find module `Posix': use -v to see a list of the files searched for (imported from src/Main.hs) NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code '0x1' Stop.

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.