Package Details: libadalang 2020-1

Git Clone URL: https://aur.archlinux.org/libadalang.git (read-only, click to copy)
Package Base: libadalang
Description: A high performance semantic engine for the Ada programming language.
Upstream URL: https://github.com/AdaCore/libadalang
Licenses: GPL
Submitter: charlie5
Maintainer: charlie5 (xiretza)
Last Packager: xiretza
Votes: 4
Popularity: 0.042494
First Submitted: 2017-06-05 06:00
Last Updated: 2020-05-23 19:08

Sources (37)

Pinned Comments

charlie5 commented on 2020-11-16 08:53

If build hangs, please ensure you have more than 4Gig of RAM+Swap (8+ Gig is recommended).

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

krouziciorel commented on 2020-06-10 21:38

Dear Xiretza,

I tried to build actual libadalang package, all dependencies are installed properly. During building I got the following error:


...

[Ada] libadalang-introspection.adb

libadalang-implementation.ads:20:18: warning: license of withed unit

"GNATCOLL.GMP.Integers" may be inconsistent

Build Libraries

[gprlib] langkit_support.lexch

[gprlib] adalang.lexch

[bind SAL] langkit_support

error: "gnatcoll-iconv.adb" and "langkit_support-adalog-abstract_relation.adb" compiled with different GNAT versions

error: "gnatcoll-traces.adb" must be compiled

error: ("/usr/lib/gnatcoll.relocatable/gnatcoll-traces.ali" is obsolete and read-only)

error: "gnatcoll-refcount.adb" must be compiled

error: ("/usr/lib/gnatcoll.relocatable/gnatcoll-refcount.ali" is obsolete and read-only)

error: "gnatcoll-storage_pools-headers.adb" has been modified and must be recompiled

error: "gnatcoll-iconv.adb" must be compiled

error: ("/usr/lib/gnatcoll_iconv.relocatable/gnatcoll-iconv.ali" is obsolete and read-only)

gprlib: invocation of /usr/bin/gnatbind failed

gprbuild: raised CONSTRAINT_ERROR : gprbuild-post_compile.adb:1113 range check failed

0x560208f089cd

0x560208f200fa

0x560208f26e72

0x560208f2fdc2

0x560208f30f5d

0x560208e8b284

0x560208e79319

[/usr/lib/libc.so.6]

0x7f5ca7bb8000

0x560208e7938c

0xfffffffffffffffe

Build failed: error while running gprbuild -p -j2 -P/home/wanbli/tmp_aur/libadalang/src/libadalang-2020-20200429-19982-src/build/lib/gnat/libadalang.gpr -XBUILD_MODE=prod -XLIBRARY_TYPE=relocatable -XGPR_BUILD=relocatable -XXMLADA_BUILD=relocatable -XLIBADALANG_WARNINGS=true -R -cargs -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -largs -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -gargs:

Command '['gprbuild', '-p', '-j2', '-P/home/wanbli/tmp_aur/libadalang/src/libadalang-2020-20200429-19982-src/build/lib/gnat/libadalang.gpr', '-XBUILD_MODE=prod', '-XLIBRARY_TYPE=relocatable', '-XGPR_BUILD=relocatable', '-XXMLADA_BUILD=relocatable', '-XLIBADALANG_WARNINGS=true', '-R', '-cargs', '-march=x86-64', '-mtune=generic', '-O2', '-pipe', '-fno-plt', '-largs', '-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now', '-gargs']' returned non-zero exit status 4

==> Error: There is error in build().

Cancelling...

Error making: libadalang


Have you ever encountered this error? I am unable to build gnat-gps without this package. Installing huge binary community package from Adacore is OK, but i prefer using AUR together with other Ada packages.

xiretza commented on 2020-05-23 19:11

Thanks to a great suggestion by a user on #ada@freenode, we now have a working libadalang 2020! Yes, it manually downloads 35 wheels from pypi as a replacement for largely non-existent makepends. If someone feels like creating python2- packages for all of those, be my guest.

xiretza commented on 2020-05-23 13:31

Unfortunately it seems like the 2020 releases of libadalang and langkit still rely entirely on python 2, which has been officially declared end-of-life at the beginning of this year after a 5 year grace period. With more and more python 2 packages being (rightfully) dropped from the repos, this becomes almost impossible to maintain. If you want to use this package, there are three options:

  • continue using the old version
  • build the new version yourself locally (using pip in a virtualenv to fetch all the needed python2 dependencies)
  • or hope that AdaCore gets their act together and releases a working version soon.

gbabin commented on 2019-06-22 23:32

Please add gnatcoll-gmp as dependency.

