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

build on ubuntu gnat 2021 fail #351

Open
mhanuel26 opened this issue Oct 1, 2022 · 1 comment
Open

build on ubuntu gnat 2021 fail #351

mhanuel26 opened this issue Oct 1, 2022 · 1 comment

Comments

@mhanuel26
Copy link

Hi,

I am having issues to build,

I have installed gnat 2021 on ubuntu 22.04, setup my environment variables to point to $HOME/opt/GNAT/2021/bin and cloned this repo as

git clone --recursive https://github.com/AdaCore/aws

This is build error

ubuntu@testpc:~/devel/Ada/aws$ make DEBUG=true setup build
gprbuild: "xoscons" up to date
Setup OS specific definitions
Can not generate system tags. The test are disabled
Compile
   [Ada]          aws-server.adb
   [Ada]          aws-utils-streams.adb
   [Ada]          aws-net-ssl-certificate.adb
   [Ada]          aws-dispatchers.adb
   [Ada]          aws-containers-string_vectors.ads
   [Ada]          aws-net-websocket-protocol-draft76.adb
   [Ada]          aws-url.adb
   [Ada]          aws-net-buffered.adb
   [Ada]          aws-resources-streams-disk.adb
   [Ada]          aws-resources-streams.adb
   [Ada]          aws-dispatchers-callback.adb
   [Ada]          aws-containers.ads
   [Ada]          aws-config-utils.adb
   [Ada]          aws-messages.adb
   [Ada]          aws-net.adb
   [Ada]          aws-status.adb
   [Ada]          aws-net-memory.adb
   [Ada]          aws-server-status.adb
   [Ada]          aws-containers-key_value.ads
   [Ada]          aws-url-raise_url_error.adb
   [Ada]          aws-parameters-set.adb
   [Ada]          aws-headers-values.adb
   [Ada]          aws-response.adb
   [Ada]          aws-net-acceptors.adb
   [Ada]          templates_parser-input__aws.adb
   [Ada]          templates_parser_tasking__standard_tasking.adb
   [Ada]          aws-net-std__gnat.adb
aws-server.adb:973:23: error: non-local pointer cannot point to local object
aws-net-std__gnat.adb:707:53: warning: "Status" modified by call, but value might not be referenced [-gnatwm]

   compilation of aws-net-std__gnat.adb failed
   compilation of aws-server.adb failed

gprbuild: *** compilation phase failed
make: *** [Makefile:188: build-lib-native] Error 4

What am I missing?

@hothing
Copy link

hothing commented Nov 27, 2022

I have same issue on ALT Linux 10 with GNAT Community Edition 2021:

ada/aws-x$ gnat --version
GNAT Community 2021 (20210519-103)
Copyright (C) 1996-2021, 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.

ada/aws-x$ uname -a
Linux antiyoga 5.10.135-std-def-alt1 #1 SMP Mon Aug 8 14:55:36 UTC 2022 x86_64 GNU/Linux

ada/aws-x$ git status
HEAD detached at v23.0.0
nothing to commit, working tree clean

The build command gets:

ada/aws-x$ make build
Compile
   [Ada]          aws-server.adb
   [Ada]          aws-net-std__gnat.adb
aws-net-std__gnat.adb:707:53: warning: "Status" modified by call, but value might not be referenced [-gnatwm]
aws-server.adb:973:23: error: non-local pointer cannot point to local object

   compilation of aws-net-std__gnat.adb failed
   compilation of aws-server.adb failed

gprbuild: *** compilation phase failed

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

No branches or pull requests

2 participants