Skip to content

MSG_PEEK and MSG_DONTWAIT not declared by package syscall with GOOS=js GOARCH=ecmascript #1141

Closed
@tomconnell-wf

Description

@tomconnell-wf

I'm trying out our build using Go 1.18.5 and gopherjs master. I'm using GOOS=js GOARCH=ecmascript

The build fails because some dependencies are attempting to use syscall.MSG_PEEK and syscall.MSG_DONTWAIT. Part of me thinks we are using dependencies that really shouldn't be included in a GopherJS build, but I wanted to check. If these are legit usages, then it seems like some syscall stuff needs generated for GOOS=js GOARCH=ecmascript. We're hacking around it by slapping in build tags in vendored dependencies files to hide them from the build. I probably don't have to say how nervous that makes me. 😨

Looking at this makes me think that there is missing tag/target generation.

I understand that's std library stuff, but I wanted to bring it up here to get perspective on it. If there does need to be additional targets/tags generated, it seems like it would be good to have you all involved in asking for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions