Skip to content

No tool chain is available to build for platform 'unix_x86' on FreeBSD

I try to build recovery image on FreeBSD and gradle fails with

cd ./tools/Android_boot_image_editor && ./gradlew pack && mv recovery.img.signed ../../recovery-8110.img
Starting a Gradle Daemon (subsequent builds will be faster)

> Configure project :
Active image target: boot.img

> Task :mkbootfs:compileMkbootfsExecutableMkbootfsCpp FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':mkbootfs:compileMkbootfsExecutableMkbootfsCpp'.
> No tool chain is available to build for platform 'unix_x86':
    - Tool chain 'visualCpp' (Visual Studio): Visual Studio is not available on this operating system.
    - Tool chain 'gcc' (GNU GCC): Don't know how to build for platform 'unix_x86'.
    - Tool chain 'clang' (Clang): Don't know how to build for platform 'unix_x86'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.0/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1m 23s
7 actionable tasks: 2 executed, 5 up-to-date

This is probably an upstream gradle/kotlin/whatever issue but I am going to have a look at it

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information