golearn icon indicating copy to clipboard operation
golearn copied to clipboard

Gonum BLAS (cgo) broken in Go 1.6

Open njern opened this issue 10 years ago • 1 comments

I just did a "fresh install" of GoLearn for a project I am working on and noticed that it breaks under Go 1.6 with the following errors:

  • .../src/github.com/sjwhitworth/golearn/ensemble/multisvc_test.go Line 17: - runtime error: cgo argument has Go pointer to Go pointer
  • .../src/github.com/sjwhitworth/golearn/ensemble/multisvc_test.go Line 40: - runtime error: cgo argument has Go pointer to Go pointer
  • .../src/github.com/sjwhitworth/golearn/linear_models/linear_models_test.go Line 21: - runtime error: cgo argument has Go pointer to Go pointer
  • .../src/github.com/sjwhitworth/golearn/meta/one_v_all_test.go Line 29: - runtime error: cgo argument has Go pointer to Go pointer

You can reproduce by running the tests for the project on a machine with Go 1.6 installed.

This has to do with these new restrictions for cgo , introduced in Go 1.6. Other projects have noticed this breaking cgo stuff as well.

Does anyone feel like digging into this? It seems BLAS dependency has spread across the code base since I touched it last.... :cry:

njern avatar Feb 24 '16 18:02 njern

I reproduced same problem in using LinearSVC. I temporize with export GODEBUG=cgocheck=0

yukota avatar May 02 '16 12:05 yukota