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

Installed hdf5.pc on windows expose bad Libs.private #238

Closed
1 task done
MicK7 opened this issue Nov 3, 2024 · 2 comments
Closed
1 task done

Installed hdf5.pc on windows expose bad Libs.private #238

MicK7 opened this issue Nov 3, 2024 · 2 comments
Labels

Comments

@MicK7
Copy link
Contributor

MicK7 commented Nov 3, 2024

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

When linking with meson against the hdf5 package provided by conda-forge, it complains about the Libs.private .

Indeed on windows the installed hdf5.pc has a Libs.private equals to:

Libs.private:   -lshlwapi -lC:/ProgramData/mambaforge/Library/lib/libcurl.lib -loptimized -lC:/ProgramData/mambaforge/Library/lib/libssl.lib -ldebug -lC:/ProgramFiles/OpenSSL/lib/VC/libssl64MDd.lib -loptimized -lC:/ProgramData/mambaforge/Library/lib/libcrypto.lib -ldebug -lC:/ProgramFiles/OpenSSL/lib/VC/libcrypto64MDd.lib -lC:/ProgramData/mambaforge/Library/lib/z.lib -lC:/ProgramData/mambaforge/Library/lib/szip.lib -lC:/ProgramData/mambaforge/Library/lib/szip.lib

As one can see, -l is combined with full path of .lib.
We expect to have
either -llibcurl or C:/ProgramData/mambaforge/Library/lib/libcurl.lib without -l
The problem is the same for libssl, libcrypto and z and szip

The problem do not occur on linux or apple platform since they do not use cmake for building.

The bld.bat should patch the generated hdf5.pc

Installed packages

