From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:a6b:e510:: with SMTP id y16mr10223145ioc.259.1557582625369; Sat, 11 May 2019 06:50:25 -0700 (PDT) X-Received: by 2002:a9d:3f4b:: with SMTP id m69mr9896097otc.246.1557582625119; Sat, 11 May 2019 06:50:25 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!goblin1!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!85.12.16.68.MISMATCH!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!b2no351554itd.0!news-out.google.com!v82ni308ita.0!nntp.google.com!b2no351549itd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 11 May 2019 06:50:24 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=70.109.61.2; posting-account=QF6XPQoAAABce2NyPxxDAaKdAkN6RgAf NNTP-Posting-Host: 70.109.61.2 References: <50adfe1e-7bee-4048-8523-1b41bd0c9fe3@googlegroups.com> <52444240-c9cf-4da2-808e-65eb5ceb0af7@googlegroups.com> <8d6113a5-0af2-414c-a833-eae0d82b69b6@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2aa76d51-2a71-4ad8-bafb-3bccaa59a970@googlegroups.com> Subject: Re: ANN: VisualAda (Ada Integration for Visual Studio 2017 & 2019) release 1.2.0 From: Jere Injection-Date: Sat, 11 May 2019 13:50:25 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 7190 X-Received-Body-CRC: 2025275569 Xref: reader01.eternal-september.org comp.lang.ada:56299 Date: 2019-05-11T06:50:24-07:00 List-Id: On Saturday, May 11, 2019 at 8:32:18 AM UTC-4, alby....@gmail.com wrote: > On Saturday, May 11, 2019 at 9:42:06 PM UTC+10, Jere wrote: > > On Saturday, May 11, 2019 at 7:34:51 AM UTC-4, Jere wrote: > > > On Sunday, May 5, 2019 at 4:28:00 AM UTC-4, alby....@gmail.com wrote: > > > > Dear Ada Community > > > > > > > > VisualAda version 1.2.0 has been released > > > > > > > > New Features, fixes include the following > > > > > > > > - Added compiler switches syntax checking, symantic checking, code page and wide character set encoding > > > > - Fixed bug - some compiler options were not set in GPR file, even though they were set in the vcxproj file > > > > - Dynamically determine Target when creating new projects. Supported Targets are currently (Win32 -> i686-- and x64 -> x86_64--). ARM Targets will be forthcoming. > > > > - Check validity of determined Target when building a project, for example the Target could have be set to a specific gcc triplet, blank or 'Unknown'. Resulting in either a info, warning or error message respectively. > > > > - Dynamically determine root directories for each target when creating new projects (only applicable to projects that rely on the Microsoft Linker, such as Winrt/UWP based applications) > > > > - Fixed bug - Msbuild failures caused by inadvertent references to VS 2015 dll's > > > > > > > > Please feel free to download the free plugin from the following URL > > > > > > > > https://marketplace.visualstudio.com/items?itemName=AlexGamper.VisualAda > > > > > > > > Note: > > > > > > > > if you have issues with installation, please respond to this post, and I will > > > > endeavour to resolve as soon as possible. In the long term I intend to setup > > > > a specific GitHub project, where issues/improvements can be made for me to action. > > > > > > > > Thanks > > > > > > > > Alex > > > > > > As I get time, I'll mess with this and try it out. Kids give me limited time. > > > I did clone the winrt_runtime and start messing with it today. I noticed a > > > warning: > > > > > > [C] cio.c > > > \winrt_runtime\cpp\cio.c:45:16: warning: '__acrt_iob_func' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] > > > FILE* __cdecl __acrt_iob_func(unsigned); > > > > > > Just a warning, but should I start an issue for it on your github repo > > > in case it is important? This is with msys2, GNAT/GCC 8.2.0 > > > > Not sure if related, but when I run the gprinstall command, it fails with: > > > > $ gprinstall -f -p -P Winrt_Runtime.gpr > > Install project Winrt_Runtime > > gprinstall: error: file does not exist '\winrt_runtime\./lib/libother.a' > > > > which definitely is not there, so maybe the gprbuild script missed > > something? I did configure the gpr file as instructed. I'll look around > > some of your other posts to see if someone else ran into the same thing > > but you might consider updating your readme, if there is another dependency > > for the runtime (maybe it is just a build error of some sort...I didn't > > receive any errors though, just the warning I mentioned before). > > Hi Jere > > Can you do a git pull to get the latest version ? Your gpr file for winrt_runtime > should look like the following fragmaent for the Install section > > package Install is > for Prefix use Install_Prefix; > for Required_Artifacts ("") use ("runtime.xml", "ada_source_path", "ada_object_path"); > for Required_Artifacts ("adalib") use ("./lib/libother.a", "./libgnarl/libgnarl.a"); > for Sources_Subdir use "adainclude"; > for Lib_Subdir use "adalib"; > for Install_Project use "false"; > end Install; > > Alex I had already one the pull today (prior to posting the issue). Here is the gpr file: project Winrt_Runtime is Base_Source_Dir := Project'Project_Dir; Base_Installation_Dir := "lib\gcc\x86_64-pc-mingw32\8.2.0/"; Default_Prefix := Base_Installation_Dir & "rts-Winrt_Runtime"; Install_Prefix := external ("PREFIX", Default_Prefix); for Languages use ("Ada", "C", "Asm"); for Library_Auto_Init use "False"; for Library_Name use "gnat"; for Library_Kind use "static"; for Library_Dir use "adalib"; for Object_Dir use "build"; for Source_Dirs use ("adainclude", "cpp"); for Target use "x86_64-w64-mingw32 "; type Build_Type is ("Production", "Debug"); Build : Build_Type := external ("BUILD", "Debug"); package Builder is for Switches ("Ada") use ("--RTS=" & Project'Project_dir); end Builder; package Compiler is CFLAGS := (""); case Build is when "Production" => CFLAGS := CFLAGS & ("-O2"); when "Debug" => CFLAGS := CFLAGS & ("-O0"); end case; ALL_CFLAGS := ("-fexceptions") & CFLAGS; for Switches ("C") use ALL_CFLAGS; ALL_ADAFLAGS := ("-g", "-gnatpg", "-nostdinc") & CFLAGS; for Switches ("Ada") use ALL_ADAFLAGS; end Compiler; package Binder is end Binder; package Linker is end Linker; package Install is for Prefix use Install_Prefix; for Required_Artifacts ("") use ("runtime.xml", "ada_source_path", "ada_object_path"); for Required_Artifacts ("adalib") use ("./lib/libother.a", "./libgnarl/libgnarl.a"); for Sources_Subdir use "adainclude"; for Lib_Subdir use "adalib"; for Install_Project use "false"; end Install; end Winrt_Runtime;