Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Perl compilation on Windows with INST_ARCH set fails

by jcb (Priest)
on Jan 25, 2020 at 00:57 UTC ( #11111852=note: print w/replies, xml ) Need Help??


in reply to Perl compilation on Windows with INST_ARCH set fails

There is an error in that Makefile. That is a "simply expanded" assignment instead of a "recursively expanded" assignment. Try changing that line to:

INST_ARCH = \$(ARCHNAME)

It seems that ARCHNAME is not set at the time that line is read; changing it to a recursively expanded assignment should avoid the problem by expanding $(ARCHNAME) when INST_ARCH is substituted instead of when it is defined.

Your problem could also be that ARCHNAME is somehow getting set to the empty string, which is also wrong. You may want to submit a bug report when you find the solution to this; it seems to me that building on Windows is subtly broken at the moment.

Replies are listed 'Best First'.
Re^2: Perl compilation on Windows with INST_ARCH set fails
by syphilis (Bishop) on Jan 25, 2020 at 03:13 UTC
    INST_ARCH    = \$(ARCHNAME)

    That change alone seems to fix the problem for me.
    Alternatively, I can leave the GNUmakefile in it's original state and pass INST_ARCH=\MSWin32-x64-multi-thread as one of the arguments passed to 'make'.
    Both result in a perl whose @INC is:
    INST_TOP/site/lib/MSWin32-x64-multi-thread INST_TOP/site/lib INST_TOP/lib/MSWin32-x64-multi-thread INST_TOP/lib
    Also existent is:
    INST_TOP/bin INST_TOP/bin/MSWin32-x64-multi-thread
    I'm not entirely sure what an archnamed build should look like - but the build I've got feels right and looks sane.
    I haven't tried specifying an INST_ARCH value that doesn't match $Config{archname}. (Not sure what to expect with that.)

    I think I might even start building my perls this way.

    Normally, for every version of perl that I build, I have 4 different configurations (ie 4 different archnames).
    Building them with INST_ARCH into the same INST_TOP would make good sense and reduce duplication.

    Thanks for chiming in jcb.
    It's a pity you didn't get in there a bit earlier. (Would have saved me some time, effort and embarrassment ;-)

    Cheers,
    Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11111852]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2020-05-25 02:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (143 votes). Check out past polls.

    Notices?