Closed rogermc2 closed 7 years ago
I recently moved to GPS GPL 2016 which seems to be the problem. It worked OK for a few days then, today, this problem suddenly occurred. I reset the toolchain to /opt/gcc-6.1.0/bin and this fixed the problem. So there seems to be a problem with the GPS GPL 2016 gnat system?
2016 is not the recent release anyway, try with 2017.
Actually it is 2017, from Help -> about: GPS 2017 (20170515) hosted on x86_64-apple-darwin14.5.0 GNAT GPL 2017 (20170515-63) The Application name in the Mac menu line is GPS GPL 2016! Should be GPS GPL 2017?
Incompatibility with GNAT GPL 2017 is unfortunate, but we already have the incompatibility with GNAT GPL 2016 on OSX, so I guess it just continues a tradition.
For a more helpful comment: This error seems to stem from this line, maybe you can backtrack from there what's going wrong.
This part of the gprlib seems to read a library exchange file. It may well be that the format of those simply changed, and the error occurs when gprbuild tries to read an exchange file that was generated by a previous version. try to clean everything and compile anew.
I deleted the current /usr/local/gnat plus a few other associated things. Downloaded a fresh copy, installed and so far its working. The unarchived download is gnat-gpl-2017-x86_64-darwin-bin This is the same as the previous one that eventually failed; so its wait and see for a few days.
Clean and reinstall seems to have fixed the problem.
Problem has reappeared and remains after deleting GNAT and reinstalling.
Suddenly my builds are failing when attempting to build OpenGLAda libraries. I tried on a couple of my branches with the same result.
gprbuild -d -eL -P/Ada_Source/OpenGLAda/opengl.gpr -XLIBRARY_TYPE=static -XAuto_Exceptions=enabled -XMode=release -XWindowing_System=quartz -s -XWindowing_System=quartz --create-missing-dirs --config=/Ada_Source/config.cgpr Build Libraries [gprlib] OpenGLAda.lexch gprlib: unknown section: [PROJECT DIRECTORY] gprbuild: could not build library for project opengl