gpt4 book ai didi

r - loop_apply.o : file not recognized: File format not recognized

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:38:09 34 4
gpt4 key购买 nike

我正在尝试安装 Rplyr 包。这是错误消息:

* installing *source* package ‘plyr’ ...
** package ‘plyr’ successfully unpacked and MD5 sums checked
** libs
clang++ -I/opt/R-3.4.1/include -DNDEBUG -I"/home/isomorphismes/R/i686-pc-linux-gnu-library/3.4/Rcpp/include" -I/usr/local/include -fpic -I/opt/boost_1_61_0/boost -c RcppExports.cpp -o RcppExports.o
clang -I/opt/R-3.4.1/include -DNDEBUG -I"/home/cd/R/i686-pc-linux-gnu-library/3.4/Rcpp/include" -I/usr/local/include -fpic -g -O2 -flto -c loop_apply.c -o loop_apply.o
clang++ -I/opt/R-3.4.1/include -DNDEBUG -I"/home/isomorphismes/R/i686-pc-linux-gnu-library/3.4/Rcpp/include" -I/usr/local/include -fpic -I/opt/boost_1_61_0/boost -c split-numeric.cpp -o split-numeric.o
clang++ -shared -L/usr/local/lib -o plyr.so RcppExports.o loop_apply.o split-numeric.o
loop_apply.o: file not recognized: File format not recognized
clang: error: linker command failed with exit code 1 (use -v to see invocation)
/opt/R-3.4.1/share/make/shlib.mk:6: recipe for target 'plyr.so' failed
make: *** [plyr.so] Error 1
ERROR: compilation failed for package ‘plyr’
* removing ‘/home/cd/R/i686-pc-linux-gnu-library/3.4/plyr’

*.o 文件在 /opt/plyr/src 中,来自 github.com/hadley/plyr。它们在我的系统上看起来像这样:

i@scheherezade:/opt/plyr/src$ file *o
loop_apply.o: LLVM IR bitcode
RcppExports.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped
split-numeric.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped

最佳答案

如果您不知道,-flto 指定链接时间优化,并且已由 R 添加。您是如何设法以这种错误配置的 R 安装结束的?

将-flto 添加到链接命令可能有效吗?或者从 loop_apply 编译行中删除它。如果其中任何一个有效,您需要修复您的 R 安装。

关于r - loop_apply.o : file not recognized: File format not recognized,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46084446/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com