软件包fst的R编译失败

时间:2018-08-25 21:31:57

标签: r gcc compiler-errors compilation r-package

我正在尝试从CRAN安装fst R软件包,但出现错误:

gcc -I"/path/apps/R/3.5.1-20180807-test/x86_64-linux-2.6-rhel6/lib64/R/include" -DNDEBUG 
-fopenmp -I. -Ifstcore -Ifstcore_v1 -Ifstcore/LZ4 -Ifstcore/ZSTD -Ifstcore/ZSTD/common 
-Ifstcore/ZSTD/decompress -Ifstcore/ZSTD/compress 
-I"/path/apps/R/3.5.1-20180807-test/x86_64-linux-2.6-rhel6/r_libs_site/Rcpp/include" 
-I /path/apps/R/static-zlib-gcc6.3/x86_64-linux-2.6-rhel6/include   -fpic  
-I /path/apps/R/static-zlib-gcc6.3/x86_64-linux-2.6-rhel6/include   
-c fstcore/ZSTD/compress/huf_compress.c -o fstcore/ZSTD/compress/huf_compress.o
gcc -I"/path/apps/R/3.5.1-20180807-test/x86_64-linux-2.6-rhel6/lib64/R/include" -DNDEBUG 
-fopenmp -I. -Ifstcore -Ifstcore_v1 -Ifstcore/LZ4 -Ifstcore/ZSTD -Ifstcore/ZSTD/common 
-Ifstcore/ZSTD/decompress -Ifstcore/ZSTD/compress 
-I"/path/apps/R/3.5.1-20180807-test/x86_64-linux-2.6-rhel6/r_libs_site/Rcpp/include" 
-I /path/apps/R/static-zlib-gcc6.3/x86_64-linux-2.6-rhel6/include   -fpic  
-I /path/apps/R/static-zlib-gcc6.3/x86_64-linux-2.6-rhel6/include   
-c fstcore/ZSTD/decompress/zstd_decompress.c -o fstcore/ZSTD/decompress/zstd_decompress.o
/tmp/cc0LoSFX.s: Assembler messages:
/tmp/cc0LoSFX.s:7353: Error: no such instruction: `shlx %rax,%rdx,%rax'
/tmp/cc0LoSFX.s:8204: Error: no such instruction: `shlx %rax,%rdx,%rax'
/tmp/cc0LoSFX.s:8608: Error: no such instruction: `shlx %rax,%rdx,%rax'
make: *** [fstcore/ZSTD/decompress/zstd_decompress.o] Error 1
ERROR: compilation failed for package ‘fst’

我是否可以从源代码编译任何必需的linux库?我还能做什么?

编辑:

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/path/apps/gcc/6.3.0/x86_64-linux-2.6-rhel6/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.3.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ./configure --prefix=/path/apps/gcc/6.3.0/x86_64-linux-2.6-rhel6 --disable-multilib
Thread model: posix
gcc version 6.3.0 (GCC)

1 个答案:

答案 0 :(得分:2)

在此处放置后代,以防其他人在遇到类似问题时最终落在该问题上。

事实证明,据我们所知,问题是汇编器(/ usr / bin / as)和gcc(非系统安装6.3.0)的版本不兼容。

因此,如果您不知道为什么会出现这些错误而落在这条绳索的尽头,请寻求获取兼容版本的汇编器(在Linux世界中,这是binutils模块/项目的一部分)。希望有帮助。