-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow setting the GNATCOLL_ICONV_OPT environment variable in Makefile #1292
Comments
I will fix the
Gnatcoll is included in both the GNAT Pro and GNAT Community toolchains and so far we never had problems with gnatcoll itself not being found. If you use a different gnatcoll you have to add it to the Out of curiosity, which toolchain do you use? Maybe we can find a more flexible solution that works better for both our and your specific use case. |
We started using Alire to manage our projects so we don't necessarily have some of the libraries like The reason for not using Alire to install the compiler is people on our team use different architectures: I use a Mac M1, others use older X86_64 Intel Mac's, some use Linux laptops, Windows machines, etc. and when we first started using Everyone develops in a Debian docker container so we have a We were looking at the source code for RecordFlux to see how easy it would be to add some features we wanted (we'll contribute them back if we end up implementing them!) and ran into this issue when setting up the development environment. We are able to address this, but it seems like if you append the path to the |
If you're using Debian, did you try to install
The gnatcoll bindings referenced in the Makefile are from checked out repositories. If you run
|
So we are able to get everything working no problem: My suggestion was to update the |
(This line here also brings in |
I'm surprised that gnatcoll is not in the
I'm running alire version 1.2.2 from January. Also, at least to my understanding, Can you validate that |
Hey, So what you posted in your code snippet is the expected behaviour: alire will pull in transitive dependencies and flatten them in the Alire will also modify the However, alire does not permanently modify the In regards to the issue I raised, I think I misunderstood what the The issue still stands that it assumes I think you can clean up the dependency management (and therefore setting up the environment including Hopefully this clarifies my issue and sorry for the confusion regarding some of the Makefile targets! |
I think there are a few misunderstandings here, I'll try to clear things up a bit. The Makefile aims to cover different toolchains. In particular these are GNAT Pro, GNAT Community and Alire. Both GNAT Pro and GNAT Community already provide gnatcoll which is the reason it is not included as a separately cloned dependency. While Alire provides all the dependencies needed we cannot assume it is available in all circumstances so we cannot easily reference Alire dependencies in other make targets. What you can do is running |
Ah ok - thanks! We will use the |
ref eng/recordflux/RecordFlux#1453 ref #1292
This issue is similar to this one: #1289.
You should test to see if
GNATCOLL_ICONV_OPT
is set prior to setting it. The issue is here:RecordFlux/Makefile
Line 318 in e1cf41e
Also, unrelated, but I think you need to include the path to
gnatcoll
in yourGPR_PROJECT_PATH
here: https://github.com/AdaCore/RecordFlux/blob/main/Makefile#L316. Otherwise, it won't find it. (I assume you happen to have gnatcoll installed already somewhere in yourGPR_PROJECT_PATH
.The text was updated successfully, but these errors were encountered: