Giter VIP home page Giter VIP logo

Comments (28)

MARTIMM avatar MARTIMM commented on August 28, 2024

Hi,
I am mainly developing in a Linux environment so I am not wise enough to help properly. What I see in the output is that libraries are all null. Is there maybe a library path that needs to be set? In the meantime, I will try to figure out what is different between the OS's. The key file is in module Gnome::N::NativeLib.

Sorry for not noticing your issue earlier...

from gnome-gtk3.

MARTIMM avatar MARTIMM commented on August 28, 2024

Are there only archives (ending in .a) or are there also .dll? Could you perhaps send me a list of .dll libraries that are installed? I can check for versions then and modify any. Also, I can then tell which are still missing.

from gnome-gtk3.

MARTIMM avatar MARTIMM commented on August 28, 2024

I just found out that the same question is posted on stackoverflow

from gnome-gtk3.

hakonhagland avatar hakonhagland commented on August 28, 2024

Are there only archives (ending in .a) or are there also .dll?

Yes there seems to be only .dll.a and .a files:

$ ls /mingw64/lib
bfd-plugins/                       libdatrie.dll.a          libgmpxx.a                 liblzo2.dll.a            libpcreposix.dll.a  libtkstub86.a
binutils/                          libedit.dll.a            libgmpxx.dll.a             libmangle.a              libpixman-1.a       libtre.a
cmake/                             libedit_static.a         libgnumake-1.dll.a         libmenuw.a               libpixman-1.dll.a   libtre.dll.a
dde1.4/                            libepoxy.a               libgnurx.a                 libmenuw_g.a             libpng.a            libturbojpeg.a
engines-1_1/                       libepoxy.dll.a           libgnurx.dll.a             libmpc.a                 libpng.dll.a        libturbojpeg.dll.a
gcc/                               libexpat.a               libgobject-2.0.a           libmpdec.a               libpng16.a          libxml2.a
gdk-pixbuf-2.0/                    libexpat.dll.a           libgobject-2.0.dll.a       libmpdec.dll.a           libpng16.dll.a      libxml2.dll.a
gettext/                           libffi.a                 libgraphite2.a             libmpdec++.a             libpython3.8.dll.a  libxxhash.dll.a
girepository-1.0/                  libffi.dll.a             libgraphite2.dll.a         libmpdec++.dll.a         libreadline.a       libz.a
glib-2.0/                          libfontconfig.a          libgthread-2.0.a           libmpfr.a                libreadline.dll.a   libz.dll.a
gtk-3.0/                           libfontconfig.dll.a      libgthread-2.0.dll.a       libncurses.a             libregex.a          libzstd.a
itcl4.2.0/                         libformw.a               libgtk-3.dll.a             libncurses++w.a          libregex.dll.a      libzstd.dll.a
libasprintf.a                      libformw_g.a             libharfbuzz.a              libncurses++w_g.a        librsvg-2.a         p11-kit/
libasprintf.dll.a                  libfreeglut.dll.a        libharfbuzz.dll.a          libncursesw.a            librsvg-2.dll.a     pkcs11/
libatk-1.0.a                       libfreeglut_static.a     libharfbuzz-gobject.a      libncursesw_g.a          libsqlite3.a        pkgconfig/
libatk-1.0.dll.a                   libfreetype.a            libharfbuzz-gobject.dll.a  libp11-kit.dll.a         libsqlite3.dll.a    python3.8/
libbrotlicommon.dll.a              libfreetype.dll.a        libharfbuzz-icu.a          libpanelw.a              libssl.a            reg1.3/
libbrotlicommon-static.a           libfribidi.a             libharfbuzz-icu.dll.a      libpanelw_g.a            libssl.dll.a        sqlite3.30.1.2/
libbrotlidec.dll.a                 libfribidi.dll.a         libharfbuzz-subset.a       libpango-1.0.a           libsystre.a         sqlite3.32.3/
libbrotlidec-static.a              libgailutil-3.dll.a      libharfbuzz-subset.dll.a   libpango-1.0.dll.a       libsystre.dll.a     tcl8/
libbrotlienc.dll.a                 libgdk_pixbuf-2.0.dll.a  libhistory.a               libpangocairo-1.0.a      libtasn1.a          tcl8.6/
libbrotlienc-static.a              libgdk-3.dll.a           libhistory.dll.a           libpangocairo-1.0.dll.a  libtasn1.dll.a      tclConfig.sh
libbz2.a                           libgettextlib.a          libiconv.a                 libpangoft2-1.0.a        libtcl.dll.a        tdbc1.1.1/
libbz2.dll.a                       libgettextlib.dll.a      libiconv.dll.a             libpangoft2-1.0.dll.a    libtcl86.dll.a      tdbcmysql1.1.1/
libcairo.a                         libgettextpo.a           libintl.a                  libpangowin32-1.0.a      libtclstub86.a      tdbcodbc1.1.1/
libcairo.dll.a                     libgettextpo.dll.a       libintl.dll.a              libpangowin32-1.0.dll.a  libtermcap.a        tdbcpostgres1.1.1/
libcairo-gobject.a                 libgettextsrc.dll.a      libisl.a                   libpcre.a                libtermcap.dll.a    terminfo/
libcairo-gobject.dll.a             libgio-2.0.a             libjasper.a                libpcre.dll.a            libthai.a           thread2.8.5/
libcairo-script-interpreter.a      libgio-2.0.dll.a         libjasper.dll.a            libpcre16.a              libthai.dll.a       tk8.6/
libcairo-script-interpreter.dll.a  libglib-2.0.a            libjpeg.a                  libpcre16.dll.a          libtiff.a           tkConfig.sh
libcharset.a                       libglib-2.0.dll.a        libjpeg.dll.a              libpcre32.a              libtiff.dll.a       xml2Conf.sh
libcharset.dll.a                   libgmodule-2.0.a         libjson-glib-1.0.dll.a     libpcre32.dll.a          libtiffxx.a
libcrypto.a                        libgmodule-2.0.dll.a     liblzma.a                  libpcrecpp.a             libtiffxx.dll.a
libcrypto.dll.a                    libgmp.a                 liblzma.dll.a              libpcrecpp.dll.a         libtk.dll.a
libdatrie.a                        libgmp.dll.a             liblzo2.a                  libpcreposix.a           libtk86.dll.a

