-
Notifications
You must be signed in to change notification settings - Fork 21
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
C++ code fails under GNAT 2018 #44
Comments
I think the following should give what you want: |
I tried gprconfig --config=language:c,name:llvm --batch However, |
Instructions implied up-to-date gprbuild. If it's older, use the following switch instead (note: should be upper case actually) Looks like we are missing a line to do the same for C++. Add in compilers.xml in LLVM block the following: We will add it too. |
I tried adding C++ in few different positions of the LLVM block of compilers.xml including C,C++ as specified by section 4.1. Configuring with GPRconfig of the manual but whenever I try to compile a C++ file I get
|
I finally got it to work without adding Thanks for your help |
To use LLVM for C++ you need the latest knowledge base, in particular this patch: eb94de5 - without it it won't work properly (though I can't reproduce the crash).
I don't think that's a good idea. You need to have a consistent KB. |
I agree that changing the config file is not a good idea but its the only solution that I've got at the moment. |
It's this repository ;) (share/gprconfig subdir) |
I downloaded |
You still need to apply the aforementioned patch ( |
I've just manually checked the |
TN: QB10-015 GitHub issue #44 Change-Id: I651393950c2f0031a2e948af0a1c9c225c523af3
It's what I was referring to here:
We just pushed this change so you can just resync. |
Great! I downloaded, built and installed your latest |
I am trying build a simple program using GNAT 2018 GPS that involves ImageMagick read functions.
The program builds and runs using Xcode but fails under GNAT 2018.
The problem seems to be associated with the ImageMagick read functions, most likely string functions involved with the use of the file name.
At one stage I ascertained that a segmentation fault seemed to be caused by a string swap function being called with a null string address.
As I experience no problems with Xcode, I have tried to generate a config file to make GNAT GPS use the llvm (clang and clang++) compilers instead of the gcc compilers but have been unsuccessful in doing so.
I will very much appreciate any assistance in generating a suitable config file or other advice.
The text was updated successfully, but these errors were encountered: