Hi,
until now I was executing the buildwrapper for sonarQube locally on my mac and it was running fine without any problem. Now I moved it to our CI system where it also runs on a mac Buildagent. But on the agent it crashes with an unknown reason:
there is an issue with Perl 5.18, could you try to install a different version of Perl before calling build-wrapper? i.e. with brew install perl and checking output of perl --version before build-wrapper invocation.
Thanks Massimo, I installed a newer version of perl and was using this with success. What I’m still not really clear about is the fact that my local machine and the build server was using the exact same perl version 5.18.4 with different results.
I got the same error, even I update the perl version to 5.34.
When I compile using Mac EC2 connected with Jenkins, I got a similar error:
/bin/sh -c /tmp/workspace/test/derivedataPath/Build/Intermediates.noindex/Target.build/Debug-iphonesimulator/TargetTests.build/Script-67AB75842464A671001612EE.sh
perl: posix_spawn: /private/tmp/sonarsource-build-wrapper-cache-501/usr/bin/perl5.18: Unknown error: -1
perl: posix_spawn: /private/tmp/sonarsource-build-wrapper-cache-501/usr/bin/perl5.18: Unknown error: -1
@mpaladin Thanks. seems like Jenkins launching a new shell would omit the /usr/local/bin, as soon as I export that into $PATH the wrapper seems able to find the system perl.