from gnome-gtk3.

MARTIMM avatar MARTIMM commented on August 28, 2024

I think that a .dll.a is still a simple archive and not a dynamic library. Please look at the link they mentioned at Stackoverflow here.

from gnome-gtk3.

hakonhagland avatar hakonhagland commented on August 28, 2024

Yes, I totally missed that. Anyway, I think I found the .dll libraries now:

$ cd /mingw64/bin; ls *.dll
edit.dll*                           libffi-7.dll*                libgmp-10.dll*              libjasper-4.dll*          libpcrecpp-0.dll*    libtiff-5.dll*
libasprintf-0.dll*                  libfontconfig-1.dll*         libgmpxx-4.dll*             libjpeg-8.dll*            libpcreposix-0.dll*  libtiffxx-5.dll*
libatk-1.0-0.dll*                   libfreeglut.dll*             libgnarl-10.dll*            libjson-glib-1.0-0.dll*   libpixman-1-0.dll*   libtre-5.dll*
libatomic-1.dll*                    libfreetype-6.dll*           libgnat-10.dll*             liblzma-5.dll*            libpng16-16.dll*     libturbojpeg.dll*
libbrotlicommon.dll*                libfribidi-0.dll*            libgobject-2.0-0.dll*       liblzo2-2.dll*            libpython3.8.dll*    libwinpthread-1.dll*
libbrotlidec.dll*                   libgailutil-3-0.dll*         libgomp-1.dll*              libmpdec++-2.dll*         libquadmath-0.dll*   libxml2-2.dll*
libbrotlienc.dll*                   libgcc_s_seh-1.dll*          libgraphite2.dll*           libmpdec-2.dll*           libreadline8.dll*    libxxhash.dll*
libbz2-1.dll*                       libgdk_pixbuf-2.0-0.dll*     libgthread-2.0-0.dll*       libobjc-4.dll*            librsvg-2-2.dll*     libzstd.dll*
libcairo-2.dll*                     libgdk-3-0.dll*              libgtk-3-0.dll*             libp11-kit-0.dll*         libsqlite3-0.dll*    tcl86.dll*
libcairo-gobject-2.dll*             libgettextlib-0-19-8-1.dll*  libharfbuzz-0.dll*          libpango-1.0-0.dll*       libssl-1_1-x64.dll*  tk86.dll*
libcairo-script-interpreter-2.dll*  libgettextpo-0.dll*          libharfbuzz-gobject-0.dll*  libpangocairo-1.0-0.dll*  libssp-0.dll*        zlib1.dll*
libcharset-1.dll*                   libgettextsrc-0-19-8-1.dll*  libharfbuzz-icu-0.dll*      libpangoft2-1.0-0.dll*    libstdc++-6.dll*
libcrypto-1_1-x64.dll*              libgfortran-5.dll*           libharfbuzz-subset-0.dll*   libpangowin32-1.0-0.dll*  libsystre-0.dll*
libdatrie-1.dll*                    libgio-2.0-0.dll*            libhistory8.dll*            libpcre-1.dll*            libtasn1-6.dll*
libepoxy-0.dll*                     libglib-2.0-0.dll*           libiconv-2.dll*             libpcre16-0.dll*          libtermcap-0.dll*
libexpat-1.dll*                     libgmodule-2.0-0.dll*        libintl-8.dll*              libpcre32-0.dll*          libthai-0.dll*

If I try to install with this location, it seems to work better and it finds and loads the libraries I think, but the tests fails now:

