在OSX上构建R包mvtnorm时出错

时间:2016-03-10 09:12:33

标签: r macos fortran clang gfortran

当我使用mvtnorm在R中安装package.install("mvtnorm")包时,出现此错误:

clang -I/usr/local/Cellar/r/3.2.3/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/opt/openssl/include -I/usr/local/include  -I/usr/local/include   -fPIC  -g -O2  -c C_FORTRAN_interface.c -o C_FORTRAN_interface.o
clang -I/usr/local/Cellar/r/3.2.3/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/opt/openssl/include -I/usr/local/include  -I/usr/local/include   -fPIC  -g -O2  -c miwa.c -o miwa.o
/usr/local/bin/gfortran   -fPIC  -g -O2  -c mvt.f -o mvt.o
/var/folders/_0/bvqq9l5d2ngg0stvkf53jrbr0000gn/T//ccxlxy4X.s:2601:suffix or operands invalid for `movq'
/var/folders/_0/bvqq9l5d2ngg0stvkf53jrbr0000gn/T//ccxlxy4X.s:2614:suffix or operands invalid for `movq'

我怀疑问题可能出在clanggfortran的版本上,因此我取消关联gcc-5.3.0并使用clang-3.6.0gfortran 4.9.2。 gfortran的编译版本是obtained from this site

这让我更进一步,但我仍然看到这个警告:

clang -I/usr/local/Cellar/r/3.2.3/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/opt/openssl/include -I/usr/local/include  -I/usr/local/include   -fPIC  -g -O2  -c C_FORTRAN_interface.c -o C_FORTRAN_interface.o
clang -I/usr/local/Cellar/r/3.2.3/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/opt/openssl/include -I/usr/local/include  -I/usr/local/include   -fPIC  -g -O2  -c miwa.c -o miwa.o
/usr/local/bin/gfortran   -fPIC  -g -O2  -c mvt.f -o mvt.o
clang -I/usr/local/Cellar/r/3.2.3/R.framework/Resources/include -DNDEBUG -I/usr/local/include  -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/opt/openssl/include -I/usr/local/include  -I/usr/local/include   -fPIC  -g -O2  -c mvtnorm-init.c -o mvtnorm-init.o
/usr/local/bin/gfortran   -fPIC  -g -O2  -c tvpack.f -o tvpack.o
clang -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/Cellar/r/3.2.3/R.framework/Resources/lib -L/usr/local/opt/gettext/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/openssl/lib -L/usr/local/lib -o mvtnorm.so C_FORTRAN_interface.o miwa.o mvt.o mvtnorm-init.o tvpack.o -L/usr/local/opt/gcc/lib/gcc/5/gcc/x86_64-apple-darwin14.5.0/5.3.0 -L/usr/local/opt/gcc/lib/gcc/5 -lgfortran -lquadmath -lm -F/usr/local/Cellar/r/3.2.3/R.framework/.. -framework R -lintl -Wl,-framework -Wl,CoreFoundation
ld: warning: could not create compact unwind for _mvkbrv_: stack subq instruction is too different from dwarf stack size

在OSX 10.10及更高版本的homebrewed GCC上构建需要gfortran的R包的最佳方法是什么?

0 个答案:

没有答案