Package Details: gtkada 2016-1

Git Clone URL: https://aur.archlinux.org/gtkada.git (read-only)
Package Base: gtkada
Description: GtkAda is a Gtk3 binding for Ada using the OOP and other features of this programming language
Upstream URL: http://libre.adacore.com/libre/tools/GtkAda/
Licenses: GPL
Submitter: None
Maintainer: charlie5
Last Packager: charlie5
Votes: 8
Popularity: 0.535868
First Submitted: 2009-07-17 04:43
Last Updated: 2016-06-11 10:36

Latest Comments

charlie5 commented on 2016-08-29 10:12

Hi Stephan,

I'm having trouble reproducing the problem. I'll try to get onto it this week sometime.

Stephan commented on 2016-08-28 08:21

Show stopper:

I wanted the asis tools but it runs into a dependency on gtkada. And gtkada won't compile:

====== Building tools =====
/usr/bin/gprbuild -j0 -m -p -XLIBRARY_TYPE=static -Psrc/tools/tools.gpr
object directory "/tmp/yaourt-tmp-sl/aur-gtkada/src/gtkada-gpl-2016-src/src/tools/../obj/tools/" created
Error: no native compiler found for language 'ada', default runtime
tools.gpr:27:09: warning: there are no C sources in this project
gtkada.gpr:26:17: warning: no compiler specified for language "Ada", ignoring all its sources
tools.gpr:28:18: "gdialog.adb" is not a source of project "tools"
gprbuild: problems with main sources
make: *** [Makefile:69: tools] Fehler 4

Is there some way around this issue?

storchi commented on 2015-10-28 15:37

Installation fails.

[cs@myarchlinux gtkada]$ makepkg -sri
==> Erstelle Paket: gtkada 2015-1 (Mi 28. Okt 16:32:30 CET 2015)
==> Prüfe Laufzeit-Abhängigkeiten...
==> Prüfe Buildtime-Abhängigkeiten...
==> Empfange Quellen...
-> Lade db00d9243e8d34c0da0a583c22903272f2d28135 herunter...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10.7M 100 10.7M 0 0 768k 0 0:00:14 0:00:14 --:--:-- 435k
-> patch-Makefile.in gefunden
-> patch-projects-Makefile.in gefunden
==> Überprüfe Gültigkeit der Quell-Dateien mit md5sums...
db00d9243e8d34c0da0a583c22903272f2d28135 ... Durchgelaufen
patch-Makefile.in ... Durchgelaufen
patch-projects-Makefile.in ... Durchgelaufen
==> Entpacke Quellen...
-> Entpacke db00d9243e8d34c0da0a583c22903272f2d28135 mit bsdtar
==> Beginne prepare()...
patching file Makefile.in
patching file projects/Makefile.in
==> Beginne build()...
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gprbuild... /usr/bin/gprbuild
checking that your gnat compiler works with a simple example... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether NLS is requested... yes
checking for gettext in libc... yes
checking for pkg-config... /usr/bin/pkg-config
checking for GTK - version >= 3.8.3... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating shared.gpr
config.status: creating src/tools/gtkada-config
config.status: creating projects/Makefile
config.status: creating docs/Makefile
config.status: creating docs/gtkada_rm/Makefile
config.status: creating po/Makefile
config.status: creating src/config.h
config.status: creating projects/gtkada.gpr
config.status: creating projects/gtkada_gl.gpr
config.status: creating projects/gtkada.pc
config.status: creating projects/gtkada_install_dynamic.gpr
config.status: creating projects/gtkada_install_dynamic_gl.gpr
configure: --------- Summary for Gtkada 3.8.3 -----------------
configure: Shared libraries: yes (default: static)
configure: OpenGL: False
configure: --------------------------------------------
gnatprep -DGETTEXT_INTL=False -DHAVE_GETTEXT=True src/gtkada-intl.gpb src/gtkada-intl.adb
====== Building static libraries =====
/usr/bin/gprbuild -j0 -m -p -XLIBRARY_TYPE=static -Psrc/gtkada_src.gpr
object directory "/home/cs/src/gtkada/src/gtkada-gpl-2015-src/src/obj/gtkada/static/" created
Error: no native compiler found for language 'ada', default runtime
library directory "/home/cs/src/gtkada/src/gtkada-gpl-2015-src/src/lib/gtkada/static" created for project gtkada_src
gtkada_src.gpr:3:17: warning: no compiler specified for language "Ada", ignoring all its sources
clang -c -O2 -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include misc_generated.c
clang -c -O2 -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include misc.c
/home/cs/src/gtkada/src/gtkada-gpl-2015-src/src/misc.c:420:33: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
g_log (log_domain, log_level, format);
^~~~~~
1 warning generated.
gprlib gtkada.lexch
ar cr /home/cs/src/gtkada/src/gtkada-gpl-2015-src/src/lib/gtkada/static/libgtkada.a /home/cs/src/gtkada/src/gtkada-gpl-2015-src/src/obj/gtkada/static/misc_generated.o /home/cs/src/gtkada/src/gtkada-gpl-2015-src/src/obj/gtkada/static/misc.o
ranlib libgtkada.a
====== Building relocatable libraries =====
/usr/bin/gprbuild -j0 -m -p -XLIBRARY_TYPE=relocatable -Psrc/gtkada_src.gpr
object directory "/home/cs/src/gtkada/src/gtkada-gpl-2015-src/src/obj/gtkada/relocatable/" created
Error: no native compiler found for language 'ada', default runtime
library directory "/home/cs/src/gtkada/src/gtkada-gpl-2015-src/src/lib/gtkada/relocatable" created for project gtkada_src
gtkada_src.gpr:3:17: warning: no compiler specified for language "Ada", ignoring all its sources
clang -c -O2 -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include misc_generated.c
clang -c -O2 -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include misc.c
/home/cs/src/gtkada/src/gtkada-gpl-2015-src/src/misc.c:420:33: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
g_log (log_domain, log_level, format);
^~~~~~
1 warning generated.
gprlib gtkada.lexch
clang -shared -o /home/cs/src/gtkada/src/gtkada-gpl-2015-src/src/lib/gtkada/relocatable/libgtkada.so.3.8.3 ... /home/cs/src/gtkada/src/gtkada-gpl-2015-src/src/obj/gtkada/relocatable/misc_generated.o ...
/usr/bin/ld: /home/cs/src/gtkada/src/gtkada-gpl-2015-src/src/obj/gtkada/relocatable/misc.o: relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/home/cs/src/gtkada/src/gtkada-gpl-2015-src/src/obj/gtkada/relocatable/misc.o: error adding symbols: Bad value
clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)
gprlib: /usr/bin/clang execution error
gprbuild: could not build library for project gtkada_src
Makefile:78: die Regel für Ziel „build_library_type/relocatable“ scheiterte
make: *** [build_library_type/relocatable] Fehler 4
==> FEHLER: Ein Fehler geschah in build().
Breche ab...



