Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

New PDL problem on Windows XP SP2

by jschollen (Sexton)
on Feb 13, 2006 at 18:03 UTC ( #529880=perlquestion: print w/replies, xml ) Need Help??

jschollen has asked for the wisdom of the Perl Monks concerning the following question:

Hi all,

looks like PDL is back to haunt me :-(
I'm very greatfull for all the help you have given me. Now, a new problem arouse.

I was trying to compile PDL 2.4.2 again on another Windows XP SP2 machine (Which has Platform SDK for Windows Server 2003 SP1, Microsoft .NET framework SDK 1.1, .Net framework, NMake 1.50, Microsoft Visual C++ Toolkit 2003 and Absoft Pro Fortran 8.0). I'm still using perl 5.8.6.

After I changed:
cd Basic\Core nmake Core.xs del getdev.pl # this one is important, otherwise you get a # circular Makefile dependence! cd ..\.. perl Makefile.PL # with F77CONF=win32/win32f77.pl if you want slate +c nmake

I get the following error message:
Running Mkbootstrap for PDL::Graphics::PGPLOT::Window () C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 Window.b +s C:\Perl\bin\perl.exe -MExtUtils::Mksymlists -e "Mksymlists('N +AME'=>\"PD L::Graphics::PGPLOT::Window\", 'DLBASE' => 'Window', 'DL_FUNCS' => { +}, 'FUNCLI ST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);" link -out:..\..\..\blib\arch\auto\PDL\Graphics\PGPLOT\Window\W +indow.dll -dll -nologo -nodefaultlib -debug -opt:ref,icf -libpath:"C:\Perl\lib\ +CORE" -ma chine:x86 Window.obj C:\Perl\lib\CORE\perl58.lib oldnames.lib kernel +32.lib use r32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib +ole32.lib oleaut32.lib netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib vers +ion.lib od bc32.lib odbccp32.lib msvcrt.lib -def:Window.def Creating library ..\..\..\blib\arch\auto\PDL\Graphics\PGPLOT\Window +\Window.li b and object ..\..\..\blib\arch\auto\PDL\Graphics\PGPLOT\Window\Window +.exp C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 755 ..\..\.. +\blib\arch \auto\PDL\Graphics\PGPLOT\Window\Window.dll C:\Perl\bin\perl.exe -MExtUtils::Command -e cp Window.bs ..\.. +\..\blib\a rch\auto\PDL\Graphics\PGPLOT\Window\Window.bs C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 ..\..\.. +\blib\arch \auto\PDL\Graphics\PGPLOT\Window\Window.bs cp LUT.pm ..\..\blib\lib\PDL\Graphics\LUT.pm NMAKE : fatal error U1095: expanded command line '@ C:\Perl\bin\perl.e +xe -MExtUt ils::Install -e "pm_to_blib({@ARGV}, '..\..\..\blib\lib\auto', '')" st +airs9.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/stairs9.fits random3.fits +..\..\..\b lib\lib\PDL\Graphics\LUT\tables/random3.fits ramp.fits ..\..\..\blib\ +lib\PDL\Gr aphics\LUT\tables/ramp.fits aips0.fits ..\..\..\blib\lib\PDL\Graphics +\LUT\table s/aips0.fits idl4.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/idl4 +.fits sta irs8.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/stairs8.fits rand +om5.fits . .\..\..\blib\lib\PDL\Graphics\LUT\tables/random5.fits rainbow2.fits . +.\..\..\bl ib\lib\PDL\Graphics\LUT\tables/rainbow2.fits random2.fits ..\..\..\bl +ib\lib\PDL \Graphics\LUT\tables/random2.fits rainbow4.fits ..\..\..\blib\lib\PDL +\Graphics\ LUT\tables/rainbow4.fits rainbow.fits ..\..\..\blib\lib\PDL\Graphics\ +LUT\tables /rainbow.fits smooth2.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/ +smooth2.fi ts blue.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/blue.fits smo +oth3.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/smooth3.fits red.fits ..\.. +\..\blib\l ib\PDL\Graphics\LUT\tables/red.fits green.fits ..\..\..\blib\lib\PDL\ +Graphics\L UT\tables/green.fits random4.fits ..\..\..\blib\lib\PDL\Graphics\LUT\ +tables/ran dom4.fits bgyrw.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/bgyrw. +fits colo r.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/color.fits staircase +.fits ..\. .\..\blib\lib\PDL\Graphics\LUT\tables/staircase.fits idl6.fits ..\..\ +..\blib\li b\PDL\Graphics\LUT\tables/idl6.fits light.fits ..\..\..\blib\lib\PDL\ +Graphics\L UT\tables/light.fits rainbow3.fits ..\..\..\blib\lib\PDL\Graphics\LUT +\tables/ra inbow3.fits idl11.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/idl1 +1.fits id l15.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/idl15.fits backgr. +fits ..\.. \..\blib\lib\PDL\Graphics\LUT\tables/backgr.fits manycol.fits ..\..\. +.\blib\lib \PDL\Graphics\LUT\tables/manycol.fits isophot.fits ..\..\..\blib\lib\ +PDL\Graphi cs\LUT\tables/isophot.fits random6.fits ..\..\..\blib\lib\PDL\Graphic +s\LUT\tabl es/random6.fits idl2.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/i +dl2.fits idl12.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/idl12.fits rando +m1.fits .. \..\..\blib\lib\PDL\Graphics\LUT\tables/random1.fits pastel.fits ..\. +.\..\blib\ lib\PDL\Graphics\LUT\tables/pastel.fits idl5.fits ..\..\..\blib\lib\P +DL\Graphic s\LUT\tables/idl5.fits smooth.fits ..\..\..\blib\lib\PDL\Graphics\LUT +\tables/sm ooth.fits idl14.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/idl14. +fits' too long Stop. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code + '0x2' Stop. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code + '0x2' Stop. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code + '0x2' Stop.

I installed the latest ExtUtil::MakeMaker (version 6.30)

I also deactivaded the PLPLOT and the SLATEC functions in perldl.conf and ran perl MakeFile.PL again, after which I ran nmake again.
Unfortunately, all efforts seem in vain.

Can someone help me?

Edit: g0n - readmore tags

Replies are listed 'Best First'.
Re: New PDL problem on Windows XP SP2
by PodMaster (Abbot) on Feb 13, 2006 at 20:18 UTC
    The error is NMAKE : fatal error U1095: expanded command line '@ ***snip*** too long

    Its a problem with MakeMaker. MakeMaker 6.26 is known to work.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

      Thanks for the info.

      I have allready installed MakeMaker 6.30 (I read about it on the internet), but still the same problem occured.
        How about you try MakeMaker-6.26?

        MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
        I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
        ** The third rule of perl club is a statement of fact: pod is sexy.

Re: New PDL problem on Windows XP SP2
by syphilis (Bishop) on Feb 13, 2006 at 22:37 UTC
    I recommend that you obtain the latest version of PDL from the CVS repository (http://sourceforge.net/cvs/?group_id=612) on Sourceforge as it builds "straight out of the box" on Win32. Hopefully this will become version 2.4.3 on cpan before too much longer.

    (Actually it doesn't quite build straight out of the box .... EU::MM-6.30 currently breaks that CVS version on Win32. I'm in the process of amending that PDL source so that it will build with EU::MM-6.30 and should have those amendments in place in a couple of hours or so. Oh ... and in addition ... limits_normalize_dsets.t fails because of a Test::More bug .... I'll fix that, too, while I'm at it.)

    Cheers,
    Rob
      Thanks for the code.

      Should I compile this code once I've downloaded it?
      When I run: perl MakeFile.pl
      and than: nmake
      I still get the same error:
      cp Window.pm ..\..\..\blib\lib\PDL\Graphics\PGPLOT\Window.pm C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils/xsubpp -typemap C:\ +Perl\lib\E xtUtils\typemap -typemap typemap Window.xs > Window.xsc && C:\Perl\bi +n\perl.exe -MExtUtils::Command -e mv Window.xsc Window.c Please specify prototyping behavior for Window.xs (see perlxs manual) cl -c -nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSO +LE -DNO_ST RICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DPERL_IMPLICIT_CONTEXT -DPERL_I +MPLICIT_SY S -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1 -DVERSION +=\"2.4.2cv s\" -DXS_VERSION=\"2.4.2cvs\" "-IC:\Perl\lib\CORE" Window.c Window.c c1 : warning C4349: /Gf is deprecated and will not be supported in fut +ure versio ns of Visual C++; remove /Gf or use /GF instead Window.xs(82) : warning C4305: '=' : truncation from 'double' to 'floa +t' Window.xs(83) : warning C4305: '=' : truncation from 'double' to 'floa +t' Running Mkbootstrap for PDL::Graphics::PGPLOT::Window () C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 Window.b +s C:\Perl\bin\perl.exe -MExtUtils::Mksymlists -e "Mksymlists('N +AME'=>\"PD L::Graphics::PGPLOT::Window\", 'DLBASE' => 'Window', 'DL_FUNCS' => { +}, 'FUNCLI ST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);" link -out:..\..\..\blib\arch\auto\PDL\Graphics\PGPLOT\Window\W +indow.dll -dll -nologo -nodefaultlib -debug -opt:ref,icf -libpath:"C:\Perl\lib\ +CORE" -ma chine:x86 Window.obj C:\Perl\lib\CORE\perl58.lib oldnames.lib kernel +32.lib use r32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib +ole32.lib oleaut32.lib netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib vers +ion.lib od bc32.lib odbccp32.lib msvcrt.lib -def:Window.def Creating library ..\..\..\blib\arch\auto\PDL\Graphics\PGPLOT\Window +\Window.li b and object ..\..\..\blib\arch\auto\PDL\Graphics\PGPLOT\Window\Window +.exp C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 755 ..\..\.. +\blib\arch \auto\PDL\Graphics\PGPLOT\Window\Window.dll C:\Perl\bin\perl.exe -MExtUtils::Command -e cp Window.bs ..\.. +\..\blib\a rch\auto\PDL\Graphics\PGPLOT\Window\Window.bs C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 ..\..\.. +\blib\arch \auto\PDL\Graphics\PGPLOT\Window\Window.bs cp LUT.pm ..\..\blib\lib\PDL\Graphics\LUT.pm NMAKE : fatal error U1095: expanded command line '@ C:\Perl\bin\perl.e +xe -MExtUt ils::Install -e "pm_to_blib({@ARGV}, '..\..\..\blib\lib\auto', '')" st +airs9.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/stairs9.fits random3.fits +..\..\..\b lib\lib\PDL\Graphics\LUT\tables/random3.fits ramp.fits ..\..\..\blib\ +lib\PDL\Gr aphics\LUT\tables/ramp.fits aips0.fits ..\..\..\blib\lib\PDL\Graphics +\LUT\table s/aips0.fits idl4.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/idl4 +.fits sta irs8.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/stairs8.fits rand +om5.fits . .\..\..\blib\lib\PDL\Graphics\LUT\tables/random5.fits rainbow2.fits . +.\..\..\bl ib\lib\PDL\Graphics\LUT\tables/rainbow2.fits random2.fits ..\..\..\bl +ib\lib\PDL \Graphics\LUT\tables/random2.fits rainbow4.fits ..\..\..\blib\lib\PDL +\Graphics\ LUT\tables/rainbow4.fits rainbow.fits ..\..\..\blib\lib\PDL\Graphics\ +LUT\tables /rainbow.fits smooth2.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/ +smooth2.fi ts blue.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/blue.fits smo +oth3.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/smooth3.fits red.fits ..\.. +\..\blib\l ib\PDL\Graphics\LUT\tables/red.fits green.fits ..\..\..\blib\lib\PDL\ +Graphics\L UT\tables/green.fits random4.fits ..\..\..\blib\lib\PDL\Graphics\LUT\ +tables/ran dom4.fits bgyrw.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/bgyrw. +fits colo r.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/color.fits staircase +.fits ..\. .\..\blib\lib\PDL\Graphics\LUT\tables/staircase.fits idl6.fits ..\..\ +..\blib\li b\PDL\Graphics\LUT\tables/idl6.fits light.fits ..\..\..\blib\lib\PDL\ +Graphics\L UT\tables/light.fits rainbow3.fits ..\..\..\blib\lib\PDL\Graphics\LUT +\tables/ra inbow3.fits idl11.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/idl1 +1.fits id l15.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/idl15.fits backgr. +fits ..\.. \..\blib\lib\PDL\Graphics\LUT\tables/backgr.fits manycol.fits ..\..\. +.\blib\lib \PDL\Graphics\LUT\tables/manycol.fits isophot.fits ..\..\..\blib\lib\ +PDL\Graphi cs\LUT\tables/isophot.fits random6.fits ..\..\..\blib\lib\PDL\Graphic +s\LUT\tabl es/random6.fits idl2.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/i +dl2.fits idl12.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/idl12.fits rando +m1.fits .. \..\..\blib\lib\PDL\Graphics\LUT\tables/random1.fits pastel.fits ..\. +.\..\blib\ lib\PDL\Graphics\LUT\tables/pastel.fits idl5.fits ..\..\..\blib\lib\P +DL\Graphic s\LUT\tables/idl5.fits smooth.fits ..\..\..\blib\lib\PDL\Graphics\LUT +\tables/sm ooth.fits idl14.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/idl14. +fits' too long Stop. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code + '0x2' Stop. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code + '0x2' Stop. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code + '0x2' Stop.
        Looks to me that our outputs are basically similar until we get to:

        cp LUT.pm ..\..\blib\lib\PDL\Graphics\LUT.pm

        At that point you get some error message (the likes of which I've not seen before) whereas I simply get:

        nmake -f Makefile all -nologo

        Could you provide the output of 'perl -V' and tell us which compiler you're using. I hope you aren't using that free command line version of Visual Studio 7 that Microsoft have made available ... or that if you are using that compiler, then you have built your perl using that compiler. I'm not sure that I'm all that keen about troubleshooting the building of PDL with that compiler unless perl itself has been built with that compiler .... but I'll reserve judgement on that, for the moment :-)

        Also, take a look at the PDL win32/INSTALL file. Is there anything there that you find to be an acceptable (alternative) way of building PDL (as opposed to the way you're currently trying to build it) ?

        Cheers,
        Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://529880]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2021-02-25 19:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?