[GRADLE-3246] Problem building native code samples with 2.3, reports 'Invalid NativePlatform: linux_i686' Created: 19/Feb/15  Updated: 08/Apr/15  Resolved: 08/Apr/15

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 2.4-rc-1

Type: Bug
Reporter: Sterling Greene Assignee: Unassigned
Resolution: Fixed Votes: 1


 Description   

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.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:
Gradle 2.3

Build time: 2015-02-16 05:09:33 UTC
Build number: none
Revision: 586be72bf6e3df1ee7676d1f2a3afd9157341274

Groovy: 2.3.9
Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013
JVM: 1.8.0_40-internal (Oracle Corporation 25.40-b13)
OS: Linux 3.16.0-12-generic i386



 Comments   
Comment by Sterling Greene [ 19/Feb/15 ]

http://forums.gradle.org/gradle/topics/problem-building-native-code-samples-with-2-3-reports-invalid-nativeplatform-linux-i686

Here is the requested information:

uname -a

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.

Comment by Brian Krische [ 08/Apr/15 ]

I have the same issue running 32-bit CentOS 6.5 on a Virtual Machine (VMware ESXi). My output from the printArch thing is:

:printArch
From native path: i686
System property: i386
Current arch: architecture 'i686'
Comment by Sterling Greene [ 08/Apr/15 ]

@Brian, I just fixed this by adding i686 as an alias for i386/x86. When the 2.4 RC comes out very soon, please take a look.

Generated at Wed Jun 30 12:43:48 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.