How can I understand why Linenoise cannot be installed?

This is on 64-bit Windows 10 Pro with MSVC 2015. This question has a long body because I want to give full information in advance, but the actual question is pretty simple:

How can I get pandato maintain the working directory (for example cpanm) after the installation fails so that I can diagnose what went wrong?

As can be seen from the log below, it linenoise.dllis created in the right place, but the installation time comes, it can not be found anywhere.

The catalog .panda-workis %TEMP%missing.


I just built Rakudo from the source by doing

  • git clone git://github.com/rakudo/rakudo.git
  • cd rakudo
  • set CFLAGS=/O2 /favor:INTEL64 /Qpar
  • perl Configure.pl --gen-moar --gen-nqp --backends=moar --prefix=c:/opt/perl6
  • nmake test
  • nmake install
  • nmake spectest ← The number of crashes has increased since the last time I tried this, but this is not related to my question.

panda, :

  • git clone --recursive git://github.com/tadzik/panda.git
  • cd panda
  • perl6 bootstrap.pl

.

panda install Task::Star

:

==> Building NativeHelpers::Blob
==> Testing NativeHelpers::Blob

t/00-trivial.t ..
Dubious, test returned 5 (wstat 1280, 0x500)
Failed 1/1 subtests

, .

, , :

C:\Users\...\Temp> panda install Linenoise
==> Fetching Linenoise
==> Building Linenoise

Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl -c  /nologo /MT /Ox /GL /DNDEBUG  /DWIN32 /DAO_ASSUME_WINDOWS98  /O2 /favor:INTEL64 /Qpar /Folinenoise.obj linenoise.c
linenoise.c
        perl6 -e "mkdir 'resources'; mkdir 'resources/libraries'"
        link /dll /nologo /LTCG  shell32.lib ws2_32.lib mswsock.lib rpcrt4.lib advapi32.lib psapi.lib iphlpapi.lib userenv.lib /out:resources/libraries/libline
noise.dll linenoise.obj
Generating code
Finished generating code
        cl /Foconstant-helper /nologo /MT /Ox /GL /DNDEBUG  /DWIN32 /DAO_ASSUME_WINDOWS98  /O2 /favor:INTEL64 /Qpar constant-helper.c
constant-helper.c
Generating code
Finished generating code
        perl6 fill-constants.pl  lib/Linenoise.pm
==> Testing Linenoise
==> Installing Linenoise
Failed to open file C:\Users\...\Temp\.panda-work\1483278033_1\resources\libraries\linenoise.dll: no such file or directory
  in any  at C:\opt\perl6/share/perl6/runtime/CORE.setting.moarvm line 1
  in block  at C:\opt\perl6\share\perl6\site\sources\85367160D11E565B2D089507C79BC309215430D6 (Panda::Installer) line 61
  in sub indir at C:\opt\perl6\share\perl6\site\sources\24811C576EF8F85E7672B26955C802BB2FC94675 (Panda::Common) line 20
  in method install at C:\opt\perl6\share\perl6\site\sources\85367160D11E565B2D089507C79BC309215430D6 (Panda::Installer) line 42
  in method install at C:\opt\perl6\share\perl6\site\sources\582CB7486602954A4601BDCE5A0EAC54B05DA58A (Panda) line 190
  in method resolve at C:\opt\perl6\share\perl6\site\sources\582CB7486602954A4601BDCE5A0EAC54B05DA58A (Panda) line 263
  in sub MAIN at C:\opt\perl6\share\perl6\site\resources\1C71F7B377C6F2C6C4707E3C25016AA25A2926B1 line 20
  in block  at C:\opt\perl6\share\perl6\site\resources\1C71F7B377C6F2C6C4707E3C25016AA25A2926B1 line 165

Actually thrown at:
  in method throw at C:\opt\perl6/share/perl6/runtime/CORE.setting.moarvm line 1
  in any  at gen/moar/Metamodel.nqp line 3072
  in block  at C:\opt\perl6\share\perl6\site\sources\85367160D11E565B2D089507C79BC309215430D6 (Panda::Installer) line 61
  in sub indir at C:\opt\perl6\share\perl6\site\sources\24811C576EF8F85E7672B26955C802BB2FC94675 (Panda::Common) line 20
  in method install at C:\opt\perl6\share\perl6\site\sources\85367160D11E565B2D089507C79BC309215430D6 (Panda::Installer) line 42
  in method install at C:\opt\perl6\share\perl6\site\sources\582CB7486602954A4601BDCE5A0EAC54B05DA58A (Panda) line 190
  in method resolve at C:\opt\perl6\share\perl6\site\sources\582CB7486602954A4601BDCE5A0EAC54B05DA58A (Panda) line 263
  in sub MAIN at C:\opt\perl6\share\perl6\site\resources\1C71F7B377C6F2C6C4707E3C25016AA25A2926B1 line 20
  in block  at C:\opt\perl6\share\perl6\site\resources\1C71F7B377C6F2C6C4707E3C25016AA25A2926B1 line 165
+4
1

Build.pm Linenoise . 'lib' , . $*VM.platform-library-name, linenoise.dll, liblinenoise.dll

, Linenoise , .

, zef panda. , , ~/.zef/store/p6-linenoise.git

+3

Source: https://habr.com/ru/post/1665455/


All Articles