Skip to content

Cannot build from source on Windows #446

@clin1234

Description

@clin1234
❯ go install github.com/urunc-dev/urunc/cmd/urunc@main
package github.com/urunc-dev/urunc/cmd/urunc
        imports github.com/opencontainers/runc/libcontainer/nsenter: C source files not allowed when not using cgo or SWIG: escape.c getenv.c log.c nsexec.c
package github.com/urunc-dev/urunc/cmd/urunc
        imports github.com/sirupsen/logrus/hooks/syslog: build constraints exclude all Go files in C:\Users\שזדס\go\pkg\mod\github.com\sirupsen\logrus@v1.9.3\hooks\syslog

Even though CGO is enabled:

❯ go env|findstr CGO
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_ENABLED=1
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set GCCGO=gccgo

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