Package Details: gnatcoll-iconv 1:22.0.0-2

Git Clone URL: https://aur.archlinux.org/gnatcoll-bindings.git (read-only, click to copy)
Package Base: gnatcoll-bindings
Description: GNAT Components Collection - Bindings to GMP
Upstream URL: https://github.com/AdaCore/gnatcoll-bindings
Licenses: custom, GPL3
Submitter: xiretza
Maintainer: xiretza (charlie5)
Last Packager: xiretza
Votes: 5
Popularity: 0.000133
First Submitted: 2020-06-06 12:06 (UTC)
Last Updated: 2022-05-15 10:05 (UTC)

Latest Comments

charlie5 commented on 2021-07-02 07:41 (UTC) (edited on 2021-07-02 07:42 (UTC) by charlie5)

@majora

Perhaps try cleaning out any AUR helper caches (ie ~/.cache/pacaur). Then remove all gcc-ada built packages. Then try to rebuild whichever of the gnatcoll bindings you need.

$ rm -fr ~/.cache/pacaur

$ sudo pacman -Rsc gcc-ada

$ pacaur -S gnatcoll-python2

majora commented on 2021-07-01 20:23 (UTC)

Not sure if I'm missing some dep but I can't seem to get the package built

==> Starting build()...
/usr/bin/gprconfig: symbol lookup error: /usr/bin/gprconfig: undefined symbol: gpr__nmsc__finalize_body
process failed with status: 127
==> ERROR: A failure occurred in build().
    Aborting...
error making: gnatcoll-bindings (gnatcoll-gmp)

similar to here: https://aur.archlinux.org/packages/gnatcoll-core/#comment-809953

charlie5 commented on 2021-06-21 21:09 (UTC)

@Armag67 hi :)

Glad to hear the new updates worked for you. We are waiting for Adacore to release the 2021 gnat-gps source tarball and will then be able to get gnat-gps building again.

We're also working on a set of *-git packages for gnat-gps and its dependencies. Hopefully they will be in the AUR within the next few days.

Armag67 commented on 2021-06-21 14:23 (UTC)

Hello,

With today's new gnat-gps dependency updates, everything was fine at compile time, but I think I have to wait for a new gnat-gps update to get GNAT Studio working again ...

Armag67 commented on 2021-06-09 18:35 (UTC) (edited on 2021-06-09 18:57 (UTC) by Armag67)

Hello, I have made the recent updates of gnat-gps dependency on Manjaro Linux (with gcc 11.1.0-1 installed) as usual (gprbuild-bootstrap -> xmlada -> libgpr -> gprbuild -> gnatcoll-core), but libadalang and gnatcoll-gnatinspect needs gnatcoll-python2, gnatcoll-gmp, gnatcoll-iconv and gnatcoll-readline dependancies (included in gnatcoll-bindings). Unfortunately gnatcoll-bindings build fails with this traceback (even with the -fPIC flag in PKGBUILD):

Build Libraries
   [gprlib]       gnatcoll_python.lexch
   [link library] libgnatcoll_python.so
/usr/bin/ld: /home/h2/Installs/git/gnatcoll-bindings/src/gnatcoll-bindings-21.0.0/python/obj/relocatable/python_support.o: warning: relocation against `init_user_module' in read-only section `.text'
/usr/bin/ld: /home/h2/Installs/git/gnatcoll-bindings/src/gnatcoll-bindings-21.0.0/python/obj/relocatable/python_support.o: relocation R_X86_64_PC32 against symbol `init_user_module' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
gprlib: /usr/bin/gcc execution error
gprbuild: could not build library for project gnatcoll_python
process failed with status: 4
==> ERROR: A failure occurred in build().
    Aborting...

P.-S. : I have launched the compilation in the:

export LANG=en_US.UTF-8
export LC_TIME=fr_FR

context for this post.

Thanks to take a look... ;=)

charlie5 commented on 2021-05-03 16:52 (UTC)

@xiretza @swilde

Just FYI ... I built all ada packages last night in a fresh archy install. Did not have this problem.

gnatcoll-bindings-20.0-20191009 seems old. Perhaps try ...

$ sudo pacman -R gnatcoll-bindings

... and then rebuild it ?

xiretza commented on 2021-05-03 16:26 (UTC)

@swilde: please post the full makepkg output, I can't reproduce it.

swilde commented on 2021-05-03 14:30 (UTC)

Build fails with:

Build Libraries [gprlib] gnatcoll_python.lexch [link library] libgnatcoll_python.so /usr/bin/ld: /var/tmp/aura-build/gnatcoll-iconv-2515929757877381671/gnatcoll-bindings/src/gnatcoll-bindings-20.0-20191009-1B2EA-src/python/obj/relocatable/python_support.o: warning: relocation against init_user_module' in read-only section.text' /usr/bin/ld: /var/tmp/aura-build/gnatcoll-iconv-2515929757877381671/gnatcoll-bindings/src/gnatcoll-bindings-20.0-20191009-1B2EA-src/python/obj/relocatable/python_support.o: relocation R_X86_64_PC32 against symbol `init_user_module' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status gprlib: /usr/bin/gcc execution error gprbuild: could not build library for project gnatcoll_python process failed with status: 4

