Open jomoengineer opened 3 years ago
[Ada] templatespp.ali btemplatespp.adb:71:09: (Ada 2005) non-graphic character not permitted in string literal gprbind: compilation of binder generated file failed btemplates2ada.adb:71:09: (Ada 2005) non-graphic character not permitted in string literal gprbind: compilation of binder generated file failed binding of templatespp.adb failed binding of templates2ada.adb failed gprbuild: post compilation phase failed Makefile:114: recipe for target 'build' failed make: [build] Error 4
You also need to use a more recent compiler. This issue has been fixed last year if I remember correctly.
Sorry, I am not clear as to what is required. I am using the latest posted version GNAT Studio Community, 2020 20200429 listed on the AdaCore web site. Is there something else that is required to be installed?
The same happens with openSUSE Leap 15.2 with GNAT Studio Community 2020 (20200427).
If you only need the templates-parser library to compile startup-gen, then there is a workaround, because this problem only occurs when compiling tools/tools.gpr. Comment the two lines in the build:
option of the Makefile:
# $(GPRBUILD) -p $(GPROPTS) $(GPR_DEFAULT) \
# --subdirs=$(SDIR)/$(DEFAULT_LIBRARY_TYPE) -Ptools/tools
And do:
make
make prefix=tparser install
Your libraries will be inside tparser
folder in the current directory.
startup-gen
is available in Alire: https://alire.ada.dev/crates/startup_gen
If that's easier for you.
I've cloned the startup-gen repo as well as downloaded the Release version 21.0.0 of templates-parser and each result in the following error when running make:
System info: OS: Ubuntu 18.04.5 x86_64 GNat Studio version: GNAT Studio Community 2020 (20200427) hosted on x86_64-pc-linux-gnu
GNAT Community 2020 (20200429-93) targetting arm-eabi SPARK Community 2020 (20200429) Active toolchain: arm-eabi
=== Make ERROR ==== ~/templates-parser$ make Setup [mkdir] object directory for project Templates_Parser [mkdir] library directory for project Templates_Parser Compile [Ada] templates_parser-xml.adb [Ada] templates_parser-utils.adb [Ada] templates_parser-debug.adb [Ada] templates_parser.adb [Ada] templates_parser-query.adb [Ada] templates_parser-inputstandalone.adb [Ada] templates_parser_taskingstandard_tasking.adb [Ada] templates_parser-configuration__standalone.ads Build Libraries [gprlib] templates_parser.lexch [archive] libtemplates_parser.a [index] libtemplates_parser.a Setup [mkdir] object directory for project Templates_Parser [mkdir] library directory for project Templates_Parser Compile [Ada] templates_parser-xml.adb [Ada] templates_parser-utils.adb [Ada] templates_parser-debug.adb [Ada] templates_parser.adb [Ada] templates_parser-query.adb [Ada] templates_parser-inputstandalone.adb [Ada] templates_parser_taskingstandard_tasking.adb [Ada] templates_parser-configurationstandalone.ads Build Libraries [gprlib] templates_parser.lexch [link library] libtemplates_parser.so Setup [mkdir] object directory for project Tools [mkdir] exec directory for project Tools Compile [Ada] templates2ada.adb [Ada] templatespp.adb Bind [gprbind] templates2ada.bexch [Ada] templates2ada.ali [gprbind] templatespp.bexch [Ada] templatespp.ali btemplatespp.adb:71:09: (Ada 2005) non-graphic character not permitted in string literal gprbind: compilation of binder generated file failed b__templates2ada.adb:71:09: (Ada 2005) non-graphic character not permitted in string literal gprbind: compilation of binder generated file failed binding of templatespp.adb failed binding of templates2ada.adb failed gprbuild: post compilation phase failed Makefile:114: recipe for target 'build' failed make: [build] Error 4