The default bug view has changed. See this FAQ.

configure sometimes fails with "rm: cannot lstat `conftest.exe': Permission denied" followed by "C++ compiler cannot create executables"

RESOLVED FIXED

Status

()

Core
Build Config
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: mayhemer, Unassigned)

Tracking

Trunk
x86
Windows 7
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
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.
Attachment #627311 - Flags: review?(ehsan)
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 on attachment 627311 [details] [diff] [review]
v1

What could *possibly* go wrong?  :-)
Attachment #627311 - Flags: review?(ehsan) → review+
(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.
And by autoconfigure, I obviously mean autoconf!
(Reporter)

Comment 5

5 years ago
Comment on attachment 627311 [details] [diff] [review]
v1

https://hg.mozilla.org/mozilla-central/rev/e4574b46f0ba
Attachment #627311 - Flags: checkin+
(Reporter)

Updated

5 years ago
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
It is possible to override bits of the built-in autoconf macros, m4 is pretty flexible.
(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?
Blocks: 788241
You need to log in before you can comment on or make changes to this bug.