Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

dvergin (1020)

  (email not shown publicly)

Programmer with living on Whidbey Island in Puget Sound in the state of Washington.

Journal of dvergin (1020)

Tuesday March 15, 2005
01:46 AM

Pugs (perl6) compile fails

[ #23656 ]
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...


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

cp lib/Perl6/ blib\lib\Perl6\
cp lib/ C:\bin\perl6\Perl6-Pugs-6.0.11\blib6\lib\
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
        pl2bat.bat C:\bin\perl6\Perl6-Pugs-6.0.11\blib6\script\kwid
cp lib/Pugs/ C:\bin\perl6\Perl6-Pugs-6.0.11\blib\lib\Pugs\MakeMaker.
cp lib/ C:\bin\perl6\Perl6-Pugs-6.0.11\blib6\lib\
        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'

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.