Skip to content

Windows compilation fails: "ethutil\script_windows.go:12: Compile redeclared in this block" #151

@erezwanderman

Description

@erezwanderman

Full output:

$ go install -v
github.com/ethereum/go-ethereum/ethutil
# github.com/ethereum/go-ethereum/ethutil
C:\Ethereum\go\src\github.com\ethereum\go-ethereum\ethutil\script_windows.go:12: Compile redeclared in this block
        previous declaration at C:\Ethereum\go\src\github.com\ethereum\go-ethereum\ethutil\script_unix.go:13
gopkg.in/qml.v1/cdata
gopkg.in/qml.v1/gl/glbase
gopkg.in/qml.v1
github.com/howeyc/fsnotify

"_unix" is NOT a valid go build constraint. Therefore go tries to compile both "script_unix.go" and "script_windows" on Windows. And function "Compile" is redefined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions