[JIRA] (JENKINS-37430) PowerPC (ppc64le) compatibility

1 view
Skip to first unread message

aburdajewicz@cloudbees.com (JIRA)

unread,
Aug 15, 2016, 9:18:01 PM8/15/16
to jenkinsc...@googlegroups.com
Allan BURDAJEWICZ created an issue
 
Jenkins / Improvement JENKINS-37430
PowerPC (ppc64le) compatibility
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: ssh-agent-plugin
Created: 2016/Aug/16 1:17 AM
Environment: PowerPC
Jenkins 1.642
SSH Agent 1.9
Priority: Major Major
Reporter: Allan BURDAJEWICZ

Issue

Running Jenkins on PowerPC (ppc64le), when trying to use SSH-Agent we are getting below error:

```
[ssh-agent] Caused by: java.lang.UnsatisfiedLinkError: could not locate stub library in jar file. Tried [jni/unknown-Linux/libjffi-1.2.so, /jni/unknown-Linux/libjffi-1.2.so]
```

Resolution

It looks like version 2.0.3+ of jnr-iff is where ppc64le adds compatibility:

So compatibility could be provided by upgrading the following dependencies:

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

aburdajewicz@cloudbees.com (JIRA)

unread,
Aug 15, 2016, 9:23:01 PM8/15/16
to jenkinsc...@googlegroups.com
Allan BURDAJEWICZ updated an issue
Change By: Allan BURDAJEWICZ
h3. Issue


Running Jenkins on PowerPC (ppc64le), when trying to use SSH-Agent we are getting below error:

``` {code}
[ssh-agent] Caused by: java.lang.UnsatisfiedLinkError: could not locate stub library in jar file. Tried [jni/unknown-Linux/libjffi-1.2.so, /jni/unknown-Linux/libjffi-1.2.so]
``` {code}

h3. Resolution

It looks like version 2.0.3+ of _jnr-iff_ is where _ppc64le_ adds compatibility:

* https://github.com/jnr/jnr-ffi/commit/6d8cdc0ce1a5d6dcfbec5c3b635bfe3232088273


So compatibility could be provided by upgrading the following dependencies:

aburdajewicz@cloudbees.com (JIRA)

unread,
Aug 15, 2016, 9:25:06 PM8/15/16
to jenkinsc...@googlegroups.com
Allan BURDAJEWICZ updated an issue
 
Jenkins / New Feature JENKINS-37430
PowerPC (ppc64le) compatibility
Change By: Allan BURDAJEWICZ
Issue Type: Improvement New Feature

aburdajewicz@cloudbees.com (JIRA)

unread,
Aug 15, 2016, 9:52:02 PM8/15/16
to jenkinsc...@googlegroups.com
Allan BURDAJEWICZ updated an issue
h3. Issue

Running Jenkins on PowerPC (ppc64le), when trying to use SSH-Agent we are getting below error:

{code}
[ssh-agent] Caused by: java.lang.UnsatisfiedLinkError: could not locate stub library in jar file. Tried [jni/unknown-Linux/libjffi-1.2.so, /jni/unknown-Linux/libjffi-1.2.so]
[ssh-agent] at com.kenai.jffi.internal.StubLoader.getStubLibraryStream(StubLoader.java:353)
[ssh-agent] at com.kenai.jffi.internal.StubLoader.loadFromJar(StubLoader.java:300)
[ssh-agent] at com.kenai.jffi.internal.StubLoader.load(StubLoader.java:235)
[ssh-agent] at com.kenai.jffi.internal.StubLoader.<clinit>(StubLoader.java:403)
[ssh-agent] at java.lang.Class.forName0(Native Method)
[ssh-agent] at java.lang.Class.forName(Class.java:348)
[ssh-agent] at com.kenai.jffi.Init.load(Init.java:68)
[ssh-agent] at com.kenai.jffi.Foreign$InstanceHolder.getInstanceHolder(Foreign.java:49)
[ssh-agent] at com.kenai.jffi.Foreign$InstanceHolder.<clinit>(Foreign.java:45)
[ssh-agent] ... 38 more
FATAL: [ssh-agent] Unable to start agent
hudson.util.IOException2: [ssh-agent] Unable to start agent
at com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper.createSSHAgentEnvironment(SSHAgentBuildWrapper.java:253)
at com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper.preCheckout(SSHAgentBuildWrapper.java:223)
at jenkins.scm.SCMCheckoutStrategy.preCheckout(SCMCheckoutStrategy.java:76)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528)
at hudson.model.Run.execute(Run.java:1738)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Caused by: java.lang.RuntimeException: [ssh-agent] Could not find a suitable ssh-agent provider.
at com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper$SSHAgentEnvironment.<init>(SSHAgentBuildWrapper.java:371)
at com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper.createSSHAgentEnvironment(SSHAgentBuildWrapper.java:246)
{code}

h3. Resolution

It looks like version 2.0.3+ of _jnr-iff_ is where _ppc64le_ adds compatibility:

* https://github.com/jnr/jnr-ffi/commit/6d8cdc0ce1a5d6dcfbec5c3b635bfe3232088273

So compatibility could be provided by upgrading the following dependencies:

* https://github.com/cloudbees/jnr-unixsocket-nodep/blob/master/pom.xml#L83
* https://github.com/jenkinsci/ssh-agent-plugin/blob/master/pom.xml#L112

fathi.boudra@linaro.org (JIRA)

unread,
Sep 22, 2016, 1:37:05 AM9/22/16
to jenkinsc...@googlegroups.com

ifernandezcalvo@cloudbees.com (JIRA)

unread,
Nov 2, 2016, 5:40:02 AM11/2/16
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo commented on New Feature JENKINS-37430
 
Re: PowerPC (ppc64le) compatibility

I made two PR to add support to ppc64le

PR jnr-unixsocket-nodep
PR ssh-agent-plugin

also it is needed to compile and install https://github.com/jnr/jffi library

ifernandezcalvo@cloudbees.com (JIRA)

unread,
Nov 2, 2016, 5:40:04 AM11/2/16
to jenkinsc...@googlegroups.com

ifernandezcalvo@cloudbees.com (JIRA)

unread,
Nov 2, 2016, 5:40:04 AM11/2/16
to jenkinsc...@googlegroups.com

ifernandezcalvo@cloudbees.com (JIRA)

unread,
Nov 2, 2016, 5:40:06 AM11/2/16
to jenkinsc...@googlegroups.com
Status: Open In Progress

ifernandezcalvo@cloudbees.com (JIRA)

unread,
Jul 20, 2018, 4:17:01 AM7/20/18
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo assigned an issue to Unassigned
Assignee: Ivan Fernandez Calvo
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

ifernandezcalvo@cloudbees.com (JIRA)

unread,
Jul 20, 2018, 4:17:02 AM7/20/18
to jenkinsc...@googlegroups.com
Status: In Progress Open

ifernandezcalvo@cloudbees.com (JIRA)

unread,
Jul 20, 2018, 4:17:02 AM7/20/18
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages