gonum / blas

A BLAS implementation for Go [DEPRECATED]
172 stars 16 forks source link

undefined reference to ’cblas_*’ in function ‘_cgo_*’ #209

Closed xiajohnnyxia closed 7 years ago

xiajohnnyxia commented 7 years ago

When I gone to run the test '/src/github.com/gonum/blas/cgo/level*double_test.go',I get all the same errors as follow:

/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_cgbmv’:
./cgo-gcc-prolog:132:to ‘cblas_cgbmv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_cgemm’:
./cgo-gcc-prolog:160:to ‘cblas_cgemm’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_cgemv’:
./cgo-gcc-prolog:186:to ‘cblas_cgemv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_cgerc’:
./cgo-gcc-prolog:211:to ‘cblas_cgerc’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_cgeru’:
./cgo-gcc-prolog:236:to ‘cblas_cgeru’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_chbmv’:
./cgo-gcc-prolog:262:to ‘cblas_chbmv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_chemm’:
./cgo-gcc-prolog:290:to ‘cblas_chemm’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_chemv’:
./cgo-gcc-prolog:316:to ‘cblas_chemv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_cher’:
./cgo-gcc-prolog:337:to ‘cblas_cher’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_cher2’:
./cgo-gcc-prolog:362:to ‘cblas_cher2’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_cher2k’:
./cgo-gcc-prolog:389:to ‘cblas_cher2k’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_cherk’:
./cgo-gcc-prolog:412:to ‘cblas_cherk’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_chpmv’:
./cgo-gcc-prolog:436:to ‘cblas_chpmv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_chpr2’:
./cgo-gcc-prolog:478:to ‘cblas_chpr2’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_csymm’:
./cgo-gcc-prolog:558:to ‘cblas_csymm’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_csyr2k’:
./cgo-gcc-prolog:586:to ‘cblas_csyr2k’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_csyrk’:
./cgo-gcc-prolog:611:to ‘cblas_csyrk’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_ctbmv’:
./cgo-gcc-prolog:634:to ‘cblas_ctbmv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_ctbsv’:
./cgo-gcc-prolog:657:to ‘cblas_ctbsv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_ctpmv’:
./cgo-gcc-prolog:678:to ‘cblas_ctpmv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_ctpsv’:
./cgo-gcc-prolog:699:to ‘cblas_ctpsv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_ctrmm’:
./cgo-gcc-prolog:725:to ‘cblas_ctrmm’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_ctrmv’:
./cgo-gcc-prolog:748:to ‘cblas_ctrmv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_ctrsm’:
./cgo-gcc-prolog:774:to ‘cblas_ctrsm’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_ctrsv’:
./cgo-gcc-prolog:797:to ‘cblas_ctrsv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dasum’:
./cgo-gcc-prolog:816:to ‘cblas_dasum’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_ddot’:
./cgo-gcc-prolog:879:to ‘cblas_ddot’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dgbmv’:
./cgo-gcc-prolog:909:to ‘cblas_dgbmv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dgemm’:
./cgo-gcc-prolog:937:to ‘cblas_dgemm’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dgemv’:
./cgo-gcc-prolog:963:to ‘cblas_dgemv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dger’:
./cgo-gcc-prolog:988:to ‘cblas_dger’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dnrm2’:
./cgo-gcc-prolog:1007:to ‘cblas_dnrm2’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dsbmv’:
./cgo-gcc-prolog:1107:to ‘cblas_dsbmv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dsdot’:
./cgo-gcc-prolog:1146:to ‘cblas_dsdot’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dspmv’:
./cgo-gcc-prolog:1172:to ‘cblas_dspmv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dspr2’:
./cgo-gcc-prolog:1215:to ‘cblas_dspr2’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dsymm’:
./cgo-gcc-prolog:1262:to ‘cblas_dsymm’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dsymv’:
./cgo-gcc-prolog:1288:to ‘cblas_dsymv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dsyr’:
./cgo-gcc-prolog:1310:to ‘cblas_dsyr’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dsyr2’:
./cgo-gcc-prolog:1335:to ‘cblas_dsyr2’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dsyr2k’:
./cgo-gcc-prolog:1363:to ‘cblas_dsyr2k’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dsyrk’:
./cgo-gcc-prolog:1388:to ‘cblas_dsyrk’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dtbmv’:
./cgo-gcc-prolog:1411:to ‘cblas_dtbmv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dtbsv’:
./cgo-gcc-prolog:1434:to ‘cblas_dtbsv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dtpmv’:
./cgo-gcc-prolog:1455:to ‘cblas_dtpmv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dtpsv’:
./cgo-gcc-prolog:1476:to ‘cblas_dtpsv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dtrmm’:
./cgo-gcc-prolog:1502:to ‘cblas_dtrmm’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dtrmv’:
./cgo-gcc-prolog:1525:to ‘cblas_dtrmv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dtrsm’:
./cgo-gcc-prolog:1551:to ‘cblas_dtrsm’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dtrsv’:
./cgo-gcc-prolog:1574:to ‘cblas_dtrsv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dzasum’:
./cgo-gcc-prolog:1593:to ‘cblas_dzasum’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dznrm2’:
./cgo-gcc-prolog:1614:to ‘cblas_dznrm2’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_icamax’:
./cgo-gcc-prolog:1636:to ‘cblas_icamax’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_idamax’:
./cgo-gcc-prolog:1658:to ‘cblas_idamax’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_isamax’:
./cgo-gcc-prolog:1680:to ‘cblas_isamax’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_izamax’:
./cgo-gcc-prolog:1702:to ‘cblas_izamax’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_sasum’:
./cgo-gcc-prolog:1724:to ‘cblas_sasum’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_scasum’:
./cgo-gcc-prolog:1765:to ‘cblas_scasum’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_scnrm2’:
./cgo-gcc-prolog:1787:to ‘cblas_scnrm2’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_sdot’:
./cgo-gcc-prolog:1831:to ‘cblas_sdot’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_sdsdot’:
./cgo-gcc-prolog:1856:to ‘cblas_sdsdot’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_sgbmv’:
./cgo-gcc-prolog:1886:to ‘cblas_sgbmv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_sgemm’:
./cgo-gcc-prolog:1914:to ‘cblas_sgemm’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_sgemv’:
./cgo-gcc-prolog:1940:to ‘cblas_sgemv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_sger’:
./cgo-gcc-prolog:1964:to ‘cblas_sger’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_snrm2’:
./cgo-gcc-prolog:1984:to ‘cblas_snrm2’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_ssbmv’:
./cgo-gcc-prolog:2085:to ‘cblas_ssbmv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_sspmv’:
./cgo-gcc-prolog:2123:to ‘cblas_sspmv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_sspr2’:
./cgo-gcc-prolog:2164:to ‘cblas_sspr2’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_ssymm’:
./cgo-gcc-prolog:2209:to ‘cblas_ssymm’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_ssymv’:
./cgo-gcc-prolog:2233:to ‘cblas_ssymv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_ssyr’:
./cgo-gcc-prolog:2254:to ‘cblas_ssyr’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_ssyr2’:
./cgo-gcc-prolog:2278:to ‘cblas_ssyr2’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_ssyr2k’:
./cgo-gcc-prolog:2304:to ‘cblas_ssyr2k’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_ssyrk’:
./cgo-gcc-prolog:2327:to ‘cblas_ssyrk’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_stbmv’:
./cgo-gcc-prolog:2350:to ‘cblas_stbmv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_stbsv’:
./cgo-gcc-prolog:2373:to ‘cblas_stbsv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_stpmv’:
./cgo-gcc-prolog:2394:to ‘cblas_stpmv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_stpsv’:
./cgo-gcc-prolog:2415:to ‘cblas_stpsv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_strmm’:
./cgo-gcc-prolog:2440:to ‘cblas_strmm’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_strmv’:
./cgo-gcc-prolog:2463:to ‘cblas_strmv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_strsm’:
./cgo-gcc-prolog:2488:to ‘cblas_strsm’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_strsv’:
./cgo-gcc-prolog:2511:to ‘cblas_strsv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_zgbmv’:
./cgo-gcc-prolog:2635:to ‘cblas_zgbmv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_zgemm’:
./cgo-gcc-prolog:2663:to ‘cblas_zgemm’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_zgemv’:
./cgo-gcc-prolog:2689:to ‘cblas_zgemv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_zgerc’:
./cgo-gcc-prolog:2714:to ‘cblas_zgerc’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_zgeru’:
./cgo-gcc-prolog:2739:to ‘cblas_zgeru’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_zhbmv’:
./cgo-gcc-prolog:2765:to ‘cblas_zhbmv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_zhemm’:
./cgo-gcc-prolog:2793:to ‘cblas_zhemm’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_zhemv’:
./cgo-gcc-prolog:2819:to ‘cblas_zhemv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_zher’:
./cgo-gcc-prolog:2841:to ‘cblas_zher’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_zher2’:
./cgo-gcc-prolog:2866:to ‘cblas_zher2’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_zher2k’:
./cgo-gcc-prolog:2894:to ‘cblas_zher2k’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_zherk’:
./cgo-gcc-prolog:2919:to ‘cblas_zherk’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_zhpmv’:
./cgo-gcc-prolog:2943:to ‘cblas_zhpmv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_zhpr2’:
./cgo-gcc-prolog:2986:to ‘cblas_zhpr2’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_zsymm’:
./cgo-gcc-prolog:3050:to ‘cblas_zsymm’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_zsyr2k’:
./cgo-gcc-prolog:3078:to ‘cblas_zsyr2k’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_zsyrk’:
./cgo-gcc-prolog:3103:to ‘cblas_zsyrk’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_ztbmv’:
./cgo-gcc-prolog:3126:to ‘cblas_ztbmv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_ztbsv’:
./cgo-gcc-prolog:3149:to ‘cblas_ztbsv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_ztpmv’:
./cgo-gcc-prolog:3170:to ‘cblas_ztpmv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_ztpsv’:
./cgo-gcc-prolog:3191:to ‘cblas_ztpsv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_ztrmm’:
./cgo-gcc-prolog:3217:to ‘cblas_ztrmm’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_ztrmv’:
./cgo-gcc-prolog:3240:to ‘cblas_ztrmv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_ztrsm’:
./cgo-gcc-prolog:3266:to ‘cblas_ztrsm’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_ztrsv’:
./cgo-gcc-prolog:3289:to ‘cblas_ztrsv’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_caxpy’:
./cgo-gcc-prolog:45:to ‘cblas_caxpy’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_ccopy’:
./cgo-gcc-prolog:64:to ‘cblas_ccopy’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_cdotc_sub’:
./cgo-gcc-prolog:84:to ‘cblas_cdotc_sub’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_cdotu_sub’:
./cgo-gcc-prolog:104:to ‘cblas_cdotu_sub’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_chpr’:
./cgo-gcc-prolog:455:to ‘cblas_chpr’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_cscal’:
./cgo-gcc-prolog:495:to ‘cblas_cscal’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_csscal’:
./cgo-gcc-prolog:511:to ‘cblas_csscal’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_cswap’:
./cgo-gcc-prolog:530:to ‘cblas_cswap’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_daxpy’:
./cgo-gcc-prolog:838:to ‘cblas_daxpy’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dcopy’:
./cgo-gcc-prolog:857:to ‘cblas_dcopy’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_drot’:
./cgo-gcc-prolog:1030:to ‘cblas_drot’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_drotg’:
./cgo-gcc-prolog:1045:to ‘cblas_drotg’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_drotm’:
./cgo-gcc-prolog:1065:to ‘cblas_drotm’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_drotmg’:
./cgo-gcc-prolog:1081:to ‘cblas_drotmg’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dscal’:
./cgo-gcc-prolog:1124:to ‘cblas_dscal’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dspr’:
./cgo-gcc-prolog:1192:to ‘cblas_dspr’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_dswap’:
./cgo-gcc-prolog:1234:to ‘cblas_dswap’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_saxpy’:
./cgo-gcc-prolog:1745:to ‘cblas_saxpy’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_scopy’:
./cgo-gcc-prolog:1808:to ‘cblas_scopy’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_srot’:
./cgo-gcc-prolog:2007:to ‘cblas_srot’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_srotg’:
./cgo-gcc-prolog:2022:to ‘cblas_srotg’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_srotm’:
./cgo-gcc-prolog:2042:to ‘cblas_srotm’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_srotmg’:
./cgo-gcc-prolog:2059:to ‘cblas_srotmg’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_sscal’:
./cgo-gcc-prolog:2101:to ‘cblas_sscal’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_sspr’:
./cgo-gcc-prolog:2142:to ‘cblas_sspr’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_sswap’:
./cgo-gcc-prolog:2183:to ‘cblas_sswap’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_zaxpy’:
./cgo-gcc-prolog:2531:to ‘cblas_zaxpy’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_zcopy’:
./cgo-gcc-prolog:2550:to ‘cblas_zcopy’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_zdotc_sub’:
./cgo-gcc-prolog:2570:to ‘cblas_zdotc_sub’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_zdotu_sub’:
./cgo-gcc-prolog:2590:to ‘cblas_zdotu_sub’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_zdscal’:
./cgo-gcc-prolog:2607:to ‘cblas_zdscal’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_zhpr’:
./cgo-gcc-prolog:2963:to ‘cblas_zhpr’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_zscal’:
./cgo-gcc-prolog:3003:to ‘cblas_zscal’ undefined reference
/tmp/go-build527236923/github.com/gonum/blas/cgo/_test/_obj_test/blas.cgo2.o: in function ‘_cgo_42fd92bc8ecb_Cfunc_cblas_zswap’:
./cgo-gcc-prolog:3022:to ‘cblas_zswap’ undefined reference
collect2: error: ld returned 1 exit status

I have installed the openBLAS.What's wrong with it?

kortschak commented 7 years ago

This package is deprecated in favour of the equivalents in gonum/gonum. Are you able to reproduce the problem using that package.

Hint though, you need to do something like this CCGO_LDFLAGS="-L/usr/local -lopenblas" go test, but why are you wanting the cblas implementation? (take this discussion to gonum/gonum).

xiajohnnyxia commented 7 years ago

Oh ,sorry it's my bad.I'm a newbie of blas's user.Thank you for your help.It's work.