Also during the "Pretty-printing sources for libadalang" step, I get two "Pretty-printing failed" errors with "[Errno 2] No such file or directory" message.

charlie5 commented on 2019-04-17 05:04

Hi serh,

'python2-funcy' is available in the Archlinux archives, if you would like to manually install it.

<https://archive.archlinux.org/packages/p/python2-funcy>

pmderodat commented on 2019-04-16 14:08

Hello serh,

Thank you for reporting this. Unfortunately, Libadalang/Langkit still rely on Python2, so there is no obvious action to update the package. We plan to migrate to Python3 before Python2’s End Of Life, but that won’t be immediate.

We’ll probably temporarily patch Langkit to inline its very few dependencies on funcy, so that means you’ll have at some point build libadalang-git…

serh commented on 2019-04-10 10:48

python2-funcy has been replaced by python-funcy, could you please update the package?

charlie5 commented on 2018-09-30 09:07

@Tav @troisqua

I think the problem has now been fixed.

Clang has trouble compiling the Quex-generated lexer, so we had to make sure GPRbuild chooses GCC.

Apologies for the delay in sorting this out.

Tav commented on 2018-09-30 01:19

While building I received this message:

                   Build Libraries
           [gprlib]       langkit_support.lexch
           [bind SAL]     langkit_support
           [Ada]          b__langkit_support.adb
           [link library] liblangkit_support.so
           [gprlib]       adalang.lexch
           [bind SAL]     adalang
           [Ada]          b__adalang.adb
           [link library] libadalang.so
        /usr/bin/ld: /home/joebs/.cache
        /yay/libadalang/src/libadalang-gpl-2018-src
        /build/obj/libadalang.relocatable/quex_lexer.o: 
        relocation R_X86_64_PC32 against symbol
        `quex_LexemeNullObject' 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 libadalang
        Build failed: error while running gprbuild -p 
        -j2 -P/home/joebs        /.cache/yay/libadalang/src/
        libadalang-gpl-2018-src/build/
        lib/gnat
        /libadalang.gpr -XBUILD_MODE=dev 
        -XLIBRARY_TYPE=relocatable  
        -XXMLADA_BUILD=relocatable   -XLIBADALANG_WARNINGS=true:
         Command '['gprbuild', '-p', '-j2', 
         '-P/home/joebs/.cache/yay/libadalang/src/
          libadalang-gpl-2018-src/
          build/lib/gnat/libadalang.gpr',
          '-XBUILD_MODE=dev', 
         '-XLIBRARY_TYPE=relocatable', 
         '-XXMLADA_BUILD=relocatable',     '-XLIBADALANG_WARNINGS=true']' 
          returned non-zero exit status 4
            ==> ERROR: A failure occurred in build().
            Aborting...
           Error making: libadalang

troisqua commented on 2018-09-16 12:47

Hello, When compiling the package I get the following error

Build Libraries
   [gprlib]       langkit_support.lexch
   [bind SAL]     langkit_support
   [Ada]          b__langkit_support.adb
   [link library] liblangkit_support.so
   [gprlib]       adalang.lexch
   [bind SAL]     adalang
   [Ada]          b__adalang.adb
   [link library] libadalang.so
/usr/bin/ld: /tmp/yaourt-tmp-cyril/aur-libadalang/src/libadalang-gpl-2018-src/build/obj/libadalang.relocatable/quex_lexer.o: 
relocation R_X86_64_PC32 against symbole `quex_LexemeNullObject' can not be used when making un objet partagé; recompilé avec -fPIC
/usr/bin/ld : échec de l'édition de liens finale : bad value
collect2: error: ld a retourné le statut de sortie 1
gprlib: /usr/bin/gcc execution error
gprbuild: could not build library for project libadalang
Build failed: error while running gprbuild -p -j8 -P/tmp/yaourt-tmp-cyril/aur-libadalang/src/libadalang-gpl-2018-src/build/lib/gnat/libadalang.gpr -XBUILD_MODE=dev -XLIBRARY_TYPE=relocatable -XXMLADA_BUILD=relocatable -XLIBADALANG_WARNINGS=true:
 Command '['gprbuild', '-p', '-j8', '-P/tmp/yaourt-tmp-cyril/aur-libadalang/src/libadalang-gpl-2018-src/build/lib/gnat/libadalang.gpr', '-XBUILD_MODE=dev', '-XLIBRARY_TYPE=relocatable', '-XXMLADA_BUILD=relocatable', '-XLIBADALANG_WARNINGS=true']' returned non-zero exit status 4
==> ERREUR : Une erreur s’est produite dans build().
    Abandon…