in reply to Perl compilation on Windows with INST_ARCH set fails

Any idea how to have it working with INST_ARCH set?

I'm seeing the same as you. It's buggy.
I suspect that the escaping of $(ARCHNAME) is incorrect, and that the backslash needs to be removed:
INST_ARCH := $(ARCHNAME)
At least it will then build current blead (perl-5.31.7). But it seems to produce the same structure as a perl built without INST_ARCH.
So I then additionally tried supplying it with the archname that needs to be used for the particular build I was doing - ie ARCHNAME=MSWin32-x64-multi-thread But that just resulted in an installation whose top level directory structure was quite bizarre:
bin binMSWin32-x64-multi-thread html lib libMSWin32-x64-multi-thread site
and an empty @INC (as you noted).
So ... there's a bit to unravel, and the suggestion of building with dmake and makefile.mk looks the best short term option.

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: Perl compilation on Windows with INST_ARCH set fails
by jcb (Parson) on Jan 25, 2020 at 01:00 UTC

    Backslash does not escape variable expansion in GNU make; doubling the sigil does that ("$${XYZ}" reduces to "${XYZ}"). That backslash is a directory separator.

      Backslash does not escape variable expansion in GNU make

      Heh ... at last I understand the reason that they're called "makefiles".
      (They're the "files" that "make" me look stupid ;-)

      Cheers,
      Rob