Skip to content
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

v1.1.0-rc1 build failure with FSF GNAT 7.5.0 #790

Closed
1ma opened this issue Aug 18, 2021 · 1 comment · Fixed by #793
Closed

v1.1.0-rc1 build failure with FSF GNAT 7.5.0 #790

1ma opened this issue Aug 18, 2021 · 1 comment · Fixed by #793

Comments

@1ma
Copy link

1ma commented Aug 18, 2021

$ gprbuild -P alr_env.gpr
   ...
   [Ada]          alire-config.adb
   [Ada]          alire-utils-tables.adb
   [Ada]          alire-solver.adb
alire-solver.adb:274:45: prefix of "Image" attribute must be a type
alire-solver.adb:288:45: prefix of "Image" attribute must be a type

   compilation of alire-solver.adb failed

gprbuild: *** compilation phase failed

$ gnat --version
GNAT 7.5.0
Copyright (C) 1996-2017, Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

The readme states that Alire needs an Ada 2012 compiler, and clarifies that in practice this means FSF GCC 7.2 onwards. Ubuntu 18.04 ships with FSF GCC 7.5.0 and its toolchain fails to build v1.1.0-rc1. It successfully builds Alire v1.0.1 though.

I've also tested FSF GCC 9.3.0 (Ubuntu 20.04) and GCC 10.3.0 (Ubuntu 21.04) and these build v1.1.0-rc1 fine. I guess it's either a case of tweaking these two Trace.Debug statements from alire-solver.adb or the readme.

@mosteo
Copy link
Member

mosteo commented Aug 19, 2021

Thanks for the report, Marcel. Although the fix is simple in this case, the intention is to support the latest stable OS releases (Debian, Ubuntu, etc) onwards, so I'll tweak the readme too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants