包fst的R编译失败

问题描述 投票:1回答:1

我正在尝试从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)
r gcc compiler-errors compilation r-package
1个回答
2
投票

把这个放在后代,以防其他人在遇到类似问题时最终落在这个问题上。

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

因此,如果你在绳索的末端落在这里,不知道为什么你会看到这些错误,那么考虑获得汇编程序的兼容版本(在linux世界中,这是binutils模块/项目的一部分)。希望有所帮助。

© www.soinside.com 2019 - 2024. All rights reserved.