Skip to content

cgo compiler errors against go-alpm #46

@focusaurus

Description

@focusaurus

Are you on latest version of yup?

Yes, I am trying to build from the aur. I've also tried the current master branch from github as well as the most recent tag

Steps to Reproduce the Problem

  1. git clone https://aur.archlinux.org/yup.git
    1.cd yup && makepkg -si
# github.com/Jguer/go-alpm/v2
/home/plyons/go/pkg/mod/github.com/!jguer/go-alpm/v2@v2.0.6/db.go:148:103: cannot use _cgo0 (variable of type *_Ctype_struct___alpm_list_t) as *_Ctype_struct__alpm_list_t value in argument to _Cfunc_alpm_find_group_pkgs
/home/plyons/go/pkg/mod/github.com/!jguer/go-alpm/v2@v2.0.6/deps.go:22:75: cannot use _cgo0 (variable of type *_Ctype_struct___alpm_handle_t) as *_Ctype_struct__alpm_handle_t value in argument to _Cfunc_alpm_find_dbs_satisfier
/home/plyons/go/pkg/mod/github.com/!jguer/go-alpm/v2@v2.0.6/deps.go:22:75: cannot use _cgo1 (variable of type *_Ctype_struct___alpm_list_t) as *_Ctype_struct__alpm_list_t value in argument to _Cfunc_alpm_find_dbs_satisfier
/home/plyons/go/pkg/mod/github.com/!jguer/go-alpm/v2@v2.0.6/deps.go:38:78: cannot use _cgo0 (variable of type *_Ctype_struct___alpm_list_t) as *_Ctype_struct__alpm_list_t value in argument to _Cfunc_alpm_find_satisfier
/home/plyons/go/pkg/mod/github.com/!jguer/go-alpm/v2@v2.0.6/package.go:69:53: cannot use _cgo0 (variable of type *_Ctype_struct___alpm_list_t) as *_Ctype_struct__alpm_list_t value in argument to _Cfunc_alpm_list_count
/home/plyons/go/pkg/mod/github.com/!jguer/go-alpm/v2@v2.0.6/package.go:70:34: cannot use _cgo0 (variable of type *_Ctype_struct___alpm_list_t) as *_Ctype_struct__alpm_list_t value in argument to _Cfunc_alpm_list_msort
make: *** [Makefile:11: build] Error 1
==> ERROR: A failure occurred in prepare().
    Aborting...

Other Details

This only recently started happening with an arch system update.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions