Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails #12

Closed
Tchekda opened this issue May 30, 2022 · 2 comments
Closed

Build fails #12

Tchekda opened this issue May 30, 2022 · 2 comments

Comments

@Tchekda
Copy link

Tchekda commented May 30, 2022

Hi,
I am trying to port your package to NixOS but currently facing some issues at build time :

internal/unsafeheader
runtime/internal/sys
github.com/gotk3/gotk3/internal/slab
unicode
math/bits
unicode/utf8
internal/race
encoding
runtime/internal/atomic
sync/atomic
internal/cpu
runtime/cgo
runtime/internal/math
internal/bytealg
math
runtime
internal/reflectlite
sync
internal/testlog
github.com/gotk3/gotk3/internal/callback
errors
sort
internal/oserror
path
io
strconv
syscall
bytes
strings
reflect
bufio
regexp/syntax
internal/syscall/execenv
internal/syscall/unix
time
regexp
context
io/fs
internal/poll
embed
os
internal/fmtsort
path/filepath
fmt
io/ioutil
os/exec
github.com/gotk3/gotk3/internal/closure
log
net/url
text/template/parse
encoding/xml
github.com/gotk3/gotk3/glib
text/template
github.com/oxplot/pdfrankenstein/session
# github.com/oxplot/pdfrankenstein/session
session/session.go:21:61: undefined: any
note: module requires Go 1.18
# github.com/gotk3/gotk3/glib
cgo-gcc-prolog: In function '_cgo_26ff448d08b0_Cfunc_g_binding_get_source':
cgo-gcc-prolog:71:2: warning: 'g_binding_get_source' is deprecated: Use 'g_binding_dup_source' instead [-Wdeprecated-declarations]
In file included from /nix/store/9hvamg7jyhmcww590z2g0gy1f8rkil6m-glib-2.70.1-dev/include/glib-2.0/glib-object.h:22,
                 from /nix/store/9hvamg7jyhmcww590z2g0gy1f8rkil6m-glib-2.70.1-dev/include/glib-2.0/gio/gioenums.h:28,
                 from /nix/store/9hvamg7jyhmcww590z2g0gy1f8rkil6m-glib-2.70.1-dev/include/glib-2.0/gio/giotypes.h:28,
                 from /nix/store/9hvamg7jyhmcww590z2g0gy1f8rkil6m-glib-2.70.1-dev/include/glib-2.0/gio/gio.h:26,
                 from vendor/github.com/gotk3/gotk3/glib/gbinding.go:3:
/nix/store/9hvamg7jyhmcww590z2g0gy1f8rkil6m-glib-2.70.1-dev/include/glib-2.0/gobject/gbinding.h:113:23: note: declared here
  113 | GObject *             g_binding_get_source          (GBinding *binding);
      |                       ^~~~~~~~~~~~~~~~~~~~
cgo-gcc-prolog: In function '_cgo_26ff448d08b0_Cfunc_g_binding_get_target':
cgo-gcc-prolog:107:2: warning: 'g_binding_get_target' is deprecated: Use 'g_binding_dup_target' instead [-Wdeprecated-declarations]
In file included from /nix/store/9hvamg7jyhmcww590z2g0gy1f8rkil6m-glib-2.70.1-dev/include/glib-2.0/glib-object.h:22,
                 from /nix/store/9hvamg7jyhmcww590z2g0gy1f8rkil6m-glib-2.70.1-dev/include/glib-2.0/gio/gioenums.h:28,
                 from /nix/store/9hvamg7jyhmcww590z2g0gy1f8rkil6m-glib-2.70.1-dev/include/glib-2.0/gio/giotypes.h:28,
                 from /nix/store/9hvamg7jyhmcww590z2g0gy1f8rkil6m-glib-2.70.1-dev/include/glib-2.0/gio/gio.h:26,
                 from vendor/github.com/gotk3/gotk3/glib/gbinding.go:3:
/nix/store/9hvamg7jyhmcww590z2g0gy1f8rkil6m-glib-2.70.1-dev/include/glib-2.0/gobject/gbinding.h:117:23: note: declared here
  117 | GObject *             g_binding_get_target          (GBinding *binding);
      |                       ^~~~~~~~~~~~~~~~~~~~
github.com/gotk3/gotk3/cairo
github.com/gotk3/gotk3/pango
github.com/gotk3/gotk3/gdk
github.com/gotk3/gotk3/gtk

Please note that i'm not very experienced with Go and so this might be a stupid mistake from my side.

Installed dependencies : gtk3 glib gdk-pixbuf inkscape poppler_utils qpdf

@oxplot
Copy link
Owner

oxplot commented May 31, 2022

This is the interesting part:

session/session.go:21:61: undefined: any
note: module requires Go 1.18

You need Go 1.18 to compile. any built-in identifier was introduced in that version.

@Tchekda
Copy link
Author

Tchekda commented May 31, 2022

@oxplot thank you
Now i'm having runtime issues, will open separate issues

@Tchekda Tchekda closed this as completed May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants