Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A problem occurred starting process 'command '/opt/android-ndk/toolchains/mips64el-linux-android-4.9/prebuilt/linux-x86_64/bin/mips64el-linux-android-strip'' #57

Closed
bkmalkoc opened this issue May 14, 2018 · 10 comments

Comments

@bkmalkoc
Copy link

bkmalkoc commented May 14, 2018

I don't think this issue is related with my own code.
What is this about?

------------------------------------------------------------------------------+

| (4) gradle-runner |
+------------------------------------------------------------------------------+
| id: gradle-runner |
| version: 1.8.3 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: go |
| time: 2018-05-14T23:23:24Z |
+------------------------------------------------------------------------------+
| |
INFO[23:23:24] Start installing (golang) with apt-get
INFO[23:23:24] * [OK] Step dependency (go) installed, available.
Configs:

  • GradlewPath: ./gradlew
  • GradleFile: build.gradle
  • GradleTasks: assemble
  • GradleOptions: --stacktrace --no-daemon
  • ApkFileIncludeFilter: *.apk
  • ApkFileExcludeFilter: *unaligned.apk
    Test.apk
  • TestApkFileIncludeFilter: Test.apk
  • TestApkFileExcludeFilter:
  • MappingFileIncludeFilter: */mapping.txt
  • MappingFileExcludeFilter:
  • DeployDir: /bitrise/deploy
  • CacheLevel: only_deps
    Running gradle task...
    /bitrise/src/gradlew "--build-file" "build.gradle" "assemble" "--stacktrace" "--no-daemon"

...

:app:compileDevelopmentDebugNdk NO-SOURCE
:app:compileDevelopmentDebugSources
:app:transformClassesWithDexBuilderForDevelopmentDebug UP-TO-DATE
:app:transformClassesWithMultidexlistForDevelopmentDebug UP-TO-DATE
:app:transformDexArchiveWithDexMergerForDevelopmentDebug UP-TO-DATE
:app:mergeDevelopmentDebugJniLibFolders UP-TO-DATE
:app:transformNativeLibsWithMergeJniLibsForDevelopmentDebug UP-TO-DATE
:app:transformNativeLibsWithStripDebugSymbolForDevelopmentDebug FAILED
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:transformNativeLibsWithStripDebugSymbolForDevelopmentDebug'.

A problem occurred starting process 'command '/opt/android-ndk/toolchains/mips64el-linux-android-4.9/prebuilt/linux-x86_64/bin/mips64el-linux-android-strip''

  • Try:
    Run with --info or --debug option to get more log output.
  • Exception is:
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformNativeLibsWithStripDebugSymbolForDevelopmentDebug'.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
    at org.gradle.api.internal.tasks.execution.SkipCachedTaskExecuter.execute(SkipCachedTaskExecuter.java:106)
    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:63)
    at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
    at org.gradle.api.internal.tasks.execution.ResolveBuildCacheKeyExecuter.execute(ResolveBuildCacheKeyExecuter.java:60)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88)
    at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
    at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
    at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:124)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:80)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:105)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:99)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:625)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:580)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:99)
    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
    at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
    at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
    Caused by: org.gradle.process.internal.ExecException: A problem occurred starting process 'command '/opt/android-ndk/toolchains/mips64el-linux-android-4.9/prebuilt/linux-x86_64/bin/mips64el-linux-android-strip''
    at org.gradle.process.internal.DefaultExecHandle.execExceptionFor(DefaultExecHandle.java:220)
    at org.gradle.process.internal.DefaultExecHandle.setEndStateInfo(DefaultExecHandle.java:204)
    at org.gradle.process.internal.DefaultExecHandle.failed(DefaultExecHandle.java:340)
    at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:86)
    at org.gradle.internal.operations.BuildOperationIdentifierPreservingRunnable.run(BuildOperationIdentifierPreservingRunnable.java:39)
    ... 3 more
    Caused by: net.rubygrapefruit.platform.NativeException: Could not start '/opt/android-ndk/toolchains/mips64el-linux-android-4.9/prebuilt/linux-x86_64/bin/mips64el-linux-android-strip'
    at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:27)
    at net.rubygrapefruit.platform.internal.WrapperProcessLauncher.start(WrapperProcessLauncher.java:36)
    at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:68)
    ... 4 more
    Caused by: java.io.IOException: Cannot run program "/opt/android-ndk/toolchains/mips64el-linux-android-4.9/prebuilt/linux-x86_64/bin/mips64el-linux-android-strip" (in directory "/bitrise/src/app"): error=2, No such file or directory
    at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:25)
    ... 6 more
    Caused by: java.io.IOException: error=2, No such file or directory
    ... 7 more
  • Get more help at https://help.gradle.org
    BUILD FAILED in 43s
    73 actionable tasks: 6 executed, 67 up-to-date
    Gradle task failed, error: exit status 1
@tylerjroach
Copy link

@bkmalkoc Thank you for reporting, I was just about to report the same thing. My guess is the latest android-ndk image has an issue. I have a build that was successful on May 11th, that then failed on May 13th with this issue. Hopefully that timeframe can help determine what introduced the issue.

@godrei
Copy link
Contributor

godrei commented May 15, 2018

Hi,
sorry for the inconveniences, we updated our android linux stack's Android NDk version to the latest: r17. The latest NDK version has a change:

Support for ARMv5 (armeabi), MIPS, and MIPS64 has been removed. Attempting to build any of these ABIs will result in an error.

this cases your build issues.

Here is the script you can use to install the desired ndk version: https://discuss.bitrise.io/t/how-to-install-a-specific-android-ndk-version-on-the-android-ndk-stack/4400

@tylerjroach
Copy link

@godrei Thanks, I must have a library using the NDK that I didn't realize.

@bkmalkoc
Copy link
Author

@godrei Worked well. Thank you.

@godrei
Copy link
Contributor

godrei commented May 17, 2018

I'll close this issue, but if you need more info/help just let us know and we'll reopen it!

@m-hcb
Copy link

m-hcb commented Sep 15, 2018

Another workaround is download r16 from https://developer.android.com/ndk/downloads/older_releases and copy files under toolchains/mips64el-linux-android-4.9/prebuilt/linux-x86_64/ from r16 to your ndk directory (r17) toolchains/mips64el-linux-android-4.9/prebuilt/linux-x86_64/ folder. This worked for me.

@bitce
Copy link

bitce commented Sep 17, 2018

Thanks for sharing @m-hcb !

@tGeanezini
Copy link

That did the trick for me @m-hcb ! Thanks

@AmanelX
Copy link

AmanelX commented Sep 22, 2018

WOrked after 10+ hours of battering @m-hcb thanks

@Rhenz1998
Copy link

Yo! @m-hcb been finding this solution for 2WEEKS! Thanks it worked for me

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants