﻿The versions of GP/PARI after  2.3.5 are not supported!
The versions of GP/PARI before 2.9.0 do not support 64-bit compilation with MS’ CRT library!  (longsize=4)
Strawberry Perl uses MS’ CRT library!

This is a deadlock.

==============================================================

There may be a way out — but it needs to be explored by somebody.  (Not me!)

Below are (conjectural) steps.  (Remember that GP/PARI and Math::Pari use completely different recipes for build!  The latter
should follow the former — but currently there is no attempt to do anything special on Win64 during Math::Pari build!)

• The current version 2.030510 of Math::Pari can be BUILT with GP/PARI v2.9.0 on 32-bit windows (use the option pari_tgz=ARCHIVE
  for Makefile.PL).
     (A lot of tests fail (or crash), but this is at least SOMETHING.)
• When building GP/PARI on windows-64bit, a script ..../config/convertllp64 is run, putting the edited files into PARIDIR/src64.
• Math::Pari expects that PARIDIR/src should be used, so files in PARIDIR/src64 should be copied back.
• It may happen that GP/PARI also does some extra steps in its build process.  One should expect surprises.
    (If so, one may want to compare the outputs from 32-bit build process of GP/PARI and from a 64-bit build.  I do not know
     how to build GP/PARI on Windows.)

(One should be careful about the order: the first step should auto-patch in Math::Pari way, the second should patch in GP/PARI
way.)

  perl Makefile.PL pari_tgz=../pari-2.9.0.tar.gz  2>&1 | tee -a 00c00	# Should apply “our” patches
    <<< Do (the analogue of) config/convertllp64 inside the subdirectory pari-2.9.0 >>>
    <<< copy src to src-old, and copy-with-overwrite src64 back to src >>>
		cd pari-2.9.0 && sh config/convertllp64 && cp -r src src-orig && cp -fr src64/* src/ && cd ..
    <<< Make sure that .\src\language\parse.y is older than the rest .\src\language\parse.*. >>>
  dmake realclean			# Prepare for rebuilding the configuration files from the llp64-patched version
  perl Makefile.PL 2>&1 | tee -a 00c01	# Should use the converted pari-2.9.0 directory
	<<< Is -DLONG_IS_64BIT in ./Makefile and libPARI/Makefile? >>>
  dmake -k test 2>&1 | tee -a 00t01	# Finger-crossed: expect 2 crashes and Failed 18/200 test programs. 120/870 subtests failed.

I need to know about your successes and failures.  (Thanks to yary who gave a very helpful feedback.)
