如何安装需要修改GCC标志的软件包?

时间:2017-03-21 12:45:13

标签: r gcc package

在R中安装软件包会给我这个特殊错误。这类似于question。但我仍然无法安装软件包。

require(devtools)
install_github("mukul13/rword2vec")

错误:我跳过很多行。

C:\Users\KT_DIP~1\AppData\Local\Temp\cc0ZTc98.s:2784: Error: no such instruction: `vfmadd312ss (%rax,%r10,4),%xmm0,%xmm8'
C:\Users\KT_DIP~1\AppData\Local\Temp\cc0ZTc98.s:2790: Error: no such instruction: `vfmadd312ss (%rax,%rbp,4),%xmm0,%xmm2'
C:\Users\KT_DIP~1\AppData\Local\Temp\cc0ZTc98.s:2793: Error: no such instruction: `vfmadd312ss (%rax,%r10,4),%xmm0,%xmm5'
make: *** [word2vec.o] Error 1
Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-31~1.2/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-31~1.2/share/make/winshlib.mk" SHLIB="rword2vec.dll" WIN=64 TCLBIN=64 OBJECTS="bin_to_txt.o distance.o vocab_count.o word2phrase.o word2vec.o word_analogy.o"' had status 2
ERROR: compilation failed for package 'rword2vec'
* removing 'C:/Users/KT_Dipika/Documents/R/win-library/3.1/rword2vec'

我查看了makeconf文件,但上面的问题中没有提供CMAKE_CXX_FLAGS。

安装了gcc,因为它给了我这个。

Using built-in specs.
COLLECT_GCC=C:\RBUILD~1\3.2\GCC-46~1.3\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/rbuild~1/3.2/gcc-46~1.3/bin/../libexec/gcc/i686-w64-mingw32/4.6.3/lto-wrapper.exe
Target: i686-w64-mingw32
Configured with: /data/gannet/ripley/Sources/mingw-test3/src/gcc/configure --host=i686-w64-mingw32 --build=x86_64-linux-gnu --target=i686-w64-mingw32 --with-sysroot=/data/gannet/ripley/Sources/mingw-test3/mingw32mingw32/mingw32 --prefix=/data/gannet/ripley/Sources/mingw-test3/mingw32mingw32/mingw32 --with-gmp=/data/gannet/ripley/Sources/mingw-test3/mingw32mingw32/prereq_install --with-mpfr=/data/gannet/ripley/Sources/mingw-test3/mingw32mingw32/prereq_install --with-mpc=/data/gannet/ripley/Sources/mingw-test3/mingw32mingw32/prereq_install --disable-shared --enable-static --enable-targets=all --enable-languages=c,c++,fortran --enable-libgomp --enable-sjlj-exceptions --enable-fully-dynamic-string --disable-nls --disable-werror --enable-checking=release --disable-win32-registry --disable-rpath --disable-werror CFLAGS='-O2 -mtune=core2 -fomit-frame-pointer' LDFLAGS=
Thread model: win32
gcc version 4.6.3 20111208 (prerelease) (GCC)

find_rtools()
[1] TRUE

Session info ------------------------------------------------------------------------------------
 setting  value                       
 version  R version 3.1.2 (2014-10-31)
 system   x86_64, mingw32             
 ui       RStudio (1.0.136)           
 language (EN)                        
 collate  English_United States.1252  
 tz       Asia/Calcutta               
 date     2017-03-21                  

Packages ----------------------------------------------------------------------------------------
 package  * version date       source        
 curl       0.9.7   2016-04-10 CRAN (R 3.1.3)
 devtools * 1.10.0  2016-01-23 CRAN (R 3.1.3)
 digest     0.6.9   2016-01-08 CRAN (R 3.1.3)
 git2r      0.13.1  2015-12-10 CRAN (R 3.1.3)
 httr       1.1.0   2016-01-28 CRAN (R 3.1.3)
 memoise    1.0.0   2016-01-29 CRAN (R 3.1.3)
 R6         2.1.2   2016-01-26 CRAN (R 3.1.3)
 withr      1.0.1   2016-02-04 CRAN (R 3.1.3)

欢迎任何想法!

使用R版本3.3.1和最新版本的Rtools安装包。

我安装wordVectors时也会遇到同样的错误。

更新 更新到最新版本的R并安装最新版本的Rtools解决了软件包安装的问题。

0 个答案:

没有答案