Last Comment Bug 758732 - configure sometimes fails with "rm: cannot lstat `conftest.exe': Permission denied" followed by "C++ compiler cannot create executables"
: configure sometimes fails with "rm: cannot lstat `conftest.exe': Permission d...
Status: RESOLVED FIXED
:
Product: Core
Classification: Components
Component: Build Config (show other bugs)
: Trunk
: x86 Windows 7
: -- normal (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
Mentors:
Depends on: 545015
Blocks: 788241
  Show dependency treegraph
 
Reported: 2012-05-25 12:02 PDT by Honza Bambas (:mayhemer)
Modified: 2012-09-04 12:44 PDT (History)
30 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
v1 (790 bytes, patch)
2012-05-25 12:02 PDT, Honza Bambas (:mayhemer)
ehsan: review+
honzab.moz: checkin+
Details | Diff | Review

Description Honza Bambas (:mayhemer) 2012-05-25 12:02:10 PDT
Created attachment 627311 [details] [diff] [review]
v1

+++ This bug was initially created as a clone of Bug #545015 +++

The current delay of 1 is not enough.  As Ehsan has suggested, I'm using timeout of 2 a long time as a local path.  When I sometimes forget to apply it, I get the conftest.exe permission denied error.

Proposing to raise the timeout.
Comment 1 Brian Smith (:briansmith, :bsmith, use NEEDINFO?) 2012-05-25 12:05:35 PDT
I suggest we just assume that VC++ can create executables and avoid doing this test altogether on Windows, instead of making configure two seconds slower than necessary--especially considering that configure is already ungodly slow on Windows without any sleeping.
Comment 2 :Ehsan Akhgari (busy, don't ask for review please) 2012-05-25 12:05:57 PDT
Comment on attachment 627311 [details] [diff] [review]
v1

What could *possibly* go wrong?  :-)
Comment 3 :Ehsan Akhgari (busy, don't ask for review please) 2012-05-25 12:07:02 PDT
(In reply to Brian Smith (:bsmith) from comment #1)
> I suggest we just assume that VC++ can create executables and avoid doing
> this test altogether on Windows, instead of making configure two seconds
> slower than necessary--especially considering that configure is already
> ungodly slow on Windows without any sleeping.

This check is done by one of the autoconfigure macros (AC_LANG_C or whatever they call it) so we can't skip that particular check quite easily.
Comment 4 :Ehsan Akhgari (busy, don't ask for review please) 2012-05-25 12:07:20 PDT
And by autoconfigure, I obviously mean autoconf!
Comment 6 Ted Mielczarek [:ted.mielczarek] 2012-05-25 12:41:50 PDT
It is possible to override bits of the built-in autoconf macros, m4 is pretty flexible.
Comment 7 :Ehsan Akhgari (busy, don't ask for review please) 2012-05-25 13:02:37 PDT
(In reply to Ted Mielczarek [:ted] from comment #6)
> It is possible to override bits of the built-in autoconf macros, m4 is
> pretty flexible.

Filed bug 758752 for this.  Can you please fill in the details?

Note You need to log in before you can comment on or make changes to this bug.