conda-forge / json_schema_validator-feedstock

A conda-smithy repository for json_schema_validator.
BSD 3-Clause "New" or "Revised" License
0 stars 6 forks source link

Undefined symbol after recent update #8

Closed bluescarni closed 10 months ago

bluescarni commented 1 year ago

Solution to issue cannot be found in the documentation.

Issue

@xhochy @asafkahlon

After the merge of #6, I am now getting the following missing symbol when using this library:

undefined symbol: _ZNK8nlohmann11json_schema14json_validator8validateERKNS_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerES4_IhSaIhEEEERNS0_13error_handlerE

Reverting to the previous build (h9c3ff4c_1) fixes the issue.

Installed packages

# packages in environment at /local/scratch/fbiscani/mambaforge/envs/godot:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                  2_kmp_llvm    conda-forge
binutils                  2.40                 hdd6e379_0    conda-forge
binutils_impl_linux-64    2.40                 hf600244_0    conda-forge
binutils_linux-64         2.40                 hbdbef99_0    conda-forge
blas                      2.117                  openblas    conda-forge
blas-devel                3.9.0           17_linux64_openblas    conda-forge
bzip2                     1.0.8                h7f98852_4    conda-forge
c-ares                    1.19.1               hd590300_0    conda-forge
c-compiler                1.5.2                h0b41bf4_0    conda-forge
ca-certificates           2023.5.7             hbcca054_0    conda-forge
calceph                   3.5.1                h166bdaf_0    conda-forge
cereal                    1.3.2                hd8ed1ab_0    conda-forge
cmake                     3.26.4               hcfe8598_0    conda-forge
cppunit                   1.15.1               h9c3ff4c_0    conda-forge
cxx-compiler              1.5.2                hf52228f_0    conda-forge
eigen                     3.3.9                h4bd325d_1    conda-forge
expat                     2.5.0                hcb278e6_1    conda-forge
fmt                       9.1.0                h924138e_0    conda-forge
fortran-compiler          1.5.2                hdb1a99f_0    conda-forge
gcc                       11.4.0               h7baecda_0    conda-forge
gcc_impl_linux-64         11.4.0               h7aa1c59_0    conda-forge
gcc_linux-64              11.4.0               hfd045f2_0    conda-forge
gfortran                  11.4.0               h48fc9de_0    conda-forge
gfortran_impl_linux-64    11.4.0               h86428dc_0    conda-forge
gfortran_linux-64         11.4.0               h3047280_0    conda-forge
gxx                       11.4.0               h7baecda_0    conda-forge
gxx_impl_linux-64         11.4.0               h7aa1c59_0    conda-forge
gxx_linux-64              11.4.0               hfc1ae95_0    conda-forge
json_schema_validator     2.1.0                h9c3ff4c_1    conda-forge
kernel-headers_linux-64   2.6.32              he073ed8_15    conda-forge
keyutils                  1.6.1                h166bdaf_0    conda-forge
krb5                      1.20.1               h81ceb04_0    conda-forge
lapack                    3.9.0                    netlib    conda-forge
ld_impl_linux-64          2.40                 h41732ed_0    conda-forge
libblas                   3.9.0           17_linux64_openblas    conda-forge
libcblas                  3.9.0           17_linux64_openblas    conda-forge
libcurl                   8.1.2                h409715c_0    conda-forge
libedit                   3.1.20191231         he28a2e2_2    conda-forge
libev                     4.33                 h516909a_1    conda-forge
libexpat                  2.5.0                hcb278e6_1    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libgcc-devel_linux-64     11.4.0               h922705a_0    conda-forge
libgcc-ng                 13.1.0               he5830b7_0    conda-forge
libgfortran-ng            13.1.0               h69a702a_0    conda-forge
libgfortran5              13.1.0               h15d22d2_0    conda-forge
libgomp                   13.1.0               he5830b7_0    conda-forge
liblapack                 3.9.0           17_linux64_openblas    conda-forge
liblapacke                3.9.0           17_linux64_openblas    conda-forge
libnghttp2                1.52.0               h61bc06f_0    conda-forge
libnsl                    2.0.0                h7f98852_0    conda-forge
libopenblas               0.3.23          pthreads_h80387f5_0    conda-forge
libsanitizer              11.4.0               h4dcbe23_0    conda-forge
libsqlite                 3.42.0               h2797004_0    conda-forge
libssh2                   1.11.0               h0841786_0    conda-forge
libstdcxx-devel_linux-64  11.4.0               h922705a_0    conda-forge
libstdcxx-ng              13.1.0               hfd8a6a1_0    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libuv                     1.44.2               h166bdaf_0    conda-forge
libzlib                   1.2.13               hd590300_5    conda-forge
llvm-openmp               16.0.6               h4dfa4b3_0    conda-forge
ncurses                   6.4                  hcb278e6_0    conda-forge
nlohmann_json             3.9.1                h9c3ff4c_1    conda-forge
numpy                     1.25.0           py39h6183b62_0    conda-forge
openblas                  0.3.23          pthreads_h855a84d_0    conda-forge
openssl                   3.1.1                hd590300_1    conda-forge
pip                       23.1.2             pyhd8ed1ab_0    conda-forge
pybind11                  2.10.4           py39h4b4f3f3_0    conda-forge
pybind11-global           2.10.4           py39h4b4f3f3_0    conda-forge
python                    3.9.16          h2782a2a_0_cpython    conda-forge
python_abi                3.9                      3_cp39    conda-forge
readline                  8.2                  h8228510_1    conda-forge
rhash                     1.4.3                h166bdaf_0    conda-forge
ruamel                    1.0              py39hf3d152e_7    conda-forge
ruamel.yaml               0.17.32          py39hd1e30aa_0    conda-forge
ruamel.yaml.clib          0.2.7            py39h72bdee0_1    conda-forge
setuptools                68.0.0             pyhd8ed1ab_0    conda-forge
sysroot_linux-64          2.12                he073ed8_15    conda-forge
tk                        8.6.12               h27826a3_0    conda-forge
tzdata                    2023c                h71feb2d_0    conda-forge
wheel                     0.40.0             pyhd8ed1ab_0    conda-forge
xz                        5.2.6                h166bdaf_0    conda-forge
zlib                      1.2.13               hd590300_5    conda-forge
zstd                      1.5.2                h3eb15da_6    conda-forge

