Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gcc cygwin64::./configure returns";配置:退出77“;_Gcc_Makefile_Cmake_Cygwin_Configure - Fatal编程技术网

Gcc cygwin64::./configure returns";配置:退出77“;

Gcc cygwin64::./configure returns";配置:退出77“;,gcc,makefile,cmake,cygwin,configure,Gcc,Makefile,Cmake,Cygwin,Configure,我已经安装了Cygwin64,现在我想安装 所以我下载了它,解压缩了文件,但当我运行/configure时,它会显示: $ ./configure Configuring extundelete 0.2.4 configure: error: in `/cygdrive/c/Users/franc/Desktop/extundelete-0.2.4': configure: error: C++ compiler cannot create executables See `config.log

我已经安装了
Cygwin64
,现在我想安装

所以我下载了它,解压缩了文件,但当我运行
/configure
时,它会显示:

$ ./configure
Configuring extundelete 0.2.4
configure: error: in `/cygdrive/c/Users/franc/Desktop/extundelete-0.2.4':
configure: error: C++ compiler cannot create executables
See `config.log' for more details

因此,我打开
config.log
文件,发现一些错误:

configure:2876: $? = 0
configure:2865: CC -v >&5
Using built-in specs.
COLLECT_GCC=CC
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-cygwin/9.2.0/lto-wrapper.exe
Target: x86_64-pc-cygwin
Configured with: /cygdrive/i/szsz/tmpp/gcc/gcc-9.2.0-2.x86_64/src/gcc-9.2.0/configure --srcdir=/cygdrive/i/szsz/tmpp/gcc/gcc-9.2.0-2.x86_64/src/gcc-9.2.0 --prefix=/usr --exec-prefix=/usr --localstatedir=/var --sysconfdir=/etc --docdir=/usr/share/doc/gcc --htmldir=/usr/share/doc/gcc/html -C --build=x86_64-pc-cygwin --host=x86_64-pc-cygwin --target=x86_64-pc-cygwin --without-libiconv-prefix --without-libintl-prefix --libexecdir=/usr/lib --enable-shared --enable-shared-libgcc --enable-static --enable-version-specific-runtime-libs --enable-bootstrap --enable-__cxa_atexit --with-dwarf2 --with-tune=generic --enable-languages=c,c++,fortran,lto,objc,obj-c++ --enable-graphite --enable-threads=posix --enable-libatomic --enable-libgomp --enable-libquadmath --enable-libquadmath-support --disable-libssp --enable-libada --disable-symvers --with-gnu-ld --with-gnu-as --with-cloog-include=/usr/include/cloog-isl --without-libiconv-prefix --without-libintl-prefix --with-system-zlib --enable-linker-build-id --with-default-libstdcxx-abi=gcc4-compatible --enable-libstdcxx-filesystem-ts
Thread model: posix
gcc version 9.2.0 (GCC) 
configure:2876: $? = 0
configure:2865: CC -V >&5
CC: error: unrecognized command line option '-V'
CC: fatal error: no input files
compilation terminated.
configure:2876: $? = 1
configure:2865: CC -qversion >&5
CC: error: unrecognized command line option '-qversion'; did you mean '--version'?
CC: fatal error: no input files
compilation terminated.
configure:2876: $? = 1
configure:2896: checking whether the C++ compiler works
configure:2918: CC    conftest.cpp  >&5
CC: fatal error: cannot execute 'cc1plus': spawn: No such file or directory
compilation terminated.
configure:2922: $? = 1
configure:2960: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "extundelete"
| #define PACKAGE_TARNAME "extundelete"
| #define PACKAGE_VERSION "0.2.4"
| #define PACKAGE_STRING "extundelete 0.2.4"
| #define PACKAGE_BUGREPORT "extundelete.sourceforge.net"
| #define PACKAGE_URL ""
| #define PACKAGE "extundelete"
| #define VERSION "0.2.4"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2965: error: in `/cygdrive/c/Users/franc/Desktop/extundelete-0.2.4':
configure:2967: error: C++ compiler cannot create executables
See `config.log' for more details
.log文件的结尾是
configure:exit 77


是否可以在Cygwin64中编译文件?

您的生成问题可能是由于继承自
C:\Users\franc
的权限导致生成过程所需的执行权限被破坏。
使用
/home/franc
/usr/src
目录或其他类似目录。
不要在Windows主目录下生成

不幸的是,由于其他原因,您无法在Cygwin上构建程序,请参见以下内容:

在适当的目录中,您将有:

$ ./configure
Configuring extundelete 0.2.4
Writing generated files to disk
为了避免某些范围错误,可以从makefile中删除限制调用

$ find . -name Makefile -exec sed -e "s/-std=c99//" -i {} \;
$ find . -name Makefile -exec sed -e "s/-std=c++0x -std=c++11//" -i {} \;
而不是建造

$ make
make -s all-recursive
Making all in src
...
insertionops.cc: In function ‘std::ostream& operator<<(std::ostream&, const ext2_inode&)’:
insertionops.cc:36:36: error: ‘const struct ext2_inode’ has no member named ‘i_dir_acl’; did you mean ‘i_file_acl’?
   36 |   os << "Directory ACL: " << inode.i_dir_acl << std::endl;
      |                                    ^~~~~~~~~
      |                                    i_file_acl
make[2]: *** [Makefile:437: extundelete-insertionops.o] Error 1
make[1]: *** [Makefile:268: all-recursive] Error 1
make: *** [Makefile:208: all] Error 2
$make
使-s都是递归的
在src中制作所有
...

insertionops.cc:在函数“std::ostream&operator中,您的生成问题可能是由于继承自
C:\Users\franc
的权限导致生成过程所需的执行权限不正确。
使用
/home/franc
/usr/src
目录或其他类似目录。
不要在Windows主目录下生成

不幸的是,由于其他原因,您无法在Cygwin上构建程序,请参见以下内容:

在适当的目录中,您将有:

$ ./configure
Configuring extundelete 0.2.4
Writing generated files to disk
为了避免某些范围错误,可以从makefile中删除限制调用

$ find . -name Makefile -exec sed -e "s/-std=c99//" -i {} \;
$ find . -name Makefile -exec sed -e "s/-std=c++0x -std=c++11//" -i {} \;
而不是建造

$ make
make -s all-recursive
Making all in src
...
insertionops.cc: In function ‘std::ostream& operator<<(std::ostream&, const ext2_inode&)’:
insertionops.cc:36:36: error: ‘const struct ext2_inode’ has no member named ‘i_dir_acl’; did you mean ‘i_file_acl’?
   36 |   os << "Directory ACL: " << inode.i_dir_acl << std::endl;
      |                                    ^~~~~~~~~
      |                                    i_file_acl
make[2]: *** [Makefile:437: extundelete-insertionops.o] Error 1
make[1]: *** [Makefile:268: all-recursive] Error 1
make: *** [Makefile:208: all] Error 2
$make
使-s都是递归的
在src中制作所有
...

insertionops.cc:In函数的std::ostream&operatorConfiguration输出与CMake生成的输出不同。为什么要使用
cmake
tag?@Tsyvarev,我应该使用什么命令?输出较长,是否需要所有>200行?我不是说您使用了错误的命令。我问你为什么用
cmake
标记来回答你的问题。这个标签与问题有什么关系?extundelete是一个实用工具,可以从ext3或ext4分区恢复已删除的文件。为什么要在cygwin上安装?不要在Windows主目录下生成。从
C:\Users\franc
继承的权限可以满足生成过程所需的执行权限。使用
/home/franc
/usr/src
目录。PS:当然可以在Cygwin 64位下构建;您认为这些包是如何构建的?配置输出看起来不像CMake生成的。为什么要使用
cmake
tag?@Tsyvarev,我应该使用什么命令?输出较长,是否需要所有>200行?我不是说您使用了错误的命令。我问你为什么用
cmake
标记来回答你的问题。这个标签与问题有什么关系?extundelete是一个实用工具,可以从ext3或ext4分区恢复已删除的文件。为什么要在cygwin上安装?不要在Windows主目录下生成。从
C:\Users\franc
继承的权限可以满足生成过程所需的执行权限。使用
/home/franc
/usr/src
目录。PS:当然可以在Cygwin 64位下构建;你认为这些软件包是如何构建的?