On 2017-10-30 11:33-0700 Alan W. Irwin wrote:

Hi Arjen (returning this discussion to the plplot-devel list):

Thanks for sending me (off list) the output from the

gnatmake -v hello.adb -cargs -fPIC -bargs -shared -largs -v -shared

gnatmake -v hello.adb -bargs -static -largs -v -static

commands on Cygwin.  Based on that information I have come up with the
attached local commit (prepared with "git format-patch") to workaround
(just for the test_ada project for now) the Cygwin Ada packaging issue
revealed by the first of the above commands.

Could you let me know if that commit works for you,
i.e., once it is locally applied with "git am" does

cmake/test_ada/scripts/comprehensive_test.sh

finally work for you on Cygwin?  Also, win or lose, I would like to
see the report tarball from this test.

Hi Arjen:

As you are probably aware, thanks to the efforts of Marco to bring
this Ada packaging issue to the Cygwin mailing list and Jon
to implement the packaging fix, my workaround patch
is no longer relevant.  See
<https://cygwin.com/ml/cygwin-announce/2017-11/msg00007.html> where
the latest version of the gcc collection of compilers now properly
includes the gnat import library.  I followed up with a gnat-6.dll
search on <http://cygwin.com/cgi-bin2/package-grep.cgi> and the
gcc-ada-6.4.0-2 package includes

2017-10-31 04:09     9473456 
/usr/lib/gcc/x86_64-pc-cygwin/6.4.0/adalib/libgnat-6.dll.a
2017-10-31 04:09    16423982 
/usr/lib/gcc/x86_64-pc-cygwin/6.4.0/adalib/libgnat.a

and the libgnat6-6.4.0-2 package includes

2017-10-31 04:11     2984467 /usr/bin/cyggnat-6.dll

Note how the import library form is much larger than the dll form and
therefore completely distinct from it (as expected).

So the next chance you have to work on PLplot, please upgrade your
Cygwin installation to this latest (6.4.0-2) gcc collection of
compilers, and confirm the following tests now work (note the change
from the above for the shared one which is a simpler and better form
of the test):

# Create the simple Ada test code (if you have not done so before)
cat > hello.adb
with Ada.Text_IO; use Ada.Text_IO;
procedure Hello is
begin
   Put_Line ("Hello WORLD!");
end Hello;

# shared case
# remove results of all previous build attempts (if any)
rm -f hello hello.ali hello.o
gnatmake -v hello.adb -bargs -shared -largs -v
# test shared case
./hello

# static case
# remove results of all previous build attempts (if any)
rm -f hello hello.ali hello.o
gnatmake -v hello.adb -bargs -static -largs -v
# test static case
./hello

I find these tests work here (Debian Jessie with gcc 4.9.2) without
issues, and I urge anyone here who wants to test their Ada and gnat
installation to try these simple tests first.

Assuming the above simple gnatmake tests work on Cygwin for the
6.4.0-2 case, please follow up by running
cmake/test_ada/scripts/comprehensive_test.sh for our current master
branch without my patch (i.e., nothing locally changed in
cmake/test_ada).

I am pretty sure the net result when linking the test_ada library will
be the import form of the gnat library will be found and linked in the
shared case and the static form of the gnat library will be found and
linked in the static case, and the test will "just work".  However, if
your report tarball shows any remaining issues for the test_ada
comprehensive test, I will fix them.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to