From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Building an encapsulated library that uses GNAT sockets under Windows
Date: Sat, 23 Apr 2016 11:48:57 +0200
Date: 2016-04-23T11:48:57+02:00 [thread overview]
Message-ID: <nffgek$5sf$1@gioia.aioe.org> (raw)
In-Reply-To: 68353b5d-94dc-4604-bdb1-00b48396ec1b@googlegroups.com
On 2016-04-23 11:20, Ahlan wrote:
> The problem is not in Gprbuild.exe but in libexe/gprbuild/gprlib.exe
> Have you tried building Gprlib from the git sources? - that might be a more elegant solution.
Yes I did. When you build gprbuild, it also builds all other utilities
including gprlib.exe.
You can try it yourself. It is here:
https://github.com/AdaCore/gprbuild
There are two problems to fix to be able to do so:
1. OS_Lib does not contain Kill and Kill_Process_Tree gprclear requires.
You can comment them out. Kill is relatively easy, you must add win32ada
to the project and do:
procedure Kill (Pid : Process_Id; Hard_Kill : Boolean) is
use Win32.Winbase;
use Win32.Winnt;
Process : HANDLE;
Result : Win32.BOOL;
begin
Process := OpenProcess
( PROCESS_ALL_ACCESS,
1,
Win32.DWORD (Pid_To_Integer (Pid))
);
Result := TerminateProcess (Process, 1);
end Kill;
Kill_Process_Tree is more complicated, but could be just Kill (:-))
2. There is a dynamic_constraint somewhere put on a type, that promptly
crashes the compiler. I removed it.
However I was not aware of the directory ...\libexec\gprbuild. I
replaced only the executables in ...\bin. Thank you for the hint. Maybe
that would do the trick. I will try it next week and report back.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2016-04-23 9:48 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-21 12:59 Building an encapsulated library that uses GNAT sockets under Windows Dmitry A. Kazakov
2016-04-22 7:58 ` ahlan.marriott
2016-04-22 8:23 ` Dmitry A. Kazakov
2016-04-23 9:20 ` Ahlan
2016-04-23 9:48 ` Dmitry A. Kazakov [this message]
2016-04-23 14:45 ` ahlan.marriott
2016-04-23 19:56 ` Dmitry A. Kazakov
2016-04-23 21:16 ` Simon Wright
2016-04-24 8:13 ` ahlan
2016-04-24 8:31 ` Simon Wright
2016-04-26 19:43 ` ahlan.marriott
2016-04-26 20:24 ` Simon Wright
2016-04-26 22:32 ` Jeffrey R. Carter
2016-04-27 22:16 ` Randy Brukardt
2016-04-27 23:43 ` Jeffrey R. Carter
2016-04-28 5:18 ` J-P. Rosen
2016-04-28 5:59 ` Jeffrey R. Carter
2016-05-09 22:32 ` David Thompson
2016-04-28 20:23 ` Randy Brukardt
2016-04-28 21:47 ` Jeffrey R. Carter
2016-04-28 5:13 ` J-P. Rosen
2016-04-26 20:20 ` Dmitry A. Kazakov
2016-04-26 21:23 ` Simon Wright
2016-04-27 6:53 ` Simon Wright
2016-04-27 7:25 ` ahlan
2016-04-27 8:27 ` Dmitry A. Kazakov
2016-04-27 9:59 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox