Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various fixes and improvements #54

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

dzenanz
Copy link
Contributor

@dzenanz dzenanz commented Dec 14, 2021

The error was:

CMake Error at C:/Libs/xtl-vs19/xtlConfig.cmake:26 (message):
  File or directory C://include referenced by variable
  xtensor_zarr_INCLUDE_DIRS does not exist !
Call Stack (most recent call first):
  C:/Libs/xtensor-zarr-vs19/xtensor-zarrConfig.cmake:49 (set_and_check)
  CMakeLists.txt:6 (find_package)

@dzenanz dzenanz changed the title Allow the library to be used from build directory Various fixes and improvements Dec 23, 2021
This was referenced Dec 23, 2021
@dzenanz
Copy link
Contributor Author

dzenanz commented Jan 17, 2022

@JohanMabille or @davidbrochart, can you comment on CI failure?

/usr/share/miniconda/envs/xtensor-zarr/bin/../lib/gcc/x86_64-conda-linux-gnu/11.2.0/../../../../x86_64-conda-linux-gnu/bin/ld: warning: libnsl.so.1, needed by /usr/share/miniconda/envs/xtensor-zarr/lib/libxerces-c-3.2.so, not found (try using -rpath or -rpath-link)
/usr/share/miniconda/envs/xtensor-zarr/bin/../lib/gcc/x86_64-conda-linux-gnu/11.2.0/../../../../x86_64-conda-linux-gnu/bin/ld: /usr/share/miniconda/envs/xtensor-zarr/lib/libpq.so.5: undefined reference to `memcpy@GLIBC_2.14'
collect2: error: ld returned 1 exit status
test/CMakeFiles/test_xtensor_zarr.dir/build.make:198: recipe for target 'test/test_xtensor_zarr' failed

I have different test failures in a local build:

[==========] Running 12 tests from 2 test suites.
[----------] Global test environment set-up.
[----------] 10 tests from xzarr_hierarchy
[ RUN      ] xzarr_hierarchy.read_v2
unknown file: error: C++ exception with description "Unkown compressor type: gzip" thrown in the test body.
[  FAILED  ] xzarr_hierarchy.read_v2 (5 ms)
[ RUN      ] xzarr_hierarchy.read_array
[       OK ] xzarr_hierarchy.read_array (8 ms)
[ RUN      ] xzarr_hierarchy.write_array
unknown file: error: C++ exception with description "Unkown compressor type: gzip" thrown in the test body.
[  FAILED  ] xzarr_hierarchy.write_array (4 ms)
[ RUN      ] xzarr_hierarchy.create_group
[       OK ] xzarr_hierarchy.create_group (4 ms)
[ RUN      ] xzarr_hierarchy.create_node
[       OK ] xzarr_hierarchy.create_node (7 ms)
[ RUN      ] xzarr_hierarchy.explore
C:\Libs\xtensor-zarr\test\test_zarr.cpp(112): error: Expected equality of these values:
  nodes
    Which is: "{\"arthur\\\\dent\":\"array\",\"marvin\":\"explicit_group\",\"marvin\\\\android\":\"array\",\"marvin\\\\paranoid\":\"explicit_group\",\"tricia\\\\mcmillan\":\"explicit_group\"}"
  "{\"arthur\":\"implicit_group\",\"arthur/dent\":\"array\",\"marvin\":\"explicit_group\",\"marvin/android\":\"array\",\"marvin/paranoid\":\"explicit_group\",\"tricia\":\"implicit_group\",\"tricia/mcmillan\":\"explicit_group\"}"
[  FAILED  ] xzarr_hierarchy.explore (7 ms)
[ RUN      ] xzarr_hierarchy.store_erase
unknown file: error: C++ exception with description "The process cannot access the file because it is being used by another process.
: 'store1\key1'" thrown in the test body.
[  FAILED  ] xzarr_hierarchy.store_erase (4 ms)
[ RUN      ] xzarr_hierarchy.store_erase_prefix
[       OK ] xzarr_hierarchy.store_erase_prefix (12 ms)
[ RUN      ] xzarr_hierarchy.write_v2
unknown file: error: C++ exception with description "Unkown compressor type: gzip" thrown in the test body.
[  FAILED  ] xzarr_hierarchy.write_v2 (3 ms)
[ RUN      ] xzarr_hierarchy.array_default_params
[       OK ] xzarr_hierarchy.array_default_params (2 ms)
[----------] 10 tests from xzarr_hierarchy (64 ms total)

[----------] 2 tests from gdal
[ RUN      ] gdal.write_read_v2_array_gdal
unknown file: error: C++ exception with description "Unkown compressor type: gzip" thrown in the test body.
[  FAILED  ] gdal.write_read_v2_array_gdal (3 ms)
[ RUN      ] gdal.write_read_v3_array_gdal
unknown file: error: C++ exception with description "Unkown compressor type: gzip" thrown in the test body.
[  FAILED  ] gdal.write_read_v3_array_gdal (2 ms)
[----------] 2 tests from gdal (6 ms total)

[----------] Global test environment tear-down
[==========] 12 tests from 2 test suites ran. (72 ms total)
[  PASSED  ] 5 tests.
[  FAILED  ] 7 tests, listed below:
[  FAILED  ] xzarr_hierarchy.read_v2
[  FAILED  ] xzarr_hierarchy.write_array
[  FAILED  ] xzarr_hierarchy.explore
[  FAILED  ] xzarr_hierarchy.store_erase
[  FAILED  ] xzarr_hierarchy.write_v2
[  FAILED  ] gdal.write_read_v2_array_gdal
[  FAILED  ] gdal.write_read_v3_array_gdal

 7 FAILED TESTS

C:\Libs\xtensor-zarr-vs19\test\Debug\test_xtensor_zarr.exe (process 40980) exited with code 1.

I am stuck on pretty basic stuff, so help is greatly appreciated.

@dzenanz dzenanz force-pushed the master branch 3 times, most recently from e0cb3ea to f0f1e9f Compare January 17, 2022 22:45
@dzenanz
Copy link
Contributor Author

dzenanz commented Jan 17, 2022

==> Removing Homebrew installation...
/usr/local/share/info/dir: Permission denied
/usr/local/share/info/dir: Permission denied
...
/usr/local/share/info/dir: Permission denied

This seems to be a waste of time.

@@ -12,6 +12,9 @@ jobs:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH

- bash: sudo apt-get install libxerces-c
displayName: Add conda to PATH
Copy link
Member

@JohanMabille JohanMabille Jan 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

Sorry for the late reply. Dependencies should be installed with mamba or added in the environment-dev.yml so be sure they're built with a compatible runtime., instead of relying on the build machine.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried that too, but am not familiar with conda. I can try again.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It turns out my attempt does nothing.

@dzenanz dzenanz force-pushed the master branch 2 times, most recently from 1196935 to 0400b64 Compare January 19, 2022 18:46
The error was:

CMake Error at C:/Libs/xtl-vs19/xtlConfig.cmake:26 (message):
  File or directory C://include referenced by variable
  xtensor_zarr_INCLUDE_DIRS does not exist !
Call Stack (most recent call first):
  C:/Libs/xtensor-zarr-vs19/xtensor-zarrConfig.cmake:49 (set_and_check)
  CMakeLists.txt:6 (find_package)
@litxiaoyao
Copy link

So who has write access to this repository to merge these pull requests ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants