After upgrading to Gradle 2.3 I can’t build anything native related, even the Gradle samples from the 2.3 distribution.
Every attempt in a directory with a script using native plugin ends with the following error:
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring root project ‘c’. > Exception thrown while executing model rule: org.gradle.nativeplatform.plugins.NativeComponentModelPlugin$Rules#createNativeBinaries(org.gradle.platform.base.BinaryContainer, org.gradle.api.NamedDomainObjectSet<org.gradle.nativeplatform.NativeComponentSpec>, org.gradle.language.base.internal.LanguageRegistry, org.gradle.nativeplatform.toolchain.internal.NativeToolChainRegistryInternal, org.gradle.platform.base.internal.PlatformResolver, org.gradle.nativeplatform.BuildTypeContainer, org.gradle.nativeplatform.FlavorContainer, org.gradle.internal.service.ServiceRegistry, java.io.File)
Invalid NativePlatform: linux_i686
Executing Gradle -v shows the following information from my environment:
Linux ubuntu.lenovoX61t 3.16.0-12-generic #18-Ubuntu SMP Mon Sep 1 13:04:08 UTC 2014 i686 i686 i686 GNU/Linux
gradle printArch
:printArch
From native path: i686
System property: i386
Current arch: architecture ‘i686’
My operating system is LUbuntu running on a Virtual Machine (VirtualBox). I’ve changed permissions in the gradle folder to be the owner of the files but with no effect.
Ah, thanks. We’re currently not aliasing i686 to i386 like we should. This may have worked before because we were pretty lax with how we matched up platforms.