Georgios commented on 2015-05-13 16:03

charlie5, update the description!

City-busz commented on 2014-05-13 03:51

Please move gcc-ada to makedepends, because it's not needed for running gtkada applications.

Anonymous comment on 2012-05-04 10:33

May be broken, but not out of date.. Will fix it this evening.

Reventlov commented on 2012-05-04 10:18

Broken.

[…]
gcc -c -gnatec=/media/Archlinux/gtkada/src/gtkada-gpl-2.18.0-src/src/gnat.adc -gnatec=/media/Archlinux/gtkada/src/gtkada-gpl-2.18.0-src/src/gnat.adc -gnatQ -O2 -gnatn -gnatws -fPIC -I- -gnatA /media/Archlinux/gtkada/src/gtkada-gpl-2.18.0-src/src/gtk-plug.adb
gcc -c -gnatec=/media/Archlinux/gtkada/src/gtkada-gpl-2.18.0-src/src/gnat.adc -gnatec=/media/Archlinux/gtkada/src/gtkada-gpl-2.18.0-src/src/gnat.adc -gnatQ -O2 -gnatn -gnatws -fPIC -I- -gnatA /media/Archlinux/gtkada/src/gtkada-gpl-2.18.0-src/src/gtk-list.adb
gcc -o lib-obj/misc.o -c -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wall -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I.. -fPIC misc.c
In file included from misc.c:39:0:
/usr/include/glib-2.0/glib/gmain.h:21:2: error: #error "Only <glib.h> can be included directly."
misc.c: In function 'ada_initialize_class_record':
misc.c:609:10: warning: variable 'id' set but not used [-Wunused-but-set-variable]
misc.c: In function 'ada_gparam_get_name':
misc.c:3799:3: warning: return discards 'const' qualifier from pointer target type [enabled by default]
make[1]: *** [lib-obj/misc.o] Error 1
make[1]: Leaving directory `/media/Archlinux/gtkada/src/gtkada-gpl-2.18.0-src/src'
make: *** [src] Error 2
==> ERROR: A failure occurred in build().
Aborting...

Anonymous comment on 2012-01-27 22:08

fixed linking errors: added -lX11 and -lXrender to the linker flags in gpr file.

titiwu commented on 2012-01-18 17:42

It works (x86-64)! Thanks a lot!

Anonymous comment on 2012-01-18 10:30

Thanks, titiwu, I didn't notice this.

Had similar problems while creating gtkada-svn, just had to apply the same patch. Should work again now.

All comments