Msys2 ld:无法打开输出文件conftest.exe:权限被拒绝

Msys2 ld:无法打开输出文件conftest.exe:权限被拒绝,msys2,windows64,Msys2,Windows64,在Windows7 64位上使用(versionx86\u 64-20160205),我正在尝试编译 以下是输出: $ ./configure loading cache ./config.cache checking for a BSD compatible install... (cached) /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${

在Windows7 64位上使用(version
x86\u 64-20160205
),我正在尝试编译

以下是输出:

$ ./configure
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) no
checking for working aclocal... found
checking for working autoconf... missing
checking for working automake... found
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking how to run the C preprocessor... (cached) gcc -E
checking for function prototypes... yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
以及
config.log
的内容:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:556: checking for a BSD compatible install
configure:609: checking whether build environment is sane
configure:666: checking whether make sets ${MAKE}
configure:712: checking for working aclocal
configure:725: checking for working autoconf
configure:738: checking for working automake
configure:751: checking for working autoheader
configure:764: checking for working makeinfo
configure:783: checking for gcc
configure:896: checking whether the C compiler (gcc  ) works
configure:912: gcc -o conftest    conftest.c  1>&5
configure:909:1: warning: return type defaults to 'int' [-Wimplicit-int]
 main(){return(0);}
 ^
configure:938: checking whether the C compiler (gcc  ) is a cross-compiler
configure:943: checking whether we are using GNU C
configure:971: checking whether gcc accepts -g
configure:1006: checking for gcc option to accept ANSI C
configure:1083: checking how to run the C preprocessor
configure:1165: checking for function prototypes
configure:1327: checking for gcc
configure:1440: checking whether the C compiler (gcc -g -O2 ) works
configure:1456: gcc -o conftest -g -O2   conftest.c  1>&5
configure:1453:1: warning: return type defaults to 'int' [-Wimplicit-int]
 main(){return(0);}
 ^
/usr/lib/gcc/x86_64-pc-msys/5.3.0/../../../../x86_64-pc-msys/bin/ld: cannot open output file conftest.exe: Permission denied
collect2: error: ld returned 1 exit status
configure: failed program was:

#line 1451 "configure"
#include "confdefs.h"

main(){return(0);}
我试过了,但没有成功。或者更准确地说,它会随机进入下一步(在检测我的系统时失败,我认为这更像是螺旋钻的配置问题)

这不是权限问题,因为我拥有该文件夹的所有权限,并使用我的用户执行
/configure


有什么想法吗?

看来由于权限问题,
ld
在创建可执行文件时遇到了问题。尝试在您确信自己拥有的文件夹(如C:\Users\yourusername)中生成程序,或者尝试调整正在生成的文件夹的权限。

由于权限问题,
ld
似乎在创建可执行文件时遇到问题。请尝试在您确信自己拥有的文件夹(如C:\Users\yourusername)中生成程序,或者尝试调整您正在生成的文件夹的权限。

实际上,我拥有该文件夹的所有权限。。。我会在问题中说明这一点。实际上我拥有该文件夹的所有权限。。。我会在质询中详细说明这点。