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

new package: netcdf 4.7.4 #2060

Closed
wants to merge 17 commits into from
Closed

new package: netcdf 4.7.4 #2060

wants to merge 17 commits into from

Conversation

d70-t
Copy link

@d70-t d70-t commented Jun 26, 2020

Specify library name and version: libnetcdf/4.7

  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the
    conan-center hook activated.

@conan-center-bot
Copy link
Collaborator

Sorry, the build is only launched for Early Access Program users. You can request access writing in this issue.

recipes/netcdf/all/conanfile.py Outdated Show resolved Hide resolved
recipes/netcdf/all/conanfile.py Outdated Show resolved Hide resolved
recipes/netcdf/all/conanfile.py Outdated Show resolved Hide resolved
recipes/netcdf/all/conanfile.py Outdated Show resolved Hide resolved
recipes/netcdf/all/test_package/conanfile.py Outdated Show resolved Hide resolved
recipes/netcdf/all/conanfile.py Show resolved Hide resolved
recipes/netcdf/all/conanfile.py Outdated Show resolved Hide resolved
@conan-center-bot
Copy link
Collaborator

Sorry, the build is only launched for Early Access Program users. You can request access writing in this issue.

1 similar comment
@conan-center-bot
Copy link
Collaborator

Sorry, the build is only launched for Early Access Program users. You can request access writing in this issue.

@conan-center-bot
Copy link
Collaborator

Sorry, the build is only launched for Early Access Program users. You can request access writing in this issue.

2 similar comments
@conan-center-bot
Copy link
Collaborator

Sorry, the build is only launched for Early Access Program users. You can request access writing in this issue.

@conan-center-bot
Copy link
Collaborator

Sorry, the build is only launched for Early Access Program users. You can request access writing in this issue.

@conan-center-bot
Copy link
Collaborator

Sorry, the build is only launched for Early Access Program users. You can request access writing in this issue.

@conan-center-bot
Copy link
Collaborator

Sorry, the build is only launched for Early Access Program users. You can request access writing in this issue.

@d70-t d70-t changed the title new package: netcdf 4.7.0 ... 4.7.4 new package: netcdf 4.7.4 Jun 27, 2020
@d70-t
Copy link
Author

d70-t commented Jun 27, 2020

@uilianries thank you for the review. I think I have updated the PR according to your comments now.

@d70-t d70-t mentioned this pull request Jun 27, 2020
@conan-center-bot
Copy link
Collaborator

Sorry, the build is only launched for Early Access Program users. You can request access writing in this issue.

Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

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

Almost good!

recipes/netcdf/all/conanfile.py Show resolved Hide resolved
Co-authored-by: Uilian Ries <[email protected]>
@conan-center-bot
Copy link
Collaborator

Sorry, the build is only launched for Early Access Program users. You can request access writing in this issue.

@conan-center-bot
Copy link
Collaborator

Some configurations of 'netcdf/4.7.4' failed in build 11 (d5f7120b848182dc611fd41f5511314fb7a340d3):

@d70-t
Copy link
Author

d70-t commented Jul 1, 2020

Hmm, seems that Autotools don't play so well with Windows. There is the possibility to compile netcdf using CMake. I think I'll try that in stead. But I don't have any windows machines available here to test it locally.

@conan-center-bot
Copy link
Collaborator

Some configurations of 'netcdf/4.7.4' failed in build 12 (0ad1a39cf182056a6257744de602a2c4658e5528):

@conan-center-bot
Copy link
Collaborator

Some configurations of 'netcdf/4.7.4' failed in build 13 (023703c8fc37d220b657417fc023105897a1244d):

  • Windows x86_64, Debug, Visual Studio 14, MTd. Options: netcdf:shared-False
    • Hooks errors detected:
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] The conan-center repository doesn't allow Microsoft Visual Studio runtime files. (https://github.com/conan-io/conan-center-index/wiki/Error-Knowledge-Base#KB-H021)
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] Found files:
    • Log download
    • Log error Download
    • Profile
  • Access to all the logs

d70-t added 2 commits July 2, 2020 00:22
The netCDF CMake build system does not use find_package in a way which
is compatible to conan, so a couple of patches have been required to get
the build running.
@conan-center-bot
Copy link
Collaborator

Some configurations of 'netcdf/4.7.4' failed in build 14 (3bcf852b0381218fa4b0bbec4428310ecd741747):

@d70-t
Copy link
Author

d70-t commented Jul 1, 2020

This seems to be an error while building the test_package. I've added the (maybe) relevant section from the logs below.
To me, the test_package does not look very complicated and seems to be alright. I also tested several combinations of options under a fresh Linux image and did not have problems any more.
However I have not much experience in building things on Windows and also no machine available to run the build alone.
Do you have any thoughts about what might be the cause of this error?

netcdf/4.7.4 (test package): Calling build()

----Running------
> cd C:\J\workspace\onan-center-pull-request_PR-2060/14/co_pr_2060_14_0_2/recipes/netcdf/all\test_package\build\26d79e4212ff67274e14435b85e9736506988934 && cmake -G "Visual Studio 14 2015 Win64" -DCONAN_LINK_RUNTIME="/MTd" -DCONAN_IN_LOCAL_CACHE="OFF" -DCONAN_COMPILER="Visual Studio" -DCONAN_COMPILER_VERSION="14" -DCONAN_CXX_FLAGS="/MP1" -DCONAN_C_FLAGS="/MP1" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -Wno-dev C:\J\workspace\onan-center-pull-request_PR-2060/14/co_pr_2060_14_0_2/recipes/netcdf/all\test_package
-----------------
-- Selecting Windows SDK version 10.0.14393.0 to target Windows 10.0.17763.
-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Conan: called by CMake conan helper
-- Conan: Adjusting output directories
-- Conan: Using cmake targets configuration
-- Library netcdf found C:/J/workspace/onan-center-pull-request_PR-2060/14/pr_2060_14_0_2/.conan/data/netcdf/4.7.4/_/_/package/0f5db2d969f1a4f790c8f8646e5d9a62fb1e5705/lib/netcdf.lib
-- Library libhdf5_hl_cpp_D found C:/J/workspace/onan-center-pull-request_PR-2060/14/pr_2060_14_0_2/.conan/data/hdf5/1.12.0/_/_/package/37b1bda3ad7648f50db885a507b76e125a83c955/lib/libhdf5_hl_cpp_D.lib
-- Library libhdf5_hl_D found C:/J/workspace/onan-center-pull-request_PR-2060/14/pr_2060_14_0_2/.conan/data/hdf5/1.12.0/_/_/package/37b1bda3ad7648f50db885a507b76e125a83c955/lib/libhdf5_hl_D.lib
-- Library libhdf5_cpp_D found C:/J/workspace/onan-center-pull-request_PR-2060/14/pr_2060_14_0_2/.conan/data/hdf5/1.12.0/_/_/package/37b1bda3ad7648f50db885a507b76e125a83c955/lib/libhdf5_cpp_D.lib
-- Library libhdf5_D found C:/J/workspace/onan-center-pull-request_PR-2060/14/pr_2060_14_0_2/.conan/data/hdf5/1.12.0/_/_/package/37b1bda3ad7648f50db885a507b76e125a83c955/lib/libhdf5_D.lib
-- Library libcurl found C:/J/workspace/onan-center-pull-request_PR-2060/14/pr_2060_14_0_2/.conan/data/libcurl/7.70.0/_/_/package/a4abe4fc757dbe018c6fe482515019419f706128/lib/libcurl.lib
-- Library zlib found C:/J/workspace/onan-center-pull-request_PR-2060/14/pr_2060_14_0_2/.conan/data/zlib/1.2.11/_/_/package/f27dcd2d5e453cb01f9324a959461903ce8116a0/lib/zlib.lib
-- Library libssld found C:/J/workspace/onan-center-pull-request_PR-2060/14/pr_2060_14_0_2/.conan/data/openssl/1.1.1g/_/_/package/f27dcd2d5e453cb01f9324a959461903ce8116a0/lib/libssld.lib
-- Library libcryptod found C:/J/workspace/onan-center-pull-request_PR-2060/14/pr_2060_14_0_2/.conan/data/openssl/1.1.1g/_/_/package/f27dcd2d5e453cb01f9324a959461903ce8116a0/lib/libcryptod.lib
-- Conan: Adjusting default RPATHs Conan policies
-- Conan: Adjusting language standard
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_EXPORT_NO_PACKAGE_REGISTRY


-- Build files have been written to: C:/J/workspace/onan-center-pull-request_PR-2060/14/co_pr_2060_14_0_2/recipes/netcdf/all/test_package/build/26d79e4212ff67274e14435b85e9736506988934

----Running------
> cmake --build C:\J\workspace\onan-center-pull-request_PR-2060/14/co_pr_2060_14_0_2/recipes/netcdf/all\test_package\build\26d79e4212ff67274e14435b85e9736506988934 --config Debug -- /m:1 /verbosity:minimal
-----------------
Microsoft (R) Build Engine version 14.0.25420.1


Copyright (C) Microsoft Corporation. All rights reserved.





  Checking Build System


  Building Custom Rule C:/J/workspace/onan-center-pull-request_PR-2060/14/co_pr_2060_14_0_2/recipes/netcdf/all/test_package/CMakeLists.txt


  example.c


LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library [C:\J\workspace\onan-center-pull-request_PR-2060\14\co_pr_2060_14_0_2\recipes\netcdf\all\test_package\build\26d79e4212ff67274e14435b85e9736506988934\example.vcxproj]


netcdf.lib(derror.obj) : error LNK2019: unresolved external symbol __imp_strerror referenced in function nc_strerror [C:\J\workspace\onan-center-pull-request_PR-2060\14\co_pr_2060_14_0_2\recipes\netcdf\all\test_package\build\26d79e4212ff67274e14435b85e9736506988934\example.vcxproj]


C:\J\workspace\onan-center-pull-request_PR-2060\14\co_pr_2060_14_0_2\recipes\netcdf\all\test_package\build\26d79e4212ff67274e14435b85e9736506988934\bin\example.exe : fatal error LNK1120: 1 unresolved externals [C:\J\workspace\onan-center-pull-request_PR-2060\14\co_pr_2060_14_0_2\recipes\netcdf\all\test_package\build\26d79e4212ff67274e14435b85e9736506988934\example.vcxproj]

@uilianries
Copy link
Member

@d70-t You can

for Autotols + Windows.

@SpaceIm
Copy link
Contributor

SpaceIm commented Jul 3, 2020

I have a draft of netcdf-c recipe using CMake, and also with hdf4 support: https://github.com/SpaceIm/conan-netcdf-c/blob/testing/4.7.4/conanfile.py

@d70-t
Copy link
Author

d70-t commented Jul 24, 2020

Sorry for being off track for a while. I was moving to a different city.

@SpaceIm that looks great! What do you think would be a good way forward? I think building with CMake is actually the better choice, and I see that you did the same. I also see that you seem to have covered a lot more features and I don't really know how to effectively resolve the windows issues. Is there a point in merging your and my recipe? Or would it be better to just continue with yours?

@SpaceIm
Copy link
Contributor

SpaceIm commented Jul 24, 2020

Feel free to reuse my repo in this PR if you want. As far as I remember, it still requires some tricks to properly inject dependencies in netcdf cmake files.

@SpaceIm
Copy link
Contributor

SpaceIm commented Sep 19, 2020

@d70-t please consider d70-t#1

Sorry if it brutally changes some file/options names or order of functions, I've copied/pasted files of my netcdf recipe at https://github.com/SpaceIm/conan-netcdf-c

So far, it works except if hdf4 is enabled (ODR violation between netcdf-c and a lib from hdf4, very weird). Some checks in hdf5 (made in CMakeLists) could be improved.

@ghost
Copy link

ghost commented Nov 16, 2020

I detected other pull requests that are modifying netcdf/all recipe:

This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there.

@stale
Copy link

stale bot commented Dec 17, 2020

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 17, 2020
@Croydon
Copy link
Contributor

Croydon commented Jan 7, 2021

Can be closed as #3350 is merged now

@stale stale bot removed the stale label Jan 7, 2021
@SSE4 SSE4 closed this Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants