Skip Menu |
 

This queue is for tickets about the Alien-wxWidgets CPAN distribution.

Report information
The Basics
Id: 49433
Status: open
Priority: 0/
Queue: Alien-wxWidgets

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.44
Fixed in: (no value)

Attachments
0001-Bail-out-of-building-if-sh.exe-or-cc1.exe-are-found-.patch



Subject: make (e=2): The system cannot find the file specified.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain
Charset: utf8
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 1494
Download (untitled) / with headers
text/plain 1.4k
It wolud be helpful if win32 users were warned if mingw32-make.exe is missing from path make.exe is present in path sh.exe is present in path otherwise they'll encounter Alien-wxWidgets-0.44>perl Makefile.PL && dmake # running Build.PL Subroutine version::qv redefined at inc/version.pm line 22. Creating custom builder _build\lib\My\Build\new_from_context_is_broken.pm in _build\lib\My\Build Checking whether your kit is complete... Looks good Checking prerequisites... Looks good Creating new 'Build' script for 'Alien-wxWidgets' version '0.44' Creating new 'MYMETA.yml' with configuration results C:\perl\bin\perl.exe Build --makefile_env_macros 1 Subroutine version::qv redefined at inc/version.pm line 22. if not exist gcc_mswudll mkdir gcc_mswudll process_begin: CreateProcess(NULL, -c "if not exist gcc_mswudll mkdir gcc_mswudll", ...) failed. make (e=2): The system cannot find the file specified. mingw32-make: [gcc_mswudll] Error 2 (ignored) if not exist ..\..\lib\gcc_dll mkdir ..\..\lib\gcc_dll process_begin: CreateProcess(NULL, -c "if not exist ..\..\lib\gcc_dll mkdir ..\..\lib\gcc_dll", ...) failed. make (e=2): The system cannot find the file specified. mingw32-make: *** [..\..\lib\gcc_dll] Error 2 system: mingw32-make -f makefile.gcc all UNICODE=1 MSLU=0 BUILD=release SHARED=1: 512 at inc/My/Build/Win32.pm line 263 dmake: Error code 130, while making 'all' Thank you
X-Source:
MIME-Version: 1.0
X-Spam-Status: No, hits=1.2 required=8.0 tests=SPF_NEUTRAL
In-Reply-To: <rt-3.6.HEAD-27252-1252082013-809.49433-4-0 [...] rt.cpan.org>
X-Source-Args:
X-Source-Dir:
References: <RT-Ticket-49433 [...] rt.cpan.org> <rt-3.6.HEAD-27252-1252082013-809.49433-4-0 [...] rt.cpan.org>
Message-ID: <4AA21147.2080901 [...] libero.it>
Content-Type: text/plain; charset=UTF-8; format=flowed
X-Antiabuse: This header was added to track abuse, please include it with any abuse report
X-Antiabuse: Primary Hostname - sabre.hostvector.com
X-Antiabuse: Original Domain - rt.cpan.org
X-Antiabuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-Antiabuse: Sender Address Domain - libero.it
X-RT-Original-Encoding: utf-8
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by diesel.bestpractical.com (Postfix) with SMTP id AA17C19B8243 for <bug-Alien-wxWidgets [...] rt.cpan.org>; Tue, 8 Sep 2009 19:38:11 -0400 (EDT)
Received: (qmail 9207 invoked by uid 103); 8 Sep 2009 23:38:10 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 8 Sep 2009 23:38:10 -0000
Received: from sabre.hostvector.com (HELO sabre.hostvector.com) (208.83.210.132) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Tue, 08 Sep 2009 16:38:04 -0700
Received: from [95.75.130.47] (helo=madhatter.rbnet.it) by sabre.hostvector.com with esmtpa (Exim 4.69) (envelope-from <mattia.barbon [...] libero.it>) id 1MjpWc-0005Q6-8E for bug-Alien-wxWidgets [...] rt.cpan.org; Sat, 05 Sep 2009 03:17:31 -0400
Received: from madhatter.rbnet.it (localhost [127.0.0.1]) by madhatter.rbnet.it (Postfix) with ESMTP id 8E4DC10F15A2 for <bug-Alien-wxWidgets [...] rt.cpan.org>; Sat, 5 Sep 2009 09:20:39 +0200 (CEST)
Delivered-To: cpan-bug+Alien-wxWidgets [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #49433] make (e=2): The system cannot find the file specified.
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
Return-Path: <mattia.barbon [...] libero.it>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-Alien-wxWidgets [...] rt.cpan.org
Date: Sat, 05 Sep 2009 09:20:39 +0200
X-Spam-Level: *
To: bug-Alien-wxWidgets [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Mattia Barbon <mattia.barbon [...] libero.it>
RT-Message-ID: <rt-3.6.HEAD-27252-1252453105-383.49433-0-0 [...] rt.cpan.org>
Content-Length: 271
Download (untitled) / with headers
text/plain 271b
noreply via RT wrote: Show quoted text
> It wolud be helpful if win32 users were warned if > > mingw32-make.exe is missing from path > make.exe is present in path > sh.exe is present in path
make.exe is notnecessarily a problem; sh.exe is. Patches welcome. Regards, Mattia
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/html; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-2363-1288051780-510.49433-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
RT-Send-CC: mattia.barbon [...] libero.it
Content-Length: 350
On Fri Sep 04 12:33:33 2009, noreply wrote:
Show quoted text
> It wolud be helpful if win32 users were warned if
>
> mingw32-make.exe is missing from path
> make.exe is present in path
> sh.exe is present in path
 
Same for cc1.exe - see https://rt.cpan.org/Ticket/Display.html?id=62451
MIME-Version: 1.0
Subject: [patch] make (e=2): The system cannot find the file specified.
In-Reply-To: <rt-3.8.HEAD-2363-1288051780-510.49433-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
X-RT-Interface: Web
References: <rt-3.8.HEAD-2363-1288051780-510.49433-0-0 [...] rt.cpan.org>
Content-Type: multipart/mixed; boundary="----------=_1566851766-23061-2"
Message-ID: <rt-4.0.18-23061-1566851766-1445.49433-0-0 [...] rt.cpan.org>
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 0
Content-Disposition: inline
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 702
Download (untitled) / with headers
text/plain 702b
Am Mo 25. Okt 2010, 20:09:40, dandv schrieb: Show quoted text
> On Fri Sep 04 12:33:33 2009, noreply wrote:
> > It wolud be helpful if win32 users were warned if > > > > mingw32-make.exe is missing from path > > make.exe is present in path > > sh.exe is present in path
> > Same for cc1.exe - see https://rt.cpan.org/Ticket/Display.html?id=62451
The attached patch works for me on Windows 10, with sh.exe in C:\Users\Corion\AppData\Local\Temp\sh.exe and C:\Users\Corion\AppData\Local\Temp in $ENV{PATH}. This could additionally maybe close RT #87913, which seems to be the same problem, or really similar: process_begin: CreateProcess(NULL, -c "if not exist gcc_mswudll mkdir gcc_mswudll", ...) failed. -max
MIME-Version: 1.0
Subject: 0001-Bail-out-of-building-if-sh.exe-or-cc1.exe-are-found-.patch
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Type: application/octet-stream; name="0001-Bail-out-of-building-if-sh.exe-or-cc1.exe-are-found-.patch"
Content-Disposition: inline; filename="0001-Bail-out-of-building-if-sh.exe-or-cc1.exe-are-found-.patch"
Content-Transfer-Encoding: base64
Content-Length: 1928
From d64302f8b45901d2b91b9f813f8c4de76cad1714 Mon Sep 17 00:00:00 2001 From: Max Maischein <corion@corion.net> Date: Tue, 27 Aug 2019 00:31:28 +0200 Subject: [PATCH] Bail out of building if sh.exe or cc1.exe are found on the path This addresses # RT #49433 , RT #62451 The workaround is to adjust $PATH / $ENV{PATH} to exclude directories in which sh.exe or cc1.exe is found. Another workaround is to set $ENV{WX_IGNOREPATH} to a true value to disable this check. --- Build.PL | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) mode change 100755 => 100644 Build.PL diff --git a/Build.PL b/Build.PL old mode 100755 new mode 100644 index b0728a2..38046e0 --- a/Build.PL +++ b/Build.PL @@ -226,6 +226,33 @@ $build->notes( 'userpatch' => $build->args('wxWidgets-userpatch') || '' ); $build->notes( 'graphicscontext' => $build->args('wxWidgets-graphicscontext') ); if( $build_wx ) { + # RT #49433 , RT #62451 + if( $^O eq 'MSWin32' ) { + my @problematic = (qw(sh.exe cc1.exe)); + my @problematic_path = map { My::Build::Base->awx_path_search( $_ ) } @problematic; + My::Build::Base->awx_path_search( 'cc1.exe' ), + ; + if( @problematic_path and not $ENV{WX_IGNOREPATH} ) { + local $" = "\n"; + print <<EOT; +The following programs were found in \$ENV{PATH}, and will break the build: +@problematic_path + +PATH is + +$ENV{PATH} + +Please edit \$ENV{PATH} so these programs are not in it anymore and restart the +installation. Alternatively, set \$ENV{WX_IGNOREPATH} to a true value and +restart the installation: + + set WX_IGNOREPATH=1 + +EOT + exit 1; + } + }; + $wx_version = _askmulti( $build, 'wxWidgets-version', 'Which wxWidgets version?', [ sort keys %VERSIONS ], $DEFAULT_VERSION ); -- 2.22.0.windows.1


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.