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

Changed SONAME on rhash can break Cmake #192

Closed
1 task done
zklaus opened this issue Aug 31, 2023 · 6 comments
Closed
1 task done

Changed SONAME on rhash can break Cmake #192

zklaus opened this issue Aug 31, 2023 · 6 comments
Labels

Comments

@zklaus
Copy link

zklaus commented Aug 31, 2023

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

With the update to rhash-1.4.4 (conda-forge/rhash-feedstock#22), the SONAME of librhash changed. Consequently, programs linked against rhash <1.4.4 break if installed with the new rhash, which includes Cmake. Conversely, programs linked against rhash>=1.4.4 will break if installed alongside earlier versions.

The latest build of Cmake (d22135f) is already linked against rhash-1.4.4, but the metadata should be updated by:

  • adding a lower pin to the cmake recipe here
  • adding a repodata patch to add an upper pin to earlier versions of Cmake and a lower pin to the latest build of Cmake

Installed packages

-

Environment info

-
@isuruf
Copy link
Member

isuruf commented Aug 31, 2023

Can you please give the information asked for in the issue template?

@erykoff
Copy link

erykoff commented Aug 31, 2023

@isuruf We are seeing the same problem. I don't know if it's a librhash issue or a cmake issue, but we're getting librhash.so.0 => not found when using cmake 3.27.4 hcfe8598_1 conda-forge and rhash 1.4.4 hd590300_0 conda-forge. No problem with rhash=1.4.3.

@zklaus
Copy link
Author

zklaus commented Aug 31, 2023

Sorry, I don't have a local environment as I am solely working off the CI, so I can't run the commands, but I'll copy here the info from the first conda-forge CI report about the problem in the visp-feedstock (here).

Installed packages

2023-08-31T08:50:28.0119420Z The following NEW packages will be INSTALLED:
2023-08-31T08:50:28.0211964Z 
2023-08-31T08:50:28.0212940Z     _libgcc_mutex:                 0.1-conda_forge         conda-forge
2023-08-31T08:50:28.0213349Z     _openmp_mutex:                 4.5-2_gnu               conda-forge
2023-08-31T08:50:28.0213722Z     binutils_impl_linux-64:        2.40-hf600244_0         conda-forge
2023-08-31T08:50:28.0214112Z     binutils_linux-64:             2.40-hbdbef99_1         conda-forge
2023-08-31T08:50:28.0214845Z     bzip2:                         1.0.8-h7f98852_4        conda-forge
2023-08-31T08:50:28.0215218Z     c-ares:                        1.19.1-hd590300_0       conda-forge
2023-08-31T08:50:28.0215610Z     ca-certificates:               2023.7.22-hbcca054_0    conda-forge
2023-08-31T08:50:28.0215972Z     cmake:                         3.27.4-hcfe8598_1       conda-forge
2023-08-31T08:50:28.0216339Z     expat:                         2.5.0-hcb278e6_1        conda-forge
2023-08-31T08:50:28.0216700Z     gcc_impl_linux-64:             12.3.0-he2b93b0_0       conda-forge
2023-08-31T08:50:28.0217080Z     gcc_linux-64:                  12.3.0-h76fc315_1       conda-forge
2023-08-31T08:50:28.0217442Z     gxx_impl_linux-64:             12.3.0-he2b93b0_0       conda-forge
2023-08-31T08:50:28.0217818Z     gxx_linux-64:                  12.3.0-h8a814eb_1       conda-forge
2023-08-31T08:50:28.0218201Z     kernel-headers_linux-64:       2.6.32-he073ed8_16      conda-forge
2023-08-31T08:50:28.0218567Z     keyutils:                      1.6.1-h166bdaf_0        conda-forge
2023-08-31T08:50:28.0218990Z     krb5:                          1.21.2-h659d440_0       conda-forge
2023-08-31T08:50:28.0219533Z     ld_impl_linux-64:              2.40-h41732ed_0         conda-forge
2023-08-31T08:50:28.0219907Z     libcurl:                       8.2.1-hca28451_0        conda-forge
2023-08-31T08:50:28.0220285Z     libdrm-cos6-x86_64:            2.4.65-h9b0a68f_1105    conda-forge
2023-08-31T08:50:28.0220653Z     libedit:                       3.1.20191231-he28a2e2_2 conda-forge
2023-08-31T08:50:28.0221020Z     libev:                         4.33-h516909a_1         conda-forge
2023-08-31T08:50:28.0221371Z     libexpat:                      2.5.0-hcb278e6_1        conda-forge
2023-08-31T08:50:28.0221744Z     libgcc-devel_linux-64:         12.3.0-h8bca6fd_0       conda-forge
2023-08-31T08:50:28.0222107Z     libgcc-ng:                     13.1.0-he5830b7_0       conda-forge
2023-08-31T08:50:28.0222475Z     libgomp:                       13.1.0-he5830b7_0       conda-forge
2023-08-31T08:50:28.0222854Z     libnghttp2:                    1.52.0-h61bc06f_0       conda-forge
2023-08-31T08:50:28.0223217Z     libsanitizer:                  12.3.0-h0f45ef3_0       conda-forge
2023-08-31T08:50:28.0223603Z     libselinux-cos6-x86_64:        2.0.94-h9b0a68f_1105    conda-forge
2023-08-31T08:50:28.0223978Z     libsepol-cos6-x86_64:          2.0.41-h9b0a68f_1105    conda-forge
2023-08-31T08:50:28.0224356Z     libssh2:                       1.11.0-h0841786_0       conda-forge
2023-08-31T08:50:28.0224722Z     libstdcxx-devel_linux-64:      12.3.0-h8bca6fd_0       conda-forge
2023-08-31T08:50:28.0225099Z     libstdcxx-ng:                  13.1.0-hfd8a6a1_0       conda-forge
2023-08-31T08:50:28.0225464Z     libuv:                         1.44.2-hd590300_1       conda-forge
2023-08-31T08:50:28.0225831Z     libx11-common-cos6-x86_64:     1.6.4-h9b0a68f_1105     conda-forge
2023-08-31T08:50:28.0226221Z     libx11-cos6-x86_64:            1.6.4-h9b0a68f_1105     conda-forge
2023-08-31T08:50:28.0226597Z     libxdamage-cos6-x86_64:        1.1.3-h9b0a68f_1105     conda-forge
2023-08-31T08:50:28.0227011Z     libxext-cos6-x86_64:           1.3.3-h9b0a68f_1105     conda-forge
2023-08-31T08:50:28.0227385Z     libxxf86vm-cos6-x86_64:        1.1.3-h9b0a68f_1105     conda-forge
2023-08-31T08:50:28.0227760Z     libzlib:                       1.2.13-hd590300_5       conda-forge
2023-08-31T08:50:28.0228120Z     make:                          4.3-hd18ef5c_1          conda-forge
2023-08-31T08:50:28.0228486Z     mesa-dri-drivers-cos6-x86_64:  11.0.7-h9b0a68f_1105    conda-forge
2023-08-31T08:50:28.0228884Z     mesa-dri1-drivers-cos6-x86_64: 7.11-h9b0a68f_1105      conda-forge
2023-08-31T08:50:28.0229265Z     mesa-libgl-cos6-x86_64:        11.0.7-h9b0a68f_1105    conda-forge
2023-08-31T08:50:28.0229662Z     mesa-libgl-devel-cos6-x86_64:  11.0.7-h9b0a68f_1105    conda-forge
2023-08-31T08:50:28.0230042Z     ncurses:                       6.4-hcb278e6_0          conda-forge
2023-08-31T08:50:28.0230492Z     openssl:                       3.1.2-hd590300_0        conda-forge
2023-08-31T08:50:28.0230859Z     rhash:                         1.4.4-hd590300_0        conda-forge
2023-08-31T08:50:28.0231219Z     sysroot_linux-64:              2.12-he073ed8_16        conda-forge
2023-08-31T08:50:28.0231584Z     xz:                            5.2.6-h166bdaf_0        conda-forge
2023-08-31T08:50:28.0231927Z     zlib:                          1.2.13-hd590300_5       conda-forge
2023-08-31T08:50:28.0232286Z     zstd:                          1.5.5-hfc55251_0        conda-forge

Environment info

2023-08-31T08:46:40.4789725Z ++ conda info
2023-08-31T08:46:40.4789897Z 
2023-08-31T08:46:40.4790149Z      active environment : base
2023-08-31T08:46:40.4790480Z     active env location : /opt/conda
2023-08-31T08:46:40.4790762Z             shell level : 1
2023-08-31T08:46:40.4791033Z        user config file : /home/conda/.condarc
2023-08-31T08:46:40.4791342Z  populated config files : /opt/conda/.condarc
2023-08-31T08:46:40.4791619Z                           /home/conda/.condarc
2023-08-31T08:46:40.4791890Z           conda version : 23.3.1
2023-08-31T08:46:40.4792225Z     conda-build version : 3.25.0
2023-08-31T08:46:40.4792532Z          python version : 3.10.12.final.0
2023-08-31T08:46:40.4792824Z        virtual packages : __archspec=1=x86_64
2023-08-31T08:46:40.4793111Z                           __glibc=2.17=0
2023-08-31T08:46:40.4793367Z                           __linux=5.15.0=0
2023-08-31T08:46:40.4793642Z                           __unix=0=0
2023-08-31T08:46:40.4793931Z        base environment : /opt/conda  (writable)
2023-08-31T08:46:40.4794552Z       conda av data dir : /opt/conda/etc/conda
2023-08-31T08:46:40.4794850Z   conda av metadata url : None
2023-08-31T08:46:40.4795277Z            channel URLs : https://conda.anaconda.org/conda-forge/linux-64
2023-08-31T08:46:40.4795724Z                           https://conda.anaconda.org/conda-forge/noarch
2023-08-31T08:46:40.4796064Z           package cache : /home/conda/feedstock_root/build_artifacts/pkg_cache
2023-08-31T08:46:40.4796387Z                           /opt/conda/pkgs
2023-08-31T08:46:40.4796655Z        envs directories : /opt/conda/envs
2023-08-31T08:46:40.4796943Z                           /home/conda/.conda/envs
2023-08-31T08:46:40.4797239Z                platform : linux-64
2023-08-31T08:46:40.4797737Z              user-agent : conda/23.3.1 requests/2.31.0 CPython/3.10.12 Linux/5.15.0-1041-azure centos/7.9.2009 glibc/2.17
2023-08-31T08:46:40.4798137Z                 UID:GID : 1001:1001
2023-08-31T08:46:40.4798412Z              netrc file : None
2023-08-31T08:46:40.4798687Z            offline mode : False

@zklaus
Copy link
Author

zklaus commented Aug 31, 2023

From inspecting several of these CI issues, the common denominator is Rhash >=1.4.4 (which changed librhash.so.0 to librhash.so.1), with a build of Cmake older than version 3.27.4 build number 2.

@isuruf
Copy link
Member

isuruf commented Aug 31, 2023

I had conda-forge/conda-forge-repodata-patches-feedstock#531 in before merging the rhash PR, but there was an issue with that patch, that I fixed in conda-forge/conda-forge-repodata-patches-feedstock#533

@isuruf isuruf closed this as completed Aug 31, 2023
@zklaus
Copy link
Author

zklaus commented Sep 1, 2023

Thanks, @isuruf!

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

No branches or pull requests

3 participants