AdaCore / gprbuild

GPRbuild is an advanced build system designed to help automate the construction of multi-language systems.
Other
65 stars 21 forks source link

Compile using FSF GCC 7 #39

Closed okellogg closed 6 years ago

okellogg commented 6 years ago

On attempting to compile gprbuild/master@c758a7f using FSF GCC 7.3.1, I got this error:

$ make all
gprbuild -p -m   -j0 -XBUILD=production  gprbuild.gpr -XLIBRARY_TYPE=static -XXMLADA_BUILD=static
Compile
   [Ada]          gprconfig-main.adb
   [Ada]          gprbuild-main.adb
   [Ada]          gprclean-main.adb
   [Ada]          gprinstall-main.adb
   [Ada]          gprslave.adb
   [Ada]          gprname-main.adb
   [Ada]          gprls-main.adb
   [Ada]          gprbind.adb
gpr-names.adb:389:39: prefix of "IMAGE" attribute must be a type
gpr-names.adb:474:39: prefix of "IMAGE" attribute must be a type

   compilation of gprbind.adb failed

gprbuild: *** compilation phase failed

The attached patch fixes this problem:

gprbuild-master-c758a7f-compile-using-fsf-gcc-7.diff.txt

okellogg commented 6 years ago

In commit 682e84a, Robin Morier wrote:

R521-003 Use Value'Img instead of Value'Image.

Thanks.

pmderodat commented 6 years ago

Hello @okellogg,

Thank you for reporting this build issue! I hope you can now compile successfully gprbuild.

okellogg commented 6 years ago

@pmderodat wrote:

I hope you can now compile successfully gprbuild.

All fine now.

pmderodat commented 6 years ago

Very good, thank you for confirming!