Hi!
I have a largish system running today on intel Linux and Windows.
It has a history of running on Vax_VMS and AIX as well, but well,
there is not much interest in those platforms anymore.
So I want to run it on a Raspberry pi.
It is database heavy, and we support Oracle and sql-server.
Until recently, neither Oracle nor Microsoft released
any drivers for ARM. But now Microsoft has released
ODBC drivers for Linux on ARM Linux.
So, port it should be easy. However
Needing AWS turned difficult.
Ubuntu 22.04 has no matching packages.
You can’t use AWS with the compiler they are shipping.
OK, so I compiled it, but depends on xml/ada.
Fine, cloned that and build/installed OK.
AWS depends on gnatcoll as well, and that I
have not yet managed to install.
So - tried the alire thing.
did not work. Started well, I made a very simple webserver
and said alire run. Broke when it wanted some x64 code. (not aarm64)
Simon Wright spotted something for Mac on Arm
alr build -- -XTARGET=$(gcc -dumpmachine)
and that went well. I now got a simple web server working on the pi.
Alire did all the heavy lifting. Nice.
However, is there a way for me to use what alire built - outside of the Alire world?
the code/build system is not adapted to alire and I am not sure it ever will be.
Still, the libraries and the specs and the gpr-files are there.
A first attempt to include AWS and Xml/ada gpr file directories into ADA_PROJECT_PATH
failed, and I’m not sure to use release or build parts.
AWS seems OK in release, but I’m not so sure with Xml/ada.
But - it does not work with AWS out-of-the-box either.
I’m getting errors like
zlib.gpr:19:06: imported project file "../../.build/projects/aws_config" not found
zlib.gpr:19:06: imported by "/home/sattmate/.cache/alire/releases/aws_23.0.0_6c406859/include/zlib/zlib.gpr"
zlib.gpr:19:06: imported by "/home/sattmate/.cache/alire/releases/aws_23.0.0_6c406859/aws.gpr"
zlib.gpr:19:06: imported by "/usr2/wcs/test/config/gpr/global.gpr"
zlib.gpr:19:06: imported by "/usr2/wcs/test/config/gpr/utility.gpr"
zlib.gpr:41:10: warning: no when others for this case construction
zlib.gpr:41:15: unknown package or project "Aws_Config"
zlib.gpr:41:15: variable "zlib_exists" is not a single string
gprbuild: "utility" processing failed
where utility and global are my gprs, global ‘withs’ aws.
So, the question is - is it just a bad idea or do I miss something obvious?
The ADA_PROJECT_PATH looks like
bnl@pi4:/usr2/wcs/test/source/kernel/global$ echo $ADA_PROJECT_PATH
/home/bnl/.cache/alire/releases/aws_23.0.0_6c406859/.build/projects:
/home/bnl/.cache/alire/releases/aws_23.0.0_6c406859/src:
/home/bnl/.cache/alire/releases/aws_23.0.0_6c406859/win32:
/home/bnl/.cache/alire/releases/aws_23.0.0_6c406859/include/zlib:
/home/bnl/.cache/alire/releases/aws_23.0.0_6c406859/tools:
/home/bnl/.cache/alire/releases/aws_23.0.0_6c406859/.:
/home/bnl/.cache/alire/releases/aws_23.0.0_6c406859/config:
/home/bnl/.cache/alire/releases/aws_23.0.0_6c406859/gps:
/home/bnl/.cache/alire/releases/aws_23.0.0_6c406859/templates_parser/tools:
/home/bnl/.cache/alire/releases/aws_23.0.0_6c406859/workspace:
/home/bnl/.cache/alire/releases/aws_23.0.0_6c406859/ssl:
/home/bnl/.cache/alire/builds/xmlada_23.0.0_70494123_13e2c9565dacb905afb4058b9ce2e43e42e188f1cce6c3b3ea721ce397330120/input_sources:
/home/bnl/.cache/alire/builds/xmlada_23.0.0_70494123_13e2c9565dacb905afb4058b9ce2e43e42e188f1cce6c3b3ea721ce397330120/schema:
/home/bnl/.cache/alire/builds/xmlada_23.0.0_70494123_13e2c9565dacb905afb4058b9ce2e43e42e188f1cce6c3b3ea721ce397330120/unicode:
/home/bnl/.cache/alire/builds/xmlada_23.0.0_70494123_13e2c9565dacb905afb4058b9ce2e43e42e188f1cce6c3b3ea721ce397330120/unicode/importer:
/home/bnl/.cache/alire/builds/xmlada_23.0.0_70494123_13e2c9565dacb905afb4058b9ce2e43e42e188f1cce6c3b3ea721ce397330120/sax:
/home/bnl/.cache/alire/builds/xmlada_23.0.0_70494123_13e2c9565dacb905afb4058b9ce2e43e42e188f1cce6c3b3ea721ce397330120/dom:
/home/bnl/.cache/alire/builds/xmlada_23.0.0_70494123_13e2c9565dacb905afb4058b9ce2e43e42e188f1cce6c3b3ea721ce397330120/docs/cross/dom:
/home/bnl/.cache/alire/builds/xmlada_23.0.0_70494123_13e2c9565dacb905afb4058b9ce2e43e42e188f1cce6c3b3ea721ce397330120/.:
/home/bnl/.cache/alire/builds/xmlada_23.0.0_70494123_13e2c9565dacb905afb4058b9ce2e43e42e188f1cce6c3b3ea721ce397330120/distrib:
/home/bnl/.cache/alire/builds/gnatcoll_23.0.0_29478a20_453f144aacfff5ce0aa306e1d4e7fc20016efff2eb51388716e274cc0b19328c/.:
/usr2/wcs/test/config/gpr:
/usr2/wcs/test/config/gpr/unix
/Björn