$ PATH="/mingw64/bin:$PATH" zef install Gnome::Gtk3
===> Searching for: Gnome::Gtk3
===> Updating cpan mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan1.json
===> Searching for missing dependencies: Gnome::N, Gnome::Glib, Gnome::Gio, Gnome::GObject, Gnome::Gdk3, Gnome::Cairo
===> Building: Gnome::N:ver<0.18.1.2>
===> Building [OK] for Gnome::N:ver<0.18.1.2>
===> Testing: Gnome::N:ver<0.18.1.2>
===> Testing [OK] for Gnome::N:ver<0.18.1.2>
===> Testing: Gnome::Glib:ver<0.17.2>
===> Testing [OK] for Gnome::Glib:ver<0.17.2>
===> Testing: Gnome::GObject:ver<0.16.15.1>
[Gnome::GObject]     # Failed test '.new( :type, :value) / .get-long()'
[Gnome::GObject]     # at t\Value.t line 67
[Gnome::GObject]     # expected: '-20304050607'
[Gnome::GObject]     #      got: '1170785873'
[Gnome::GObject]     # Failed test '.set-long()'
[Gnome::GObject]     # at t\Value.t line 69
[Gnome::GObject]     # expected: '-20304050607786'
[Gnome::GObject]     #      got: '2554767702'
[Gnome::GObject]     # Failed test '.new( :type, :value) / .get-ulong()'
[Gnome::GObject]     # at t\Value.t line 73
[Gnome::GObject]     # expected: '76523847654'
[Gnome::GObject]     #      got: '3509403622'
[Gnome::GObject]     # Failed test '.set-ulong()'
[Gnome::GObject]     # at t\Value.t line 75
[Gnome::GObject]     # expected: '7652384765432'
[Gnome::GObject]     #      got: '3048011256'
[Gnome::GObject]     # You failed 4 tests of 34
[Gnome::GObject] # Failed test 'Manipulations'
[Gnome::GObject] # at t\Value.t line 34
[Gnome::GObject] # You failed 1 test of 2
===> Testing [FAIL]: Gnome::GObject:ver<0.16.15.1>
===> Updated cpan mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan1.json
===> Updating p6c mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/p6c1.json
===> Updated p6c mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/p6c1.json
Aborting due to test failure: Gnome::GObject:ver<0.16.15.1> (use --force-test to override)


from gnome-gtk3.

MARTIMM avatar MARTIMM commented on August 28, 2024

Thanks for your research. In the meantime, I have set up a configuration on Appveyor to test the packages in a windows environment. I have seen the same problems as you have and was trying to find those .dll files.

from gnome-gtk3.

MARTIMM avatar MARTIMM commented on August 28, 2024

I had changed some types lately to have it depend on a generated module in Gnome::N. I might have some mistakes there. I would like to know if your long type is 64 or 32 bits. and if your int is 32 bits. Does your system have a 64-bit processor? Can you find out how the module Gnome::N::GlibToRakuTypes is generated on your system? That module is generated at installation time. Most of its contents are constants.

from gnome-gtk3.

hakonhagland avatar hakonhagland commented on August 28, 2024

Does your system have a 64-bit processor?

Yes, I am running this Window session throught a KVM virtual machine from Ubuntu 20.04. In Ubuntu:

$ uname -a
Linux hakon-Precision-7530 5.4.0-56-generic #62-Ubuntu SMP Mon Nov 23 19:20:19 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

In Windows, MSYS2:

$ wmic cpu get caption
Caption
Intel64 Family 6 Model 94 Stepping 3

from gnome-gtk3.

hakonhagland avatar hakonhagland commented on August 28, 2024

Can you find out how the module Gnome::N::GlibToRakuTypes is generated on your system?

How do I generate the file?

from gnome-gtk3.

MARTIMM avatar MARTIMM commented on August 28, 2024

You do not have to generate it yourself but can be found in the zef environment.
Anyway, I think that the long value is a 32bit number on your machine and the tests had assumed a 64bit number which gets truncated when saved. The tests are changed now.
It will take a while before I push a new version because I am still wrestling with the library names in Gnome::N. At least I've found the .dll directory on Appveyor, it's in C:\msys64\mingw64\bin.

from gnome-gtk3.

MARTIMM avatar MARTIMM commented on August 28, 2024

I managed to test Gnome::N on Appveyor successfully

from gnome-gtk3.

MARTIMM avatar MARTIMM commented on August 28, 2024

Gnome::Glib tested ok on Windows, but I am now also seeing errors when testing Gnome::GObject even after changing the tests so this error must be about something else.

Oops, just thought that the packages weren't yet archived on CPAN so tests are using old data and scripts. retry later.

from gnome-gtk3.

MARTIMM avatar MARTIMM commented on August 28, 2024

Looking back I see that you have used Raku version 2020.01. The version I get on Appveyor is 2020.05 and shows the same problems. I think that these versions are too old and, I assume, have a Raku bug. It is as if the statement my uint32 $i = -2030 is executed which returns 4294965266.
I use 2020.10 at home which does not show these problems. There are a lot of changes in the NativeCall module since then. If you try a newer version, like mine or newer, you might be successful.

from gnome-gtk3.

hakonhagland avatar hakonhagland commented on August 28, 2024

Seems like it still has problems with 2020.11:

$ raku --version
Welcome to Rakudo(tm) v2020.11.
Implementing the Raku(tm) programming language v6.d.
Built on MoarVM version 2020.11.

$ PATH="/mingw64/bin:$PATH" zef install Gnome::Gtk3
===> Searching for: Gnome::Gtk3
===> Updating cpan mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan1.json
===> Searching for missing dependencies: Gnome::N, Gnome::Glib, Gnome::Gio, Gnome::GObject, Gnome::Gdk3, Gnome::Cairo
===> Building: Gnome::N:ver<0.18.4>
===> Building [OK] for Gnome::N:ver<0.18.4>
===> Testing: Gnome::N:ver<0.18.4>
[Gnome::N]     # GEnum:        (int32)
[Gnome::N]     # GFlag:        (uint32)
[Gnome::N]     # GQuark:       (uint32)
[Gnome::N]     # GType:        (uint32)
[Gnome::N]     # char-ppptr:   (CArray[CArray[Str]])
[Gnome::N]     # char-pptr:    (CArray[Str])
[Gnome::N]     # gboolean:     (int32)
[Gnome::N]     # gchar:        (int8)
[Gnome::N]     # gchar-ppptr:  (CArray[CArray[Str]])
[Gnome::N]     # gchar-pptr:   (CArray[Str])
[Gnome::N]     # gchar-ptr:    (Str)
[Gnome::N]     # gdouble:      (num64)
[Gnome::N]     # gfloat:       (num32)
[Gnome::N]     # gint:         (int32)
[Gnome::N]     # gint-ptr:     (CArray[int32])
[Gnome::N]     # gint16:       (int16)
[Gnome::N]     # gint32:       (int32)
[Gnome::N]     # gint64:       (int64)
[Gnome::N]     # gint8:        (int8)
[Gnome::N]     # glong:        (int32)
[Gnome::N]     # gpointer:     (NativeCall::Types::Pointer)
[Gnome::N]     # gshort:       (int16)
[Gnome::N]     # gsize:        (uint32)
[Gnome::N]     # gssize:       (int32)
[Gnome::N]     # guchar:       (uint8)
[Gnome::N]     # guint:        (uint32)
[Gnome::N]     # guint16:      (uint16)
[Gnome::N]     # guint32:      (uint32)
[Gnome::N]     # guint64:      (uint64)
[Gnome::N]     # guint8:       (uint8)
[Gnome::N]     # gulong:       (uint32)
[Gnome::N]     # gushort:      (uint16)
[Gnome::N]     # int-ptr:      (CArray[int32])
[Gnome::N]     # void-ptr:     (NativeCall::Types::Pointer[NativeCall::Types::void])
[Gnome::N]     # OS: mswin32
[Gnome::N]     # config: %s.dll
[Gnome::N]     # is-win: True
[Gnome::N] Use of uninitialized value element of type Any in string context.
[Gnome::N] Methods .^name, .raku, .gist, or .say can be used to stringify it to something meaningful.
[Gnome::N]   in block  at t\NativeLib.t line 59
[Gnome::N]     # arch:
[Gnome::N]     # archname: x86_64-win32
===> Testing [OK] for Gnome::N:ver<0.18.4>
===> Testing: Gnome::Glib:ver<0.17.3.2>
===> Testing [OK] for Gnome::Glib:ver<0.17.3.2>
===> Testing: Gnome::GObject:ver<0.16.15.1>
[Gnome::GObject]     # Failed test '.new( :type, :value) / .get-long()'
[Gnome::GObject]     # at t\Value.t line 67
[Gnome::GObject]     # expected: '-20304050607'
[Gnome::GObject]     #      got: '1170785873'
[Gnome::GObject]     # Failed test '.set-long()'
[Gnome::GObject]     # at t\Value.t line 69
[Gnome::GObject]     # expected: '-20304050607786'
[Gnome::GObject]     #      got: '2554767702'
[Gnome::GObject]     # Failed test '.new( :type, :value) / .get-ulong()'
[Gnome::GObject]     # at t\Value.t line 73
[Gnome::GObject]     # expected: '76523847654'
[Gnome::GObject]     #      got: '3509403622'
[Gnome::GObject]     # Failed test '.set-ulong()'
[Gnome::GObject]     # at t\Value.t line 75
[Gnome::GObject]     # expected: '7652384765432'
[Gnome::GObject]     #      got: '3048011256'
===> Testing [FAIL]: Gnome::GObject:ver<0.16.15.1>
===> Updated cpan mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan1.json
===> Updating p6c mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/p6c1.json
===> Updated p6c mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/p6c1.json
Aborting due to test failure: Gnome::GObject:ver<0.16.15.1> (use --force-test to override)

from gnome-gtk3.

MARTIMM avatar MARTIMM commented on August 28, 2024

Just managed to test Gnome::GObject on Appveyor with a newer version of Raku. The test runs well now. The reason you had problems was that I did not push the newer version of Gnome::GObject yet, Now I have version 0.16.16 ready. So please go ahead. (Gnome::Gtk3 will come later so issue #15 still stands).

from gnome-gtk3.

hakonhagland avatar hakonhagland commented on August 28, 2024

It is still using 0.16.15.1 when I try install it, how can I install the latest version? I tried:

$ PATH="/mingw64/bin:$PATH" zef -v install https://github.com/MARTIMM/gnome-gobject.git
===> Fetching [OK]: https://github.com/MARTIMM/gnome-gobject.git to C:\msys64\home\hakon/.zef/tmp\1608037908.3220.7634.961894910307\gnome-gobject.git
Not enough positional arguments; needed at least 2
===> Extraction [OK]: https://github.com/MARTIMM/gnome-gobject.git to C:\msys64\home\hakon/.zef/store\gnome-gobject.git
===> Searching for missing dependencies: Gnome::N, Gnome::Glib


from gnome-gtk3.

MARTIMM avatar MARTIMM commented on August 28, 2024

I know that it takes some time before it gets published from PAUSE. I've checked the raku modules directory and saw that its date of yesterday. Have you tried zef --update.

from gnome-gtk3.

hakonhagland avatar hakonhagland commented on August 28, 2024

Ok, I tried to update zef and then reran zef install. It now tries to install Gnome::GObject version 0.16.16, but the tests still fail:

$ zef update
===> Updating cpan mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan1.json
----------------------------------------------------
Content Storage                  |Distribution Count
----------------------------------------------------
Zef::Repository::Ecosystems<p6c> |924
Zef::Repository::LocalCache      |10
Zef::Repository::Ecosystems<cpan>|2286
----------------------------------------------------
===> Updated cpan mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan1.json
===> Updating p6c mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/p6c1.json
===> Updated p6c mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/p6c1.json

$ PATH="/mingw64/bin:$PATH" zef install Gnome::Gtk3
===> Searching for: Gnome::Gtk3
Aborting due to test failure: Gnome::GObject:ver<0.16.16> (use --force-test to override)
===> Searching for missing dependencies: Gnome::N, Gnome::Glib, Gnome::Gio, Gnome::GObject, Gnome::Gdk3, Gnome::Cairo
===> Building: Gnome::N:ver<0.18.4>
===> Building [OK] for Gnome::N:ver<0.18.4>
===> Testing: Gnome::N:ver<0.18.4>
[Gnome::N]     # GEnum:        (int32)
[Gnome::N]     # GFlag:        (uint32)
[Gnome::N]     # GQuark:       (uint32)
[Gnome::N]     # GType:        (uint32)
[Gnome::N]     # char-ppptr:   (CArray[CArray[Str]])
[Gnome::N]     # char-pptr:    (CArray[Str])
[Gnome::N]     # gboolean:     (int32)
[Gnome::N]     # gchar:        (int8)
[Gnome::N]     # gchar-ppptr:  (CArray[CArray[Str]])
[Gnome::N]     # gchar-pptr:   (CArray[Str])
[Gnome::N]     # gchar-ptr:    (Str)
[Gnome::N]     # gdouble:      (num64)
[Gnome::N]     # gfloat:       (num32)
[Gnome::N]     # gint:         (int32)
[Gnome::N]     # gint-ptr:     (CArray[int32])
[Gnome::N]     # gint16:       (int16)
[Gnome::N]     # gint32:       (int32)
[Gnome::N]     # gint64:       (int64)
[Gnome::N]     # gint8:        (int8)
[Gnome::N]     # glong:        (int32)
[Gnome::N]     # gpointer:     (NativeCall::Types::Pointer)
[Gnome::N]     # gshort:       (int16)
[Gnome::N]     # gsize:        (uint32)
[Gnome::N]     # gssize:       (int32)
[Gnome::N]     # guchar:       (uint8)
[Gnome::N]     # guint:        (uint32)
[Gnome::N]     # guint16:      (uint16)
[Gnome::N]     # guint32:      (uint32)
[Gnome::N]     # guint64:      (uint64)
[Gnome::N]     # guint8:       (uint8)
[Gnome::N]     # gulong:       (uint32)
[Gnome::N]     # gushort:      (uint16)
[Gnome::N]     # int-ptr:      (CArray[int32])
[Gnome::N]     # void-ptr:     (NativeCall::Types::Pointer[NativeCall::Types::void])
[Gnome::N]     # OS: mswin32
[Gnome::N]     # config: %s.dll
[Gnome::N]     # is-win: True
[Gnome::N] Use of uninitialized value element of type Any in string context.
[Gnome::N] Methods .^name, .raku, .gist, or .say can be used to stringify it to something meaningful.
[Gnome::N]   in block  at t\NativeLib.t line 59
[Gnome::N]     # arch:
[Gnome::N]     # archname: x86_64-win32
===> Testing [OK] for Gnome::N:ver<0.18.4>
===> Testing: Gnome::Glib:ver<0.17.3.3>
===> Testing [OK] for Gnome::Glib:ver<0.17.3.3>
===> Testing: Gnome::GObject:ver<0.16.16>
[Gnome::GObject]     # G_TYPE_INVALID: 0
[Gnome::GObject]     # G_TYPE_NONE: 4
[Gnome::GObject]     # G_TYPE_INTERFACE: 8
[Gnome::GObject]     # G_TYPE_CHAR: 12
[Gnome::GObject]     # G_TYPE_UCHAR: 16
[Gnome::GObject]     # G_TYPE_BOOLEAN: 20
[Gnome::GObject]     # G_TYPE_INT: 24
[Gnome::GObject]     # G_TYPE_UINT: 28
[Gnome::GObject]     # G_TYPE_LONG: 32
[Gnome::GObject]     # G_TYPE_ULONG: 36
[Gnome::GObject]     # G_TYPE_INT64: 40
[Gnome::GObject]     # G_TYPE_UINT64: 44
[Gnome::GObject]     # G_TYPE_ENUM: 48
[Gnome::GObject]     # G_TYPE_FLAGS: 52
[Gnome::GObject]     # G_TYPE_FLOAT: 56
[Gnome::GObject]     # G_TYPE_DOUBLE: 60
[Gnome::GObject]     # G_TYPE_STRING: 64
[Gnome::GObject]     # G_TYPE_POINTER: 68
[Gnome::GObject]     # G_TYPE_BOXED: 72
[Gnome::GObject]     # G_TYPE_PARAM: 76
[Gnome::GObject]     # G_TYPE_OBJECT: 80
[Gnome::GObject]     # G_TYPE_VARIANT: 84
===> Testing [FAIL]: Gnome::GObject:ver<0.16.16>


from gnome-gtk3.

MARTIMM avatar MARTIMM commented on August 28, 2024

It amazes me that every system does something different somehow. This here looks like a segmentation violation of some sort. I cannot even see where the problem takes place.
To get some more info, it might help to install Gnome::Glib first, then clone the Gnome::GObject from Github, and then run raku instead of prove on the tests. The error can even go away which is bad though.

from gnome-gtk3.

hakonhagland avatar hakonhagland commented on August 28, 2024

Yes it looks like a segfault:

$ PATH="/mingw64/bin:$PATH" zef install Gnome::Glib
===> Searching for: Gnome::Glib
===> Searching for missing dependencies: Gnome::N
===> Building: Gnome::N:ver<0.18.4>
===> Building [OK] for Gnome::N:ver<0.18.4>
===> Testing: Gnome::N:ver<0.18.4>
[Gnome::N]     # GEnum:        (int32)
[Gnome::N]     # GFlag:        (uint32)
[Gnome::N]     # GQuark:       (uint32)
[Gnome::N]     # GType:        (uint32)
[Gnome::N]     # char-ppptr:   (CArray[CArray[Str]])
[Gnome::N]     # char-pptr:    (CArray[Str])
[Gnome::N]     # gboolean:     (int32)
[Gnome::N]     # gchar:        (int8)
[Gnome::N]     # gchar-ppptr:  (CArray[CArray[Str]])
[Gnome::N]     # gchar-pptr:   (CArray[Str])
[Gnome::N]     # gchar-ptr:    (Str)
[Gnome::N]     # gdouble:      (num64)
[Gnome::N]     # gfloat:       (num32)
[Gnome::N]     # gint:         (int32)
[Gnome::N]     # gint-ptr:     (CArray[int32])
[Gnome::N]     # gint16:       (int16)
[Gnome::N]     # gint32:       (int32)
[Gnome::N]     # gint64:       (int64)
[Gnome::N]     # gint8:        (int8)
[Gnome::N]     # glong:        (int32)
[Gnome::N]     # gpointer:     (NativeCall::Types::Pointer)
[Gnome::N]     # gshort:       (int16)
[Gnome::N]     # gsize:        (uint32)
[Gnome::N]     # gssize:       (int32)
[Gnome::N]     # guchar:       (uint8)
[Gnome::N]     # guint:        (uint32)
[Gnome::N]     # guint16:      (uint16)
[Gnome::N]     # guint32:      (uint32)
[Gnome::N]     # guint64:      (uint64)
[Gnome::N]     # guint8:       (uint8)
[Gnome::N]     # gulong:       (uint32)
[Gnome::N]     # gushort:      (uint16)
[Gnome::N]     # int-ptr:      (CArray[int32])
[Gnome::N]     # void-ptr:     (NativeCall::Types::Pointer[NativeCall::Types::void])
[Gnome::N]     # OS: mswin32
[Gnome::N]     # config: %s.dll
[Gnome::N]     # is-win: True
[Gnome::N] Use of uninitialized value element of type Any in string context.
[Gnome::N] Methods .^name, .raku, .gist, or .say can be used to stringify it to something meaningful.
[Gnome::N]   in block  at t\NativeLib.t line 59
[Gnome::N]     # arch:
[Gnome::N]     # archname: x86_64-win32
===> Testing [OK] for Gnome::N:ver<0.18.4>
===> Testing: Gnome::Glib:ver<0.17.3.3>
===> Testing [OK] for Gnome::Glib:ver<0.17.3.3>
===> Installing: Gnome::N:ver<0.18.4>
===> Installing: Gnome::Glib:ver<0.17.3.3>

$ git clone https://github.com/MARTIMM/gnome-gobject.git
Cloning into 'gnome-gobject'...
remote: Enumerating objects: 533, done.
remote: Counting objects: 100% (533/533), done.
remote: Compressing objects: 100% (269/269), done.
remote: Total 1712 (delta 286), reused 410 (delta 170), pack-reused 1179
Receiving objects: 100% (1712/1712), 494.66 KiB | 323.00 KiB/s, done.
Resolving deltas: 100% (945/945), done.

$ cd gnome-gobject/
$ raku -Ilib t/Boxed.t
    ok 1 - The object is-a 'Gnome::GObject::Boxed'
    1..1
ok 1 - create boxed
1..1
$ raku -Ilib t/Type.t
    ok 1 - The object is-a 'Gnome::GObject::Type'
    1..1
ok 1 - ISA test
    # G_TYPE_INVALID: 0
    # G_TYPE_NONE: 4
    # G_TYPE_INTERFACE: 8
    # G_TYPE_CHAR: 12
    # G_TYPE_UCHAR: 16
    # G_TYPE_BOOLEAN: 20
    # G_TYPE_INT: 24
    # G_TYPE_UINT: 28
    # G_TYPE_LONG: 32
    # G_TYPE_ULONG: 36
    # G_TYPE_INT64: 40
    # G_TYPE_UINT64: 44
    # G_TYPE_ENUM: 48
    # G_TYPE_FLAGS: 52
    # G_TYPE_FLOAT: 56
    # G_TYPE_DOUBLE: 60
    # G_TYPE_STRING: 64
    # G_TYPE_POINTER: 68
    # G_TYPE_BOXED: 72
    # G_TYPE_PARAM: 76
    # G_TYPE_OBJECT: 80
    # G_TYPE_VARIANT: 84
    1..0
ok 2 - type tests
1..2
$ PATH="/mingw64/bin:$PATH" raku -Ilib t/Value.t
    ok 1 - .new(:init)
    ok 2 - .is-valid() True after :init
    ok 3 - .new( :type, :value)
    ok 4 - .is-valid() True after :type and :value
    ok 5 - .g_value_reset()
    ok 6 - native object type still string
    ok 7 - .is-valid() True after reset
    ok 8 - .clear-object()
    1..8
ok 1 - ISA test
    ok 1 - .get-boolean()
    ok 2 - .set-boolean()
    ok 3 - .get-schar()
    ok 4 - .set-schar()
    ok 5 - .get-uchar()
    ok 6 - .set-uchar()
    ok 7 - .get-int()
    ok 8 - .set-int()
    ok 9 - .get-uint()
    ok 10 - .set-uint()
    ok 11 - .get-long()
    ok 12 - .set-long()
    ok 13 - .get-ulong()
    ok 14 - .set-ulong()
    ok 15 - .get-int64()
    ok 16 - .set-int64()
    ok 17 - .get-uint64()
    ok 18 - .set-uint64()
    ok 19 - .get-float()
    ok 20 - .set-float()
    ok 21 - .get-double()
    ok 22 - .set-double()
    ok 23 - .get-string()
    ok 24 - .set-string()
    ok 25 - .type-compatible()
    ok 26 - .type-transformable()
Segmentation fault

from gnome-gtk3.

MARTIMM avatar MARTIMM commented on August 28, 2024

Thank you for your tests.

I had used a fake GType value which your system takes more seriously! Mine, Appveyor and Travis-ci didn't have problems. Anyways, removed the last tests and tested again on Appveyor and Travis-ci. Version 0.16.16.2 will be available anytime soon.

from gnome-gtk3.

hakonhagland avatar hakonhagland commented on August 28, 2024

Thanks for the updates. Now Gnome::Gio fails here (after having installed Gnome::GObject 0.16.16.2):

$ PATH="/mingw64/bin:$PATH" zef install Gnome::Gtk3
===> Searching for: Gnome::Gtk3
===> Updating cpan mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan1.json
===> Searching for missing dependencies: Gnome::Gio, Gnome::Gdk3, Gnome::Cairo
===> Testing: Gnome::Gio:ver<0.5.1.1>
[Gnome::Gio]     # Failed test '.get-path()'
[Gnome::Gio]     # at t\File.t line 51
[Gnome::Gio]     # expected a match with: / 't/data/g-resources/rtest' $/
[Gnome::Gio]     #                   got: "C:\\msys64\\home\\hakon\\.zef\\store\\gnome-gio-0.5.1.1.tar.gz\\gnome-gio-0.5.1.1\\t\\data\\g-resources\\rtest"
[Gnome::Gio]     # You failed 1 test of 5
[Gnome::Gio] # Failed test 'Manipulations'
[Gnome::Gio] # at t\File.t line 38
[Gnome::Gio] # You failed 1 test of 2
===> Testing [FAIL]: Gnome::Gio:ver<0.5.1.1>
===> Updated cpan mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan1.json
===> Updating p6c mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/p6c1.json
===> Updated p6c mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/p6c1.json
Aborting due to test failure: Gnome::Gio:ver<0.5.1.1> (use --force-test to override)


from gnome-gtk3.

MARTIMM avatar MARTIMM commented on August 28, 2024

This is not really a problem, just a test for Linux systems instead of windows. I've had similar problems with languages. Testing on an English phrase on a french oriΓ«nted system went also wrong. I have to remove that test and push another version.

thanks for pointing this out.

from gnome-gtk3.

MARTIMM avatar MARTIMM commented on August 28, 2024

pushed gnome-gio version 0.5.2

from gnome-gtk3.

hakonhagland avatar hakonhagland commented on August 28, 2024

I still get test failure, now for Gnome::Gtk3 itself:

$ git clone https://github.com/MARTIMM/gnome-gio.git
$ cd gnome-gio
$ PATH="/mingw64/bin:$PATH" zef install .
===> Testing: Gnome::Gio:ver<0.5.2>
===> Testing [OK] for Gnome::Gio:ver<0.5.2>
===> Installing: Gnome::Gio:ver<0.5.2>
$ PATH="/mingw64/bin:$PATH" zef install Gnome::Gtk3
===> Searching for: Gnome::Gtk3
Aborting due to test failure: Gnome::Gtk3:ver<0.34.2.1> (use --force-test to override)
===> Searching for missing dependencies: Gnome::Gdk3, Gnome::Cairo
===> Testing: Gnome::Cairo:ver<0.2.0>
===> Testing [OK] for Gnome::Cairo:ver<0.2.0>
===> Testing: Gnome::Gdk3:ver<0.17.2>
===> Testing [OK] for Gnome::Gdk3:ver<0.17.2>
===> Testing: Gnome::Gtk3:ver<0.34.2.1>
[Gnome::Gtk3]     #
[Gnome::Gtk3]     #  Row  |  String
[Gnome::Gtk3]     # ------+-------------------
[Gnome::Gtk3]     #     0 | user-trash-symbolic
[Gnome::Gtk3]     #     1 | folder-music-symbolic
[Gnome::Gtk3]     #     2 | folder-videos-symbolic.symbolic
[Gnome::Gtk3]     #     3 | user-trash-symbolic.symbolic
[Gnome::Gtk3]     #     4 | start-here-symbolic.symbolic
[Gnome::Gtk3]     #     5 | folder-templates-symbolic
[Gnome::Gtk3]     #     6 | user-home-symbolic
[Gnome::Gtk3]     #     7 | folder-music
[Gnome::Gtk3]     #     8 | folder
[Gnome::Gtk3]     #     9 | folder-pictures-symbolic
[Gnome::Gtk3]     #    10 | folder-publicshare-symbolic
[Gnome::Gtk3]     #
[Gnome::Gtk3]     #  Row  | Number | String
[Gnome::Gtk3]     # ------+--------+-------------------
[Gnome::Gtk3]     #     0 |   4004 | dus
[Gnome::Gtk3]     #     1 |   1001 | duizend en een nacht
[Gnome::Gtk3]     #     2 |    555 | en een nieuwe entry
[Gnome::Gtk3]     #     3 |    123 | I am lost of words
[Gnome::Gtk3]     #     4 |   2002 | een beetje later
[Gnome::Gtk3]     #     5 |   1098 | #me too
[Gnome::Gtk3]     #
[Gnome::Gtk3]     #  Row  | Number | String
[Gnome::Gtk3]     # ------+--------+-------------------
[Gnome::Gtk3] (TextTagTable.t:12244): Gtk-WARNING **: 01:02:56.524: A tag named 'my-tt' is already in the tag table.
[Gnome::Gtk3]     #
[Gnome::Gtk3]     #  Row  | Number | String
[Gnome::Gtk3]     # ------+--------+-------------------
[Gnome::Gtk3]     #     0 |   9092 | the rain in spain...
[Gnome::Gtk3]     #     1 |   5005 | dus
[Gnome::Gtk3]     #   1:0 |      6 | en nog wat
[Gnome::Gtk3]     # 1:0:0 |    123 | uno dos tres
[Gnome::Gtk3]     # 1:0:1 |      7 | je kan me wat
[Gnome::Gtk3]     #   1:1 |      2 | the rain in spain... deel 3
[Gnome::Gtk3]     #   1:2 |      1 | the rain in spain... deel 2
[Gnome::Gtk3]     #     2 |   1001 | duizend en een nacht
[Gnome::Gtk3]     #   2:0 |      1 | wat zal ik nou weer eens tikken... deel 2
[Gnome::Gtk3]     #   2:1 |      2 | wat zal ik nou weer eens tikken... deel 3
[Gnome::Gtk3]     #   2:2 |    101 | one o one
[Gnome::Gtk3]     #   2:3 |      3 | en nog een zinnetje
[Gnome::Gtk3]     #     3 |   9091 | wat zal ik nou weer eens tikken...
[Gnome::Gtk3]     #
[Gnome::Gtk3]     #  Row  | Number | String
[Gnome::Gtk3]     # ------+--------+-------------------
===> Testing [FAIL]: Gnome::Gtk3:ver<0.34.2.1>

from gnome-gtk3.

MARTIMM avatar MARTIMM commented on August 28, 2024

I've not found a problem. Changed a few things though and pushed gnome-native-0.18.5 and gnome-gtk3-0.34.3.

Please open a new issue if there is another problem. I've closed this one a while ago!

from gnome-gtk3.

hakonhagland avatar hakonhagland commented on August 28, 2024

It works now! Thanks for the updates πŸ‘

from gnome-gtk3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.