Problems with gtk-unit-converter

20 views
Skip to first unread message

zbyszek

unread,
Sep 16, 2019, 10:44:12 AM9/16/19
to dylan...@googlegroups.com
I tried to test gtk-unit-converter from
opendylan-2019.1/sources/app/gtk-unit-converter

dylan-compiler -build gtk-unit-converter.lid

and received error in gobject library.
The diagnostics is as follows:

--------------------------------------------------------------------
...
Computing code models for library gobject

/opt/opendylan-2019.1/sources/gtk/gobject-dylan/gobject.dylan:2092:
Error - Unresolved C-function parameter type, <object>, in the
definition of g-signal-set-va-marshaller.
--------
input parameter va_marshaller_ :: <object> /* <C-XXX-interface>
*/;
--------

/opt/opendylan-2019.1/sources/gtk/gobject-dylan/gobject.dylan:2092:
Error - Unresolved C-function parameter type, <object>, in the
definition of g-signal-set-va-marshaller.
--------
input parameter va_marshaller_ :: <object> /* <C-XXX-interface>
*/;
--------
Checking bindings in library gobject
Performing type analysis of library gobject
...
--------------------------------------------------------------------------

and then compilation follows until poor end

----------------------------------------------------------------------
...
Build of 'gtk-unit-converter' completed
Linking gtk-unit-converter

Internal error: Link failed: Link failed: Command failed: gcc
-o /home/zbyszek/work/dylan/gtk-unit-converter/_build/bin/gtk-unit-converter -w -g -O2 -DOPEN_DYLAN_PLATFORM_UNIX -DOPEN_DYLAN_PLATFORM_LINUX -DOPEN_DYLAN_ARCH_X86_64 -DGC_THREADS -DGC_USE_BOEHM -fPIC -L/opt/opendylan-2019.1/lib/runtime/c-x86_64-linux/ -Wl,-z,origin -Wl,-rpath,\$ORIGIN/../lib/ -I/opt/opendylan-2019.1/include _main.c -L"/home/zbyszek/work/dylan/gtk-unit-converter/_build/lib" -lgtk-unit-converter -lcommon-dylan -ldylan -lgc -lm -lgc -lunwind -lpthread -lrt -lio -lgobject-dylan -lc-ffi -lglib-dylan -lgtk-dylan -lgdk-dylan -lgmodule-dylan -lgio-dylan -lgdkpixbuf-dylan -lcairo-dylan -lpango-dylan -latk-dylan

objcopy /home/zbyszek/work/dylan/gtk-unit-converter/_build/bin/gtk-unit-converter /home/zbyszek/work/dylan/gtk-unit-converter/_build/bin/gtk-unit-converter.dbg
objcopy
--add-gnu-debuglink=/home/zbyszek/work/dylan/gtk-unit-converter/_build/bin/gtk-unit-converter.dbg /home/zbyszek/work/dylan/gtk-unit-converter/_build/bin/gtk-unit-converter
strip
-s /home/zbyszek/work/dylan/gtk-unit-converter/_build/bin/gtk-unit-converter
Exiting with return code -1
------------------------------------------------------------------

The culprit seems to be <object>. it occurs nowhere else in this
library. I tried to replace it with <GObject>, which probably didn't
make sense - diagnostics disappeared, but final stayed the same.

This was tested on Linux Debian from 2017 with gcc 6.3.0 and on
Linux PLD, results were the same.

Is it a known error or am I doing something wrong? (I haven't used Dylan
for some time, this is reactivation).

Regards

Zbyszek Jurkiewicz





Peter Hull

unread,
Sep 17, 2019, 10:09:29 AM9/17/19
to dylan-lang
On Monday, 16 September 2019 15:44:12 UTC+1, zbyszek wrote:
I tried to test gtk-unit-converter from
opendylan-2019.1/sources/app/gtk-unit-converter

I don't know the answer unfortunately but I do see the same errors as you. It might be better if you asked on Gitter (https://gitter.im/dylan-lang/general) - Bruce Mitchener is active there and I think he was the last to work on GTK.
Pete
Reply all
Reply to author
Forward
0 new messages