You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building yaegi natively in a android host in termux (GOOS=android) leads to the following errors:
$ go build ./cmd/yaegi
# github.com/containous/yaegi/stdlib/syscallstdlib/syscall/go1_15_syscall_linux_arm.go:2258:6: _syscall_Conn redeclared in this block previous declaration at stdlib/syscall/go1_15_syscall_android_arm.go:2258:6stdlib/syscall/go1_15_syscall_linux_arm.go:2262:24: _syscall_Conn.SyscallConn redeclared in this block previous declaration at stdlib/syscall/go1_15_syscall_android_arm.go:2262:6stdlib/syscall/go1_15_syscall_linux_arm.go:2265:6: _syscall_RawConn redeclared in this block previous declaration at stdlib/syscall/go1_15_syscall_android_arm.go:2265:6stdlib/syscall/go1_15_syscall_linux_arm.go:2271:27: _syscall_RawConn.Control redeclared in this block previous declaration at stdlib/syscall/go1_15_syscall_android_arm.go:2271:6stdlib/syscall/go1_15_syscall_linux_arm.go:2272:27: _syscall_RawConn.Read redeclared in this block previous declaration at stdlib/syscall/go1_15_syscall_android_arm.go:2272:6stdlib/syscall/go1_15_syscall_linux_arm.go:2273:27: _syscall_RawConn.Write redeclared in this block previous declaration at stdlib/syscall/go1_15_syscall_android_arm.go:2273:6stdlib/syscall/go1_15_syscall_linux_arm.go:2276:6: _syscall_Sockaddr redeclared in this block previous declaration at stdlib/syscall/go1_15_syscall_android_arm.go:2276:6
When cross-compiling, only specified OS corresponding file is taken, and there is no problem. The problems happens when compiling natively.
The problem occurs because both go1_15_syscall_linux_arm.go and go1_15_syscall_linux_arm.go are compiled. According to https://golang.org/cmd/go/#hdr-Build_constraints, this happens for android/linux and illumos/solaris.
The text was updated successfully, but these errors were encountered:
As per https://golang.org/cmd/go/#hdr-Build_constraints,
using GOOS=android also matches tags and files for GOOS=linux,
$so exclude it explicetly to avoid collisions.
Also using GOOS=illumos matches tags and files for GOOS=solaris.
Fixes#843.
As per https://golang.org/cmd/go/#hdr-Build_constraints,
using GOOS=android also matches tags and files for GOOS=linux,
$so exclude it explicetly to avoid collisions.
Also using GOOS=illumos matches tags and files for GOOS=solaris.
Fixes#843.
As per https://golang.org/cmd/go/#hdr-Build_constraints,
using GOOS=android also matches tags and files for GOOS=linux,
so exclude it explicetly to avoid collisions.
Also using GOOS=illumos matches tags and files for GOOS=solaris.
Fixes#843.
Building yaegi natively in a android host in termux (GOOS=android) leads to the following errors:
When cross-compiling, only specified OS corresponding file is taken, and there is no problem. The problems happens when compiling natively.
The problem occurs because both
go1_15_syscall_linux_arm.go
andgo1_15_syscall_linux_arm.go
are compiled. According to https://golang.org/cmd/go/#hdr-Build_constraints, this happens for android/linux and illumos/solaris.The text was updated successfully, but these errors were encountered: