SCM

[#6594] Problem with assembling Matrix package in R manually

Date:
2018-07-18 11:41
Priority:
3
State:
Closed
Submitted by:
Dmitrii Bobrovskii (rebelion)
Assigned to:
Nobody (None)
Hardware:
PC
Product:
None
Operating System:
other
Component:
None
Version:
None
Severity:
normal
Resolution:
None
URL:
Summary:
Problem with assembling Matrix package in R manually

Detailed description
Hello. Sorry, I'm newbie here. So, this is my problem:
I try to assembly Matrix package (https://cran.r-project.org/src/contrib/Matrix_1.2-14.tar.gz) in R. I have windows 10 based computer with mingw64+msys installed on it. So, when I try to assemble it, I have well-compiled ".o" files and linker error (it's a part of an output).

C:/mingw/mingw64/bin/gcc -m64 -I"C:/PROGRA~1/MICROS~2/ROPEN~1/R-35~1.0/include" -I../Include -I../../SuiteSparse_config -O3 -Wall -std=gnu11 -march=native -mfpmath=both -mfma4 -mtune=intel -I"C:/swarm/workspace/External-R-3.5.0/vendor/extsoft/include" -I"C:/local/Libs/boost_1_67_0/boost" -I"C:/local/Libs/boost_1_67_0/" -I"C:/local/Libs/boost_1_67_0/tools/build/src/engine" -I"C:/tmp/res/x64/include" -I"C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/include" -I"" -O3 -Wall -std=gnu11 -march=native -mfpmath=both -mfma4 -mtune=intel -I../Include -DDLONG -c amd_dump.c -o amd_l_dump.o
C:/mingw/mingw64/bin/gcc -m64 -I"C:/PROGRA~1/MICROS~2/ROPEN~1/R-35~1.0/include" -I../Include -I../../SuiteSparse_config -O3 -Wall -std=gnu11 -march=native -mfpmath=both -mfma4 -mtune=intel -I"C:/swarm/workspace/External-R-3.5.0/vendor/extsoft/include" -I"C:/local/Libs/boost_1_67_0/boost" -I"C:/local/Libs/boost_1_67_0/" -I"C:/local/Libs/boost_1_67_0/tools/build/src/engine" -I"C:/tmp/res/x64/include" -I"C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/include" -I"" -O3 -Wall -std=gnu11 -march=native -mfpmath=both -mfma4 -mtune=intel -I../Include -DDINT -c amd_global.c -o amd_i_global.o
C:/mingw/mingw64/bin/gcc -m64 -I"C:/PROGRA~1/MICROS~2/ROPEN~1/R-35~1.0/include" -I../Include -I../../SuiteSparse_config -O3 -Wall -std=gnu11 -march=native -mfpmath=both -mfma4 -mtune=intel -I"C:/swarm/workspace/External-R-3.5.0/vendor/extsoft/include" -I"C:/local/Libs/boost_1_67_0/boost" -I"C:/local/Libs/boost_1_67_0/" -I"C:/local/Libs/boost_1_67_0/tools/build/src/engine" -I"C:/tmp/res/x64/include" -I"C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/include" -I"" -O3 -Wall -std=gnu11 -march=native -mfpmath=both -mfma4 -mtune=intel -I../Include -DDLONG -c amd_global.c -o amd_l_global.o
C:/mingw/mingw64/bin/ar -rucs ../../AMD.a amd_i_aat.o amd_l_aat.o amd_i_1.o amd_l_1.o amd_i_2.o amd_l_2.o amd_i_postorder.o amd_l_postorder.o amd_i_post_tree.o amd_l_post_tree.o amd_i_defaults.o amd_l_defaults.o amd_i_order.o amd_l_order.o amd_i_control.o amd_l_control.o amd_i_info.o amd_l_info.o amd_i_valid.o amd_l_valid.o amd_i_preprocess.o amd_l_preprocess.o amd_i_dump.o amd_l_dump.o amd_i_global.o amd_l_global.o
make[2]: Leaving directory `/tmp/RtmpS4xijq/R.INSTALL3228c0c6ea9/Matrix/src/AMD/Source'
make[1]: Leaving directory `/tmp/RtmpS4xijq/R.INSTALL3228c0c6ea9/Matrix/src/AMD'
make[1]: Entering directory `/tmp/RtmpS4xijq/R.INSTALL3228c0c6ea9/Matrix/src/SuiteSparse_config'
C:/mingw/mingw64/bin/gcc -m64 -I"C:/PROGRA~1/MICROS~2/ROPEN~1/R-35~1.0/include" -DNTIMER -O3 -Wall -std=gnu11 -march=native -mfpmath=both -mfma4 -mtune=intel -I"C:/swarm/workspace/External-R-3.5.0/vendor/extsoft/include" -I"C:/local/Libs/boost_1_67_0/boost" -I"C:/local/Libs/boost_1_67_0/" -I"C:/local/Libs/boost_1_67_0/tools/build/src/engine" -I"C:/tmp/res/x64/include" -I"C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/include" -I"" -O3 -Wall -std=gnu11 -march=native -mfpmath=both -mfma4 -mtune=intel -c SuiteSparse_config.c -o SuiteSparse_config.o
C:/mingw/mingw64/bin/ar -rucs ../SuiteSparse_config.a SuiteSparse_config.o
make[1]: Leaving directory `/tmp/RtmpS4xijq/R.INSTALL3228c0c6ea9/Matrix/src/SuiteSparse_config'
c:\mingw\mingw64\bin\nm.exe: 'sublibs': No such file
C:/mingw/mingw64/bin/gcc -m64 -shared -s -static-libgcc -o Matrix.dll tmp.def CHMfactor.o Csparse.o TMatrix_as.o Tsparse.o init.o Mutils.o chm_common.o cs.o cs_utils.o dense.o dgCMatrix.o dgTMatrix.o dgeMatrix.o dpoMatrix.o dppMatrix.o dsCMatrix.o dsyMatrix.o dspMatrix.o dtCMatrix.o dtTMatrix.o dtrMatrix.o dtpMatrix.o factorizations.o ldense.o lgCMatrix.o sparseQR.o abIndex.o -L -LC:/swarm/workspace/External-R-3.5.0/vendor/extsoft/lib/x64 -LC:/swarm/workspace/External-R-3.5.0/vendor/extsoft/lib -LC:/tmp/res/x64/lib -lnlopt -lm -LC:/PROGRA~1/MICROS~2/ROPEN~1/R-35~1.0/bin/x64 -lR -lRblas -lRlapack
CHMfactor.o:CHMfactor.c:(.text+0x40): undefined reference to `cholmod_copy_factor'
CHMfactor.o:CHMfactor.c:(.text+0x80): undefined reference to `cholmod_change_factor'
CHMfactor.o:CHMfactor.c:(.text+0x97): undefined reference to `cholmod_factor_to_sparse'
CHMfactor.o:CHMfactor.c:(.text+0xaa): undefined reference to `cholmod_free_factor'

I think that the problem is connected with c:\mingw\mingw64\bin\nm.exe: 'sublibs': No such file.
How does it possible to correct this problem manually?

I have minGW gcc 8.1.0 + MSYS 1.0.11.

Thnxs.

Comments:

Message  ↓
Date: 2022-01-05 10:50
Sender: Martin Maechler

No longer relevant if ever it was a problem.
On Windows, you must use the correct Rtools (that belong to the version of R you use).

Attached Files:

Changes

Field Old Value Date By
status_idOpen2022-01-05 10:50mmaechler
close_dateNone2022-01-05 10:50mmaechler
Thanks to:
Vienna University of Economics and Business Powered By FusionForge