# Name                    Version                   Build  Channel
archspec                  0.2.3              pyhd8ed1ab_0    conda-forge
astroid                   2.15.4                   pypi_0    pypi
attrs                     22.2.0             pyh71513ae_0    conda-forge
beautifulsoup4            4.12.3             pyha770c72_0    conda-forge
black                     23.3.0                   pypi_0    pypi
boltons                   23.1.1             pyhd8ed1ab_0    conda-forge
brotlipy                  0.7.0           py310h8d17308_1005    conda-forge
bzip2                     1.0.8                h8ffe710_4    conda-forge
ca-certificates           2024.8.30            h56e8100_0    conda-forge
cairo                     1.16.0            hd694305_1014    conda-forge
certifi                   2024.8.30          pyhd8ed1ab_0    conda-forge
cffi                      1.15.1          py310h628cb3f_2    conda-forge
chardet                   5.2.0           py310h5588dad_1    conda-forge
charset-normalizer        2.1.1              pyhd8ed1ab_0    conda-forge
click                     8.1.3                    pypi_0    pypi
cmake                     3.28.3               hf0feee3_0    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
conda                     24.3.0          py310h5588dad_0    conda-forge
conda-build               24.3.0          py310h5588dad_1    conda-forge
conda-index               0.4.0              pyhd8ed1ab_0    conda-forge
conda-libmamba-solver     24.1.0             pyhd8ed1ab_0    conda-forge
conda-package-handling    2.2.0              pyh38be061_0    conda-forge
conda-package-streaming   0.9.0              pyhd8ed1ab_0    conda-forge
cryptography              39.0.0          py310h6e82f81_0    conda-forge
cython                    3.0.11          py310he320566_3    conda-forge
dill                      0.3.6                    pypi_0    pypi
distro                    1.9.0              pyhd8ed1ab_0    conda-forge
double-conversion         3.2.0                h63175ca_1    conda-forge
exceptiongroup            1.1.1                    pypi_0    pypi
expat                     2.5.0                h1537add_0    conda-forge
filelock                  3.13.3             pyhd8ed1ab_0    conda-forge
fmt                       10.2.1               h181d51b_0    conda-forge
font-ttf-dejavu-sans-mono 2.37                 hab24e00_0    conda-forge
font-ttf-inconsolata      3.000                h77eed37_0    conda-forge
font-ttf-source-code-pro  2.038                h77eed37_0    conda-forge
font-ttf-ubuntu           0.83                 hab24e00_0    conda-forge
fontconfig                2.14.2               hbde0cde_0    conda-forge
fonts-conda-ecosystem     1                             0    conda-forge
fonts-conda-forge         1                             0    conda-forge
freetype                  2.12.1               h546665d_1    conda-forge
gettext                   0.21.1               h5728263_0    conda-forge
graphite2                 1.3.13            h63175ca_1003    conda-forge
harfbuzz                  6.0.0                he256f1b_0    conda-forge
hdf5                      1.14.3          nompi_h73e8ff5_100    conda-forge
icu                       70.1                 h0e60522_0    conda-forge
idna                      3.4                pyhd8ed1ab_0    conda-forge
importlib-metadata        8.5.0              pyha770c72_0    conda-forge
importlib_resources       6.4.0              pyhd8ed1ab_0    conda-forge
iniconfig                 2.0.0                    pypi_0    pypi
intel-openmp              2024.2.1          h57928b3_1083    conda-forge
isort                     5.12.0                   pypi_0    pypi
jinja2                    3.1.3              pyhd8ed1ab_0    conda-forge
jpeg                      9e                   h8ffe710_2    conda-forge
jsonpatch                 1.33               pyhd8ed1ab_0    conda-forge
jsonpointer               2.4             py310h5588dad_3    conda-forge
jsonschema                4.21.1             pyhd8ed1ab_0    conda-forge
jsonschema-specifications 2023.12.1          pyhd8ed1ab_0    conda-forge
krb5                      1.20.1               heb0366b_0    conda-forge
lazy-object-proxy         1.9.0                    pypi_0    pypi
lerc                      4.0.0                h63175ca_0    conda-forge
libaec                    1.1.3                h63175ca_0    conda-forge
libarchive                3.7.2                h313118b_1    conda-forge
libblas                   3.9.0              25_win64_mkl    conda-forge
libcblas                  3.9.0              25_win64_mkl    conda-forge
libclang                  15.0.7          default_h77d9078_0    conda-forge
libclang13                15.0.7          default_h77d9078_0    conda-forge
libcurl                   8.5.0                h86230a5_0
libdeflate                1.17                 hcfcfb64_0    conda-forge
libexpat                  2.5.0                h63175ca_1    conda-forge
libffi                    3.4.2                h8ffe710_5    conda-forge
libglib                   2.74.1               he8f3873_1    conda-forge
libhwloc                  2.10.0          default_h2fffb23_1000    conda-forge
libiconv                  1.17                 h8ffe710_0    conda-forge
libjpeg-turbo             2.1.4                hcfcfb64_0    conda-forge
liblapack                 3.9.0              25_win64_mkl    conda-forge
liblief                   0.12.3               h63175ca_0    conda-forge
libmamba                  1.5.7                h3f09ed1_0    conda-forge
libmambapy                1.5.7           py310h04f2035_0    conda-forge
libpng                    1.6.39               h19919ed_0    conda-forge
libsolv                   0.7.23               h12be248_0    conda-forge
libsqlite                 3.40.0               hcfcfb64_0    conda-forge
libssh2                   1.10.0               h9a1e1f7_3    conda-forge
libtiff                   4.5.0                hf8721a0_2    conda-forge
libuv                     1.49.2               h2466b09_0    conda-forge
libwebp-base              1.4.0                hcfcfb64_0    conda-forge
libxml2                   2.12.6               hc3477c8_1    conda-forge
libxslt                   1.1.39               h3df6e99_0    conda-forge
libzlib                   1.2.13               hcfcfb64_4    conda-forge
lz4-c                     1.9.3                h8ffe710_1    conda-forge
lzo                       2.10              he774522_1000    conda-forge
m2-conda-epoch            20230914               0_x86_64    conda-forge
m2-patch                  2.7.6.2              hd8ed1ab_0    conda-forge
mamba                     1.5.7           py310hd9d798f_0    conda-forge
markupsafe                2.1.5           py310h8d17308_0    conda-forge
mccabe                    0.7.0                    pypi_0    pypi
menuinst                  2.0.2           py310h00ffb61_0    conda-forge
meson                     1.6.0              pyhd8ed1ab_0    conda-forge
meson-python              0.17.1             pyh70fd9c4_0    conda-forge
miniforge_console_shortcut 1.0                  h57928b3_0    conda-forge
mkl                       2024.2.2            h66d3029_14    conda-forge
more-itertools            10.2.0             pyhd8ed1ab_0    conda-forge
mpi4py                    3.1.4                    pypi_0    pypi
mypy-extensions           1.0.0                    pypi_0    pypi
ninja                     1.12.1               hc790b64_0    conda-forge
numpy                     2.1.2           py310hb9d903e_0    conda-forge
openssl                   3.3.2                h2466b09_0    conda-forge
packaging                 23.0               pyhd8ed1ab_0    conda-forge
pathspec                  0.11.1                   pypi_0    pypi
pcre2                     10.40                h17e33f8_0    conda-forge
pip                       22.3               pyhd8ed1ab_0    conda-forge
pixman                    0.43.4               h63175ca_0    conda-forge
pkg-config                0.29.2            h2bf4dc2_1008    conda-forge
pkgconfig                 1.5.5              pyhd8ed1ab_4    conda-forge
pkginfo                   1.10.0             pyhd8ed1ab_0    conda-forge
pkgutil-resolve-name      1.3.10             pyhd8ed1ab_1    conda-forge
platformdirs              3.3.0                    pypi_0    pypi
pluggy                    1.0.0                    pypi_0    pypi
psutil                    5.9.8           py310h8d17308_0    conda-forge
pthreads-win32            2.9.1                h2466b09_4    conda-forge
py-lief                   0.12.3          py310h00ffb61_0    conda-forge
pybind11-abi              4                    hd8ed1ab_3    conda-forge
pycgns                    6.3.0                    pypi_0    pypi
pycosat                   0.6.4           py310h8d17308_1    conda-forge
pycparser                 2.21               pyhd8ed1ab_0    conda-forge
pylint                    2.17.3                   pypi_0    pypi
pyopenssl                 23.0.0             pyhd8ed1ab_0    conda-forge
pyproject-metadata        0.9.0              pyh2cfa8aa_0    conda-forge
pyproject_hooks           1.2.0              pyh7850678_0    conda-forge
pyside6                   6.4.2           py310h2f681d6_1    conda-forge
pysocks                   1.7.1              pyh0701188_6    conda-forge
pytest                    7.3.1                    pypi_0    pypi
python                    3.10.8          h4de0772_0_cpython    conda-forge
python-build              1.2.2.post1        pyhff2d567_0    conda-forge
python-libarchive-c       5.1             py310h5588dad_0    conda-forge
python_abi                3.10                    2_cp310    conda-forge
pytz                      2024.1             pyhd8ed1ab_0    conda-forge
pyyaml                    6.0.1           py310h8d17308_1    conda-forge
qt6-main                  6.4.2                h21ac547_5    conda-forge
qtpy                      2.4.1              pyhd8ed1ab_0    conda-forge
referencing               0.34.0             pyhd8ed1ab_0    conda-forge
reproc                    14.2.3               h8ffe710_0    conda-forge
reproc-cpp                14.2.3               h0e60522_0    conda-forge
requests                  2.28.1             pyhd8ed1ab_1    conda-forge
ripgrep                   11.0.2                        1    conda-forge
rpds-py                   0.18.0          py310h87d50f1_0    conda-forge
ruamel.yaml               0.18.6          py310h8d17308_0    conda-forge
ruamel.yaml.clib          0.2.8           py310h8d17308_0    conda-forge
ruamel_yaml               0.15.80         py310h8d17308_1008    conda-forge
setuptools                65.5.0             pyhd8ed1ab_0    conda-forge
soupsieve                 2.5                pyhd8ed1ab_1    conda-forge
tbb                       2021.12.0            hc790b64_1    conda-forge
tk                        8.6.12               h8ffe710_0    conda-forge
tomli                     2.0.1              pyhd8ed1ab_0    conda-forge
tomlkit                   0.11.7                   pypi_0    pypi
toolz                     0.12.0             pyhd8ed1ab_0    conda-forge
tqdm                      4.64.1             pyhd8ed1ab_0    conda-forge
truststore                0.8.0              pyhd8ed1ab_0    conda-forge
tzdata                    2022e                h191b570_0    conda-forge
ucrt                      10.0.22621.0         h57928b3_0    conda-forge
urllib3                   1.26.11            pyhd8ed1ab_0    conda-forge
vc                        14.3                 h3d8a991_9    conda-forge
vc14_runtime              14.32.31332         h6669f8e_13    conda-forge
vs2015_runtime            14.32.31332          h1d6e394_9    conda-forge
wheel                     0.37.1             pyhd8ed1ab_0    conda-forge
win_inet_pton             1.1.0              pyhd8ed1ab_6    conda-forge
wrapt                     1.15.0                   pypi_0    pypi
xz                        5.2.6                h8d14728_0    conda-forge
yaml                      0.2.5                h8ffe710_2    conda-forge
yaml-cpp                  0.8.0                h63175ca_0    conda-forge
zipp                      3.17.0             pyhd8ed1ab_0    conda-forge
zlib                      1.2.13               hcfcfb64_4    conda-forge
zstandard                 0.22.0          py310h0009e47_0    conda-forge
zstd                      1.5.5                h12be248_0    conda-forge

Environment info

     active environment : base
    active env location : C:\ProgramData\mambaforge
            shell level : 1
       user config file : C:\Users\mick7\.condarc
 populated config files : C:\ProgramData\mambaforge\.condarc
                          C:\Users\mick7\.condarc
          conda version : 24.3.0
    conda-build version : 24.3.0
         python version : 3.10.8.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=skylake
                          __conda=24.3.0=0
                          __win=0=0
       base environment : C:\ProgramData\mambaforge  (read only)
      conda av data dir : C:\ProgramData\mambaforge\etc\conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\ProgramData\mambaforge\pkgs
                          C:\Users\mick7\.conda\pkgs
                          C:\Users\mick7\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\mick7\.conda\envs
                          C:\ProgramData\mambaforge\envs
                          C:\Users\mick7\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/24.3.0 requests/2.28.1 CPython/3.10.8 Windows/10 Windows/10.0.19045 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.7
          administrator : False
             netrc file : None
           offline mode : False
@MicK7 MicK7 added the bug label Nov 3, 2024
@hmaarrfk
Copy link
Contributor

hmaarrfk commented Nov 3, 2024

i don't even know if libs.private is useful for downstream compilation.

i would accept a patch to remedy this, either through unifying the syntax, or just by removing the lib.private line.

@MicK7
Copy link
Contributor Author

MicK7 commented Nov 5, 2024

It solved my conda recipe build. @hmaarrfk Thanks a lot for your time !

@MicK7 MicK7 closed this as completed Nov 5, 2024
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

2 participants