Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/302.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
Python 编译错误:gcc:error:无法识别的命令行选项‘-R’;_Python_Linux_Compilation - Fatal编程技术网

Python 编译错误:gcc:error:无法识别的命令行选项‘-R’;

Python 编译错误:gcc:error:无法识别的命令行选项‘-R’;,python,linux,compilation,Python,Linux,Compilation,我正在尝试使用以下行运行安装: python setup.py install --user 要从以下位置安装数据集读取器: 但当我这样做时,我得到了错误: gcc: error: unrecognized command line option ‘-R’ 这是一个与 但当我跟踪错误源时: C compiler: gcc -pthread -B /home/username/anaconda3/compiler_compat -Wsign-compare -DNDEBUG -g -fwrap

我正在尝试使用以下行运行安装:

python setup.py install --user
要从以下位置安装数据集读取器:

但当我这样做时,我得到了错误:

gcc: error: unrecognized command line option ‘-R’
这是一个与

但当我跟踪错误源时:

C compiler: gcc -pthread -B /home/username/anaconda3/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
我找不到要修改的文件

/home/username/anaconda3/compiler\u compat

来修复-R问题

“read_eagle”于2018年7月3日下载,身份号:4A7348D8248D16BFD5DC2838E6160156DC28C5,历史记录来源:github.com/jchelly/read_eagle

我有以下程序版本:

康达:4.4.11

Python 3.6.2::Anaconda自定义(64位

gcc(Ubuntu 5.4.0-6ubuntu1~16.04.10)5.4.0 20160609

完全错误:

running install
running build
running build_py
running build_ext
building '_read_eagle' extension
C compiler: gcc -pthread -B /home/username/anaconda3/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

compile options: '-I/home/username/anaconda3/lib/python3.6/site-packages/numpy/core/include -I/home/username/anaconda3/pkgs/hdf5-1.10.1-h9caa474_1/include -I/home/username/anaconda3/include/python3.6m -c'
gcc: ./src/_read_eagle.c
gcc: ./src/read_eagle.c
./src/read_eagle.c: In function ‘get_dataset_list’:
./src/read_eagle.c:194:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(i=0; i<nobj; i+=1)
             ^
./src/read_eagle.c: In function ‘count_particles_with_index’:
./src/read_eagle.c:948:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          for(i=0;i<n;i+=1)
                   ^
./src/read_eagle.c:960:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          for(i=0;i<n;i+=1)
                   ^
./src/read_eagle.c: In function ‘read_extra_dataset’:
./src/read_eagle.c:1250:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(ipart=0;ipart<dims[0];ipart+=1)
                          ^
gcc -pthread -shared -B /home/username/anaconda3/compiler_compat -L/home/username/anaconda3/lib -Wl,-rpath=/home/username/anaconda3/lib,--no-as-needed build/temp.linux-x86_64-3.6/src/_read_eagle.o build/temp.linux-x86_64-3.6/src/read_eagle.o -L/home/username/anaconda3/pkgs/hdf5-1.10.1-h9caa474_1/lib -L/home/username/anaconda3/lib -R/home/username/anaconda3/pkgs/hdf5-1.10.1-h9caa474_1/lib -lhdf5 -lpython3.6m -o build/lib.linux-x86_64-3.6/_read_eagle.cpython-36m-x86_64-linux-gnu.so
gcc: error: unrecognized command line option ‘-R’
gcc: error: unrecognized command line option ‘-R’
error: Command "gcc -pthread -shared -B /home/username/anaconda3/compiler_compat -L/home/username/anaconda3/lib -Wl,-rpath=/home/username/anaconda3/lib,--no-as-needed build/temp.linux-x86_64-3.6/src/_read_eagle.o build/temp.linux-x86_64-3.6/src/read_eagle.o -L/home/username/anaconda3/pkgs/hdf5-1.10.1-h9caa474_1/lib -L/home/username/anaconda3/lib -R/home/username/anaconda3/pkgs/hdf5-1.10.1-h9caa474_1/lib -lhdf5 -lpython3.6m -o build/lib.linux-x86_64-3.6/_read_eagle.cpython-36m-x86_64-linux-gnu.so" failed with exit status 1
正在运行安装
运行构建
运行build\u py
运行build_ext
建筑“\u read\u eagle”分机
C编译器:gcc-pthread-B/home/username/anaconda3/compiler_compat-Wsign compare-DNDEBUG-g-fwrapv-O3-Wall-Wstrict原型-fPIC
编译选项:'-I/home/username/anaconda3/lib/python3.6/site-packages/numpy/core/include-I/home/username/anaconda3/pkgs/hdf5-1.10.1-h9caa474\u 1/include-I/home/username/anaconda3/include/python3.6m-c'
gcc:./src/\u read\u eagle.c
通用条款:./src/read_eagle.c
/src/read_eagle.c:在函数“get_dataset_list”中:
./src/read_eagle.c:194:13:警告:有符号和无符号整数表达式之间的比较[-Wsign compare]

对于(i=0;i Python、Conda、gcc和read_eagle(提交哈希)版本是什么?我可以用Python 3.7和NoConda(gcc 8.1和Clang9.1)构建4a73486版本;这可能是Conda问题。我怀疑这是Conda问题。Conda:4.4.11,Python 3.6.2::Anaconda custom(64位),gcc(Ubuntu 5.4.0-6ubuntu1~16.04.10)5.4.0 20160609,read_eagle没有我知道的版本号。“read_eagle没有版本号”。这就是为什么我要求提交read_eagle的版本号;或者您下载该版本的日期(以及从何处下载)。此外,请将相关信息输入您的评论中,以使其更清楚:评论可能更容易忽略(并且最终应该忽略).相关信息:read \-eagle已于今天下载,身份号为4A7348D8248D16BFD5DC28283E6160156DC28C5,历史记录来自:。