New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MS Win] 5.23.8 sets $Config{archname} incorrectly #15192
Comments
From @sisyphusHi, C:\>perl -V:archname But it should be 'MSWin32-x64-multi-thread-ld'. gcc version 4.9.2 (x86_64-posix-sjlj, built by strawberryperl.com project) Here's the full perl -V output: ########################################## Platform: Characteristics of this binary (from libperl): Cheers, |
From @bulk88On Sat Feb 20 23:02:31 2016, sisyphus wrote:
What does "gcc -dumpmachine" say? Are you using "gcc" or some cross compiling GCC with alot of postfixes/prefixes on its binary name? Ive seen these things like this happen when there are 32 bit tools building a 64 bit perl before (32 bit make building 64 bit perl and the same 32 bit make tool launches 32 bit cmd.exe's). GNUMakefile has this autodetection code, it might be faulty ifeq ($(CCTYPE),GCC) -- |
The RT System itself - Status changed from 'new' to 'open' |
From @sisyphus-----Original Message-----
x86_64-w64-mingw32
Plain "gcc.exe" - not one of the cross-compilers
Aah ... switching to a 64-bit make utility fixes the problem. (I don't think I don't really see why the bit-ed-ness of the make utility should be having Thanks Daniel. Unless I've overlooked something important then this bug report should be Cheers, |
From @bulk88On Sun Feb 21 00:59:33 2016, sisyphus wrote:
There is a bug here. Bitness of make tool shouldnt affect anything. -- |
From @sisyphus-----Original Message-----
Ok - looking a bit further, this is something that did not happen with Something else that was a bit strange: Cheers, |
From @bulk88On Sun Feb 21 16:06:42 2016, sisyphus wrote:
Reproduced by replacing the 64b gmake included with a 64b strawberry with a 32b gmake. I've attached a fix. -- |
From @bulk880001-perl-127584-using-Win32-32b-gmake-with-64b-gcc-cause.patchFrom 2b9c90dc141c28920c3618654396f6a756d7be58 Mon Sep 17 00:00:00 2001
From: Daniel Dragan <bulk88@hotmail.com>
Date: Sun, 21 Feb 2016 19:43:44 -0500
Subject: [PATCH] [perl #127584] using Win32 32b gmake with 64b gcc caused
wrong archname
Using a 32 bit Win32 gmake, with a GCC that produces 64 bit binaries, made
a perl with PTRSIZE 64 bits, and 64 bit machine code, but archname IDed
that build as "x86" not "x64", which is very wrong. Perl's
win32/GNUMakefile autodetects the bitness of the GCC and sets things up
accordingly. Fixes [perl #127584]. This bug might be a regression
introduced in commit 745dedb9b5 or the GNUMakefile parallel build branch.
---
win32/GNUmakefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/win32/GNUmakefile b/win32/GNUmakefile
index 9511325..51f9584 100644
--- a/win32/GNUmakefile
+++ b/win32/GNUmakefile
@@ -357,11 +357,11 @@ endif
ifeq ($(CCTYPE),GCC)
ifeq ($(GCCTARGET),x86_64-w64-mingw32)
WIN64 := define
-ARCHITECTURE := x64
+PROCESSOR_ARCHITECTURE := x64
endif
ifeq ($(GCCTARGET),i686-w64-mingw32)
WIN64 := undef
-ARCHITECTURE := x86
+PROCESSOR_ARCHITECTURE := x86
endif
endif
--
1.8.0.msysgit.0
|
From @sisyphus-----Original Message-----
Yes, that fix works for me, too. Cheers, |
@tonycoz - Status changed from 'open' to 'pending release' |
From @khwilliamsonThank you for submitting this report. You have helped make Perl better. Perl 5.24.0 may be downloaded via https://metacpan.org/release/RJBS/perl-5.24.0 |
@khwilliamson - Status changed from 'pending release' to 'resolved' |
Migrated from rt.perl.org#127584 (status was 'resolved')
Searchable as RT127584$
The text was updated successfully, but these errors were encountered: