Comments (8)
Here's a simple test repo that demonstrates the issue with this workflow.
from actions-setup-perl.
Here's the same error on 5.34 attempting to build Encode.
from actions-setup-perl.
Workaround: use os: windows-2019
instead of os: windows-latest
.
from actions-setup-perl.
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.
fixed by #1704
from actions-setup-perl.
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.
Oh, not tagged yet.
from actions-setup-perl.
Can confirm it works on windows-2019.
from actions-setup-perl.
Related Issues (20)
- Perl version 5.34.1 not working HOT 2
- GITHUB_TOKEN permissions used by this action HOT 1
- Caching happens earlier than expected HOT 1
- x86_64-linux not set in PERL5LIB HOT 2
- Add support for Perl built with C++ HOT 7
- The `set-output` command is deprecated HOT 2
- Want to disable error message in raw logs HOT 1
- setupperl.blob.core.windows.net server not found, unable to install Strawberry Perl HOT 3
- shogo82148/actions-setup-perl@v1 failed on Perl 5.8.9 HOT 1
- Suggestion: perl-version-file input support?
- Error about missing .python-version file HOT 4
- Consider including Module::Build HOT 2
- Install module default arguments
- Test::Warnings fails to install HOT 1
- Not possible to install `dev` and `blead`
- $GITHUB_WORKDIR/local is unexpectedly added to @INC HOT 5
- `cpanm` crashes with Perl `5.16`
- Has CPAN::Meta::Requirements been Removed? HOT 3
- Add Universal CRT? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actions-setup-perl.