r - loop_apply.o: file not recognized: File format not recognized -
i trying install r
’s plyr
package. here error message:
* installing *source* package ‘plyr’ ... ** package ‘plyr’ unpacked , 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 exit code 1 (use -v see invocation) /opt/r-3.4.1/share/make/shlib.mk:6: recipe target 'plyr.so' failed make: *** [plyr.so] error 1 error: compilation failed package ‘plyr’ * removing ‘/home/cd/r/i686-pc-linux-gnu-library/3.4/plyr’
the *.o
files in /opt/plyr/src
, github.com/hadley/plyr. on system:
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
in case didn't know, -flto specifies link time optimization, , has been added r. how did manage end such mis-configured r install?
adding -flto link command may work? or remove loop_apply compilation line. if either of works, need fix r install.
wiki
Comments
Post a Comment