current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/nmatrix-lapacke-0.2.3/ext/nmatrix_lapacke C:/Ruby24-x64/bin/ruby.exe -r ./siteconf20171122-8452-11x2sl8.rb extconf.rb using C++ standard... c++11 g++ reports version... Built checking for rb_array_const_ptr() in ruby.h... yes checking for FIX_CONST_VALUE_PTR in ruby.h... yes checking for RARRAY_CONST_PTR in ruby.h... yes checking for RARRAY_AREF in ruby.h... yes checking for -llapack... yes creating nmatrix_lapacke_config.h creating Makefile current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/nmatrix-lapacke-0.2.3/ext/nmatrix_lapacke make "DESTDIR=" clean current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/nmatrix-lapacke-0.2.3/ext/nmatrix_lapacke make "DESTDIR=" generating nmatrix_lapacke-x64-mingw32.def compiling nmatrix_lapacke.cpp compiling math_lapacke.cpp compiling lapacke.cpp linking shared-object nmatrix_lapacke.so math_lapacke.o:math_lapacke.cpp:(.text+0xd2): undefined reference to `rubyval_to_cval' math_lapacke.o:math_lapacke.cpp:(.text+0xe0): undefined reference to `rubyval_to_cval' math_lapacke.o:math_lapacke.cpp:(.text+0x15f): undefined reference to `rubyval_to_cval' math_lapacke.o:math_lapacke.cpp:(.text+0x170): undefined reference to `rubyval_to_cval' math_lapacke.o:math_lapacke.cpp:(.text+0x19f): undefined reference to `rubyval_to_cval' math_lapacke.o:math_lapacke.cpp:(.text+0x1b0): more undefined references to `rubyval_to_cval' follow math_lapacke.o:math_lapacke.cpp:(.text+0x41c): undefined reference to `cblas_zgemv' math_lapacke.o:math_lapacke.cpp:(.text+0x49c): undefined reference to `cblas_cgemv' math_lapacke.o:math_lapacke.cpp:(.text+0x527): undefined reference to `cblas_dgemv' math_lapacke.o:math_lapacke.cpp:(.text+0x5b7): undefined reference to `cblas_sgemv' math_lapacke.o:math_lapacke.cpp:(.text+0x669): undefined reference to `nm::rubyobj_from_cval(void*, nm::dtype_t)' math_lapacke.o:math_lapacke.cpp:(.text+0x685): undefined reference to `nm::rubyobj_from_cval(void*, nm::dtype_t)' math_lapacke.o:math_lapacke.cpp:(.text+0x770): undefined reference to `nm::rubyobj_from_cval(void*, nm::dtype_t)' math_lapacke.o:math_lapacke.cpp:(.text+0x816): undefined reference to `nm::rubyobj_from_cval(void*, nm::dtype_t)' math_lapacke.o:math_lapacke.cpp:(.text+0x8ea): undefined reference to `rubyval_to_cval' math_lapacke.o:math_lapacke.cpp:(.text+0x8fb): undefined reference to `rubyval_to_cval' math_lapacke.o:math_lapacke.cpp:(.text+0x20af): undefined reference to `rubyval_to_cval' math_lapacke.o:math_lapacke.cpp:(.text+0x20c1): undefined reference to `rubyval_to_cval' math_lapacke.o:math_lapacke.cpp:(.text+0x24cb): undefined reference to `rubyval_to_cval' math_lapacke.o:math_lapacke.cpp:(.text+0x24dd): more undefined references to `rubyval_to_cval' follow math_lapacke.o:math_lapacke.cpp:(.text+0x4e83): undefined reference to `cblas_zherk' math_lapacke.o:math_lapacke.cpp:(.text+0x5157): undefined reference to `cblas_cherk' math_lapacke.o:math_lapacke.cpp:(.text+0x26f): undefined reference to `cblas_dsyrk' math_lapacke.o:math_lapacke.cpp:(.text+0x29f): undefined reference to `cblas_ssyrk' math_lapacke.o:math_lapacke.cpp:(.text+0x2c0): undefined reference to `cblas_dtrmm' math_lapacke.o:math_lapacke.cpp:(.text+0x2e0): undefined reference to `cblas_strmm' math_lapacke.o:math_lapacke.cpp:(.text+0x300): undefined reference to `cblas_dtrsm' math_lapacke.o:math_lapacke.cpp:(.text+0x320): undefined reference to `cblas_strsm' math_lapacke.o:math_lapacke.cpp:(.text+0x331): undefined reference to `cblas_zgemm' math_lapacke.o:math_lapacke.cpp:(.text+0x341): undefined reference to `cblas_cgemm' math_lapacke.o:math_lapacke.cpp:(.text+0x36f): undefined reference to `cblas_dgemm' math_lapacke.o:math_lapacke.cpp:(.text+0x39f): undefined reference to `cblas_sgemm' math_lapacke.o:math_lapacke.cpp:(.rdata+0xc18): undefined reference to `cblas_csyrk' math_lapacke.o:math_lapacke.cpp:(.rdata+0xc20): undefined reference to `cblas_zsyrk' math_lapacke.o:math_lapacke.cpp:(.rdata+0xc78): undefined reference to `cblas_ctrmm' math_lapacke.o:math_lapacke.cpp:(.rdata+0xc80): undefined reference to `cblas_ztrmm' math_lapacke.o:math_lapacke.cpp:(.rdata+0xcd8): undefined reference to `cblas_ctrsm' math_lapacke.o:math_lapacke.cpp:(.rdata+0xce0): undefined reference to `cblas_ztrsm' math_lapacke.o:math_lapacke.cpp:(.text$_ZN2nm4math7lapacke10cblas_imaxINS_7ComplexIdEEEEiiPKvi[_ZN2nm4math7lapacke10cblas_imaxINS_7ComplexIdEEEEiiPKvi]+0x5): undefined reference to `cblas_izamax' math_lapacke.o:math_lapacke.cpp:(.text$_ZN2nm4math7lapacke10cblas_imaxINS_7ComplexIfEEEEiiPKvi[_ZN2nm4math7lapacke10cblas_imaxINS_7ComplexIfEEEEiiPKvi]+0x5): undefined reference to `cblas_icamax' math_lapacke.o:math_lapacke.cpp:(.text$_ZN2nm4math7lapacke10cblas_imaxIdEEiiPKvi[_ZN2nm4math7lapacke10cblas_imaxIdEEiiPKvi]+0x5): undefined reference to `cblas_idamax' math_lapacke.o:math_lapacke.cpp:(.text$_ZN2nm4math7lapacke10cblas_imaxIfEEiiPKvi[_ZN2nm4math7lapacke10cblas_imaxIfEEiiPKvi]+0x5): undefined reference to `cblas_isamax' math_lapacke.o:math_lapacke.cpp:(.text$_ZN2nm4math7lapacke10cblas_rotgIdEEvPvS3_S3_S3_[_ZN2nm4math7lapacke10cblas_rotgIdEEvPvS3_S3_S3_]+0x1): undefined reference to `cblas_drotg' math_lapacke.o:math_lapacke.cpp:(.text$_ZN2nm4math7lapacke10cblas_rotgIfEEvPvS3_S3_S3_[_ZN2nm4math7lapacke10cblas_rotgIfEEvPvS3_S3_S3_]+0x1): undefined reference to `cblas_srotg' math_lapacke.o:math_lapacke.cpp:(.text$_ZN2nm4math7lapacke9cblas_rotIddEEviPviS3_iPKvS5_[_ZN2nm4math7lapacke9cblas_rotIddEEviPviS3_iPKvS5_]+0x1f): undefined reference to `cblas_drot' math_lapacke.o:math_lapacke.cpp:(.text$_ZN2nm4math7lapacke9cblas_rotIffEEviPviS3_iPKvS5_[_ZN2nm4math7lapacke9cblas_rotIffEEviPviS3_iPKvS5_]+0x1f): undefined reference to `cblas_srot' math_lapacke.o:math_lapacke.cpp:(.text$_ZN2nm4math7lapacke10cblas_asumINS_7ComplexIdEEdEEviPKviPv[_ZN2nm4math7lapacke10cblas_asumINS_7ComplexIdEEdEEviPKviPv]+0x9): undefined reference to `cblas_dzasum' math_lapacke.o:math_lapacke.cpp:(.text$_ZN2nm4math7lapacke10cblas_asumINS_7ComplexIfEEfEEviPKviPv[_ZN2nm4math7lapacke10cblas_asumINS_7ComplexIfEEfEEviPKviPv]+0x9): undefined reference to `cblas_scasum' math_lapacke.o:math_lapacke.cpp:(.text$_ZN2nm4math7lapacke10cblas_asumIddEEviPKviPv[_ZN2nm4math7lapacke10cblas_asumIddEEviPKviPv]+0x9): undefined reference to `cblas_dasum' math_lapacke.o:math_lapacke.cpp:(.text$_ZN2nm4math7lapacke10cblas_asumIffEEviPKviPv[_ZN2nm4math7lapacke10cblas_asumIffEEviPKviPv]+0x9): undefined reference to `cblas_sasum' math_lapacke.o:math_lapacke.cpp:(.text$_ZN2nm4math7lapacke10cblas_nrm2INS_7ComplexIdEEdEEviPKviPv[_ZN2nm4math7lapacke10cblas_nrm2INS_7ComplexIdEEdEEviPKviPv]+0x9): undefined reference to `cblas_dznrm2' math_lapacke.o:math_lapacke.cpp:(.text$_ZN2nm4math7lapacke10cblas_nrm2INS_7ComplexIfEEfEEviPKviPv[_ZN2nm4math7lapacke10cblas_nrm2INS_7ComplexIfEEfEEviPKviPv]+0x9): undefined reference to `cblas_scnrm2' math_lapacke.o:math_lapacke.cpp:(.text$_ZN2nm4math7lapacke10cblas_nrm2IddEEviPKviPv[_ZN2nm4math7lapacke10cblas_nrm2IddEEviPKviPv]+0x9): undefined reference to `cblas_dnrm2' math_lapacke.o:math_lapacke.cpp:(.text$_ZN2nm4math7lapacke10cblas_nrm2IffEEviPKviPv[_ZN2nm4math7lapacke10cblas_nrm2IffEEviPKviPv]+0x9): undefined reference to `cblas_snrm2' math_lapacke.o:math_lapacke.cpp:(.text$_ZN2nm4math7lapacke10cblas_scalINS_7ComplexIdEEEEviPKvPvi[_ZN2nm4math7lapacke10cblas_scalINS_7ComplexIdEEEEviPKvPvi]+0x1b): undefined reference to `cblas_zscal' math_lapacke.o:math_lapacke.cpp:(.text$_ZN2nm4math7lapacke10cblas_scalINS_7ComplexIfEEEEviPKvPvi[_ZN2nm4math7lapacke10cblas_scalINS_7ComplexIfEEEEviPKvPvi]+0x12): undefined reference to `cblas_cscal' math_lapacke.o:math_lapacke.cpp:(.text$_ZN2nm4math7lapacke10cblas_scalIdEEviPKvPvi[_ZN2nm4math7lapacke10cblas_scalIdEEviPKvPvi]+0x5): undefined reference to `cblas_dscal' math_lapacke.o:math_lapacke.cpp:(.text$_ZN2nm4math7lapacke10cblas_scalIfEEviPKvPvi[_ZN2nm4math7lapacke10cblas_scalIfEEviPKvPvi]+0x5): undefined reference to `cblas_sscal' math_lapacke.o:math_lapacke.cpp:(.rdata$.refptr.nm_rb_div[.refptr.nm_rb_div]+0x0): undefined reference to `nm_rb_div' math_lapacke.o:math_lapacke.cpp:(.rdata$.refptr.nm_rb_lt[.refptr.nm_rb_lt]+0x0): undefined reference to `nm_rb_lt' math_lapacke.o:math_lapacke.cpp:(.rdata$.refptr.cNMatrix[.refptr.cNMatrix]+0x0): undefined reference to `cNMatrix' math_lapacke.o:math_lapacke.cpp:(.rdata$.refptr.nm_rb_eql[.refptr.nm_rb_eql]+0x0): undefined reference to `nm_rb_eql' math_lapacke.o:math_lapacke.cpp:(.rdata$.refptr.nm_rb_unit[.refptr.nm_rb_unit]+0x0): undefined reference to `nm_rb_unit' math_lapacke.o:math_lapacke.cpp:(.rdata$.refptr.nm_rb_right[.refptr.nm_rb_right]+0x0): undefined reference to `nm_rb_right' math_lapacke.o:math_lapacke.cpp:(.rdata$.refptr.nm_rb_left[.refptr.nm_rb_left]+0x0): undefined reference to `nm_rb_left' math_lapacke.o:math_lapacke.cpp:(.rdata$.refptr.nm_rb_lower[.refptr.nm_rb_lower]+0x0): undefined reference to `nm_rb_lower' math_lapacke.o:math_lapacke.cpp:(.rdata$.refptr.nm_rb_upper[.refptr.nm_rb_upper]+0x0): undefined reference to `nm_rb_upper' math_lapacke.o:math_lapacke.cpp:(.rdata$.refptr.nm_rb_complex_conjugate[.refptr.nm_rb_complex_conjugate]+0x0): undefined reference to `nm_rb_complex_conjugate' math_lapacke.o:math_lapacke.cpp:(.rdata$.refptr.nm_rb_transpose[.refptr.nm_rb_transpose]+0x0): undefined reference to `nm_rb_transpose' math_lapacke.o:math_lapacke.cpp:(.rdata$.refptr.nm_rb_no_transpose[.refptr.nm_rb_no_transpose]+0x0): undefined reference to `nm_rb_no_transpose' math_lapacke.o:math_lapacke.cpp:(.rdata$.refptr.nm_rb_gt[.refptr.nm_rb_gt]+0x0): undefined reference to `nm_rb_gt' math_lapacke.o:math_lapacke.cpp:(.rdata$.refptr.nm_rb_sub[.refptr.nm_rb_sub]+0x0): undefined reference to `nm_rb_sub' math_lapacke.o:math_lapacke.cpp:(.rdata$.refptr.nm_rb_add[.refptr.nm_rb_add]+0x0): undefined reference to `nm_rb_add' math_lapacke.o:math_lapacke.cpp:(.rdata$.refptr.nm_rb_neql[.refptr.nm_rb_neql]+0x0): undefined reference to `nm_rb_neql' math_lapacke.o:math_lapacke.cpp:(.rdata$.refptr.nm_rb_mul[.refptr.nm_rb_mul]+0x0): undefined reference to `nm_rb_mul' math_lapacke.o:math_lapacke.cpp:(.rdata$.refptr.DTYPE_SIZES[.refptr.DTYPE_SIZES]+0x0): undefined reference to `DTYPE_SIZES' math_lapacke.o:math_lapacke.cpp:(.rdata$.refptr.nm_eDataTypeError[.refptr.nm_eDataTypeError]+0x0): undefined reference to `nm_eDataTypeError' collect2.exe: error: ld returned 1 exit status make: *** [Makefile:259: nmatrix_lapacke.so] Error 1 make failed, exit code 2