hdf5
hdf5 copied to clipboard
update CFLAGS and LDFLAGS to support raspbian
modify cgoflags.go to support raspbian. cgo pkg-config: hdf5 solution does not work with homebrew and ubuntu trusty, though it works on raspbian stretch and ubuntu 18.10.
I will be able to test this in a couple of days.
Apologies for the long delay in getting to this. I think we have too many assumptions about word sizes for this to work as it stands. When I run the tests, we have a fair amount of breakage.
$ GODEBUG=cgocheck=0 go test ./...
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 3063237360:
#000: ../../../src/H5S.c line 1459 in H5Screate_simple(): maxdims is smaller than dims
major: Invalid arguments to routine
minor: Bad value
--- FAIL: TestReadSubset (0.01s)
h5d_dataset_test.go:96: failed to create dataspace
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 3063237360:
#000: ../../../src/H5Shyper.c line 6906 in H5Sselect_hyperslab(): unable to set hyperslab selection
major: Dataspace
minor: Unable to initialize object
#001: ../../../src/H5Shyper.c line 6559 in H5S_select_hyperslab(): hyperslab blocks overlap
major: Invalid arguments to routine
minor: Bad value
--- FAIL: TestSelectHyperslab (0.00s)
h5d_dataset_test.go:189: code -1
--- FAIL: TestSimpleDataspace (0.00s)
h5s_dataspace_test.go:54: failed to create dataspace
--- FAIL: TestArrayDatatype (0.00s)
h5t_types_test.go:89: code -1
--- FAIL: TestStructDatatype (0.00s)
h5t_types_test.go:173: wrong offset: got 8, want 12
h5t_types_test.go:173: wrong offset: got 8, want 12
FAIL
FAIL gonum.org/v1/hdf5 0.680s
--- FAIL: TestCpxCmpd (0.00s)
main_test.go:24: error: exec: "test-go-cpxcmpd": executable file not found in $PATH
FAIL
FAIL gonum.org/v1/hdf5/cmd/test-go-cpxcmpd 0.058s
? gonum.org/v1/hdf5/cmd/test-go-extend-ds [no test files]
? gonum.org/v1/hdf5/cmd/test-go-hdf5 [no test files]
--- FAIL: TestTableRWCmd (0.00s)
main_test.go:25: error: exec: "test-go-table-01": executable file not found in $PATH
FAIL
FAIL gonum.org/v1/hdf5/cmd/test-go-table-01 0.057s
? gonum.org/v1/hdf5/cmd/test-go-table-01-readback [no test files]
--- FAIL: TestEncode (0.00s)
--- FAIL: TestEncode/0 (0.00s)
encoder_test.go:52: encoding error:
got = [1 0 0 0 2 0 0 0 0 0 0 0 3 0 4 0]
want= [1 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 3 0 4 0]
FAIL
FAIL gonum.org/v1/hdf5/cmem 0.024s