cyberpunk_ava commented on 2020-11-29 17:55 (UTC)

Hi, im getting this error.

==> Starting build()... Traceback (most recent call last): File "setup.py", line 2, in <module> import logging File "/usr/bin/lib/python2.7/logging/init.py", line 26, in <module> import sys, os, time, cStringIO, traceback, warnings, weakref, collections ImportError: /usr/bin/lib/python2.7/lib-dynload/time.so: undefined symbol: PyUnicodeUCS2_FromFormat ==> ERROR: A failure occurred in build(). Aborting...

xiretza commented on 2020-06-27 11:11 (UTC)

@maximbaz: it exists, but currently only has one package: https://aur.archlinux.org/pkgbase/gnatcoll-bindings

maximbaz commented on 2020-06-27 10:57 (UTC)

@xiretza you need to create gnatcoll-bindings package first before the merge request can be accepted

Armag67 commented on 2020-06-10 16:10 (UTC)

It works with:

_gpr_opts="-R -cargs -fPIC $CFLAGS -largs $LDFLAGS" (only once -fPIC flags)

I get a 207,392 octets (202.5 Kio) gnatcoll-python2-2020-3-x86_64.pkg.tar.xz Alpm package. I will test it tomorrow...

Armag67 commented on 2020-06-09 14:05 (UTC)

I have posted about that on gnat-gps thread.

xiretza commented on 2020-06-08 16:26 (UTC)

@Th3Fanbus: are you sure? I'm pretty sure -fPIC is default even for gcc-ada; the fact that the build fails with -fno-PIC reinforces that idea.

Th3Fanbus commented on 2020-06-08 16:14 (UTC)

Looks like this will fail unless specifying -fPIC in _gpr_opts:

_gpr_opts="-R -cargs -fPIC $CFLAGS -largs -fPIC $LDFLAGS"

xiretza commented on 2020-05-30 07:28 (UTC)

@ManfredGahr: nobody knows for certain, I think the biggest show-stopper right now is GNAT Studio with its python2 user scripts. I'm hoping the 2021 release will at least support python3, but I have no idea. At least langkit's numerous python2 build-time dependencies were dropped a few days ago, but I don't think that change will land in a release until 2021: https://github.com/AdaCore/langkit/issues/5

ManfredGahr commented on 2020-05-28 06:52 (UTC) (edited on 2020-05-28 09:45 (UTC) by ManfredGahr)

builds again after the update - great work. By the way - do you know if Adacore is planning to switch to a more modern (and supported) version of Python anytime soon? There's an issue on github ( https://github.com/AdaCore/gnatcoll-bindings/issues/8 ), but it seems Adacore ships Python 2 even with GnatPRO

xiretza commented on 2020-05-26 11:54 (UTC)

@ManfredGahr: yes, the package hasn't been updated to the 2020 release yet, so build failures are possible. I'm planning on merging all the gnatcoll-bindings based packages into a single pkgbase, and there's a merge request open for gnatcoll-python already, but it hasn't been accepted by TUs yet. Once that's through, I will push the PKGBUILD I've already updated and tested, shouldn't be more than a few days.

ManfredGahr commented on 2020-05-26 09:09 (UTC) (edited on 2020-05-26 09:10 (UTC) by ManfredGahr)

does not link at the moment (version mismatch with gnatcoll-core?):

   [link library] libgnatcoll_python.so
/usr/bin/ld: /home/mane/trizen/gnatcoll-python/src/gnatcoll-bindings-2019-20190430-1928C-src/python/obj/relocatable/python_support.o: relocation R_X86_64_PC32 against symbol `init_user_module' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
gprlib: /usr/bin/gcc execution error
gprbuild: could not build library for project gnatcoll_python
process failed with status: 4