Environment info

mamba version : 1.4.5
     active environment : godot
    active env location : /local/scratch/fbiscani/mambaforge/envs/godot
            shell level : 4
       user config file : /home/fbiscani/.condarc
 populated config files : /local/scratch/fbiscani/mambaforge/.condarc
          conda version : 23.5.0
    conda-build version : not installed
         python version : 3.10.12.final.0
       virtual packages : __archspec=1=x86_64
                          __glibc=2.28=0
                          __linux=5.15.0=0
                          __unix=0=0
       base environment : /local/scratch/fbiscani/mambaforge  (writable)
      conda av data dir : /local/scratch/fbiscani/mambaforge/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /local/scratch/fbiscani/mambaforge/pkgs
                          /home/fbiscani/.conda/pkgs
       envs directories : /local/scratch/fbiscani/mambaforge/envs
                          /home/fbiscani/.conda/envs
               platform : linux-64
             user-agent : conda/23.5.0 requests/2.31.0 CPython/3.10.12 Linux/5.15.0-6.80.3.1.el8uek.x86_64 ol/8.7 glibc/2.28
                UID:GID : 25113:25113
             netrc file : None
           offline mode : False
bluescarni commented 1 year ago

Perhaps something to do with the new GCC/libstdc++ being used for the latest build?

xhochy commented 1 year ago

Perhaps something to do with the new GCC/libstdc++ being used for the latest build?

This or the general introduction of ${CMAKE_ARGS} could also have an influence.

xhochy commented 1 year ago

Do you have a minimal reproducer for me? Than I could have a more in-depth look.

bluescarni commented 1 year ago

@xhochy Thanks for the reply, I'll try to make a reproducer this weekend.

(It might be a bit convoluted because this failure arose in an environment in which there are several version pins in place, including a pin to an older version/build of nlohmann_json)

bluescarni commented 10 months ago

As far as I can tell this issue is not present any more with the latest builds of the involved packages. Closing.