Git Product home page Git Product logo

Comments (8)

theory avatar theory commented on July 18, 2024

Here's a simple test repo that demonstrates the issue with this workflow.

from actions-setup-perl.

theory avatar theory commented on July 18, 2024

Here's the same error on 5.34 attempting to build Encode.

from actions-setup-perl.

shogo82148 avatar shogo82148 commented on July 18, 2024

Workaround: use os: windows-2019 instead of os: windows-latest.

from actions-setup-perl.

shogo82148 avatar shogo82148 commented on July 18, 2024

We want to use C:/strawberry/c/ld.exe because pre-built perl is built using it.
But it seems to use C:/mingw64/x86_64-w64-mingw32/bin/ld.exe.

2023-12-31T06:25:04,4564,List-MoreUtils-XS-0.430| Running Mkbootstrap for XS ()
2023-12-31T06:25:04,4564,List-MoreUtils-XS-0.430| "C:\hostedtoolcache\windows\perl\5.38.2-thr\x64\bin\perl.exe" -MExtUtils::Command -e chmod -- 644 "XS.bs"
2023-12-31T06:25:04,4564,List-MoreUtils-XS-0.430| "C:\hostedtoolcache\windows\perl\5.38.2-thr\x64\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonempty -- XS.bs blib\arch\auto\List\MoreUtils\XS\XS.bs 644
2023-12-31T06:25:04,4564,List-MoreUtils-XS-0.430| "C:\hostedtoolcache\windows\perl\5.38.2-thr\x64\bin\perl.exe" "C:\hostedtoolcache\windows\perl\5.38.2-thr\x64\lib\ExtUtils/xsubpp"  -typemap C:\hostedtoolcache\windows\perl\5.38.2-thr\x64\lib\ExtUtils\typemap  XS.xs > XS.xsc
2023-12-31T06:25:04,4564,List-MoreUtils-XS-0.430| "C:\hostedtoolcache\windows\perl\5.38.2-thr\x64\bin\perl.exe" -MExtUtils::Command -e mv -- XS.xsc XS.c
2023-12-31T06:25:04,4564,List-MoreUtils-XS-0.430| gcc -c  -I. -DWIN32 -DWIN64 -DPERL_TEXTMODE_SCRIPTS -DMULTIPLICITY -DPERL_IMPLICIT_SYS -DUSE_PERLIO -D__USE_MINGW_ANSI_STDIO -fwrapv -fno-strict-aliasing -mms-bitfields -Os   -DVERSION=\"0.430\" -DXS_VERSION=\"0.430\"  "-IC:\hostedtoolcache\windows\perl\5.38.2-thr\x64\lib\CORE"   XS.c
2023-12-31T06:25:04,4564,List-MoreUtils-XS-0.430| "C:\hostedtoolcache\windows\perl\5.38.2-thr\x64\bin\perl.exe" -MExtUtils::Mksymlists \
2023-12-31T06:25:04,4564,List-MoreUtils-XS-0.430|      -e "Mksymlists('NAME'=>\"List::MoreUtils::XS\", 'DLBASE' => 'XS', 'DL_FUNCS' => {  }, 'FUNCLIST' => [], 'IMPORTS' => {  }, 'DL_VARS' => []);"
2023-12-31T06:25:04,4564,List-MoreUtils-XS-0.430| g++ XS.def -o blib\arch\auto\List\MoreUtils\XS\XS.dll -shared -s -L"C:\hostedtoolcache\windows\perl\5.38.2-thr\x64\lib\CORE" -L"C:\strawberry\c\lib" -L"C:\strawberry\c\x86_64-w64-mingw32\lib" -L"C:\strawberry\c\lib\gcc\x86_64-w64-mingw32\8.1.0" XS.o   "C:\hostedtoolcache\windows\perl\5.38.2-thr\x64\lib\CORE\libperl538.a" -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 -Wl,--enable-auto-image-base
2023-12-31T06:25:04,4564,List-MoreUtils-XS-0.430| C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/lib/../lib/dllcrt2.o:crtdll.c:(.rdata$.refptr.__mingw_app_type[.refptr.__mingw_app_type]+0x0): undefined reference to `__mingw_app_type'
2023-12-31T06:25:04,4564,List-MoreUtils-XS-0.430| collect2.exe: error: ld returned 1 exit status
2023-12-31T06:25:04,4564,List-MoreUtils-XS-0.430| gmake.EXE: *** [Makefile:482: blib\arch\auto\List\MoreUtils\XS\XS.dll] Error 1
2023-12-31T06:25:05,4564,List-MoreUtils-XS-0.430| ! Retrying (you can turn off this behavior by --no-retry)
2023-12-31T06:25:05,4564,List-MoreUtils-XS-0.430| Executing C:\Strawberry\c\bin\gmake.EXE
2023-12-31T06:25:05,4564,List-MoreUtils-XS-0.430| "C:\hostedtoolcache\windows\perl\5.38.2-thr\x64\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonempty -- XS.bs blib\arch\auto\List\MoreUtils\XS\XS.bs 644
2023-12-31T06:25:05,4564,List-MoreUtils-XS-0.430| g++ XS.def -o blib\arch\auto\List\MoreUtils\XS\XS.dll -shared -s -L"C:\hostedtoolcache\windows\perl\5.38.2-thr\x64\lib\CORE" -L"C:\strawberry\c\lib" -L"C:\strawberry\c\x86_64-w64-mingw32\lib" -L"C:\strawberry\c\lib\gcc\x86_64-w64-mingw32\8.1.0" XS.o   "C:\hostedtoolcache\windows\perl\5.38.2-thr\x64\lib\CORE\libperl538.a" -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 -Wl,--enable-auto-image-base
2023-12-31T06:25:05,4564,List-MoreUtils-XS-0.430| C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/lib/../lib/dllcrt2.o:crtdll.c:(.rdata$.refptr.__mingw_app_type[.refptr.__mingw_app_type]+0x0): undefined reference to `__mingw_app_type'
2023-12-31T06:25:05,4564,List-MoreUtils-XS-0.430| collect2.exe: error: ld returned 1 exit status
2023-12-31T06:25:05,4564,List-MoreUtils-XS-0.430| gmake.EXE: *** [Makefile:482: blib\arch\auto\List\MoreUtils\XS\XS.dll] Error 1
2023-12-31T06:25:05,4564,List-MoreUtils-XS-0.430| Failed to install distribution
2023-12-31T06:25:05,4564| --
2023-12-31T06:25:05,4564| Installation failed. The direct cause of the failure comes from the following packages/distributions; you may want to grep this log file by them:
2023-12-31T06:25:05,4564|  * List-MoreUtils-XS-0.430

Why... 🤔

from actions-setup-perl.

shogo82148 avatar shogo82148 commented on July 18, 2024

fixed by #1704

from actions-setup-perl.

theory avatar theory commented on July 18, 2024

A path issue, naturally. I re-ran my test case and got the same error; I presume the action was cached?

from actions-setup-perl.

theory avatar theory commented on July 18, 2024

Oh, not tagged yet.

from actions-setup-perl.

theory avatar theory commented on July 18, 2024

Can confirm it works on windows-2019.

from actions-setup-perl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.