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.
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: | Apache |
Submitter: | charlie5 |
Maintainer: | charlie5 |
Last Packager: | charlie5 |
Votes: | 5 |
Popularity: | 0.015124 |
First Submitted: | 2017-06-05 06:00 (UTC) |
Last Updated: | 2024-05-31 06:31 (UTC) |
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.
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>
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…
python2-funcy has been replaced by python-funcy, could you please update the package?
@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.
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
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…
Sure, and thank you for reporting the issue! :-)
@charlie5 @pmderodat Thank you, it works now.
@gbabin Hi again,
I've re-submitted all of the Ada related packages with (hopefully) fixes and the mods you suggested in your 'gprbuild' package comment.
Please let me know if you have the same (or any other) problem.
Pinned Comments
charlie5 commented on 2023-07-09 16:45 (UTC)
This package is available in the Arch Ada Repository.
charlie5 commented on 2020-11-16 08:53 (UTC) (edited on 2020-11-16 08:55 (UTC) by charlie5)
If build hangs, please ensure you have more than 4Gig of RAM+Swap (8+ Gig is recommended).