Skip to content

CGo does not support macros with symbol values #770

@xaionaro

Description

@xaionaro
xaionaro@ubuntu:~/go/src/github.com/u-root/u-root/bb$ CGO_ENABLED=0 tinygo build -o bb main.go 
# os/user
../../../../../../.gimme/versions/go1.13.linux.amd64/src/os/user/cgo_lookup_unix.go:19:6: not implemented: build constraints in #cgo line
/usr/include/x86_64-linux-gnu/bits/confname.h:222:31: unexpected token ILLEGAL
/usr/include/x86_64-linux-gnu/bits/confname.h:224:31: unexpected token ILLEGAL
/usr/include/x86_64-linux-gnu/bits/confname.h:222:31: unexpected token ILLEGAL
/usr/include/x86_64-linux-gnu/bits/confname.h:224:31: unexpected token ILLEGAL
/usr/include/x86_64-linux-gnu/bits/confname.h:222:31: unexpected token ILLEGAL
/usr/include/x86_64-linux-gnu/bits/confname.h:224:31: unexpected token ILLEGAL
xaionaro@ubuntu:~/go/src/github.com/u-root/u-root/bb$ head -224 /usr/include/x86_64-linux-gnu/bits/confname.h | tail -4
    _SC_GETGR_R_SIZE_MAX,
#define	_SC_GETGR_R_SIZE_MAX		_SC_GETGR_R_SIZE_MAX
    _SC_GETPW_R_SIZE_MAX,
#define	_SC_GETPW_R_SIZE_MAX		_SC_GETPW_R_SIZE_MAX

Metadata

Metadata

Assignees

No one assigned

    Labels

    cgoCGo and libc related issuesenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions