Git Product home page Git Product logo

cling-feedstock's People

Contributors

beckermr avatar chrisburr avatar conda-forge-admin avatar conda-forge-curator[bot] avatar jakirkham avatar johanmabille avatar regro-cf-autotick-bot avatar serge-sans-paille avatar sylvaincorlay avatar wolfv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cling-feedstock's Issues

Misspelled option

I believe -DINSTALL_RPATH_USE_LINK_PATH=ON should be removed or changed to -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON; it is being ignored in its current spelling, I believe.

Duplicate builds of cling

We failed to bump the build number in a cling rebuild, which ended up with some platforms having two builds of cling with the same version and build numbers, but not the same hash.

We should delete the newest builds of cling 0.7 with build number 2 (only those corresponding to platforms for which we already had one), namely

  • linux-64/cling-0.7-hf817b99_2.tar.bz2
  • linux-aarch64/cling-0.7-h6293a0b_2.tar.bz2

Issues finding headers

The following was done inside a the official miniconda3 docker container that is based on Ubuntu and has almost nothing installed:

$ docker run --rm -it continuumio/miniconda3 bash

Create an environment:

$ conda create --name test-cling -c conda-forge/label/gcc7 -c conda-forge -c defaults python=3.7 cling
$ source activate test-cling

Cling then fails to find standard headers and segfaults when I try to compute 2+3:

$ cling
In file included from input_line_1:1:
In file included from /opt/conda/envs/test-cling/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/include/c++/7.3.0/new:39:
In file included from /opt/conda/envs/test-cling/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/include/c++/7.3.0/x86_64-conda_cos6-linux-gnu/bits/c++config.h:533:
/opt/conda/envs/test-cling/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/include/c++/7.3.0/x86_64-conda_cos6-linux-gnu/bits/os_defines.h:39:10: fatal error: 'features.h' file not found
#include <features.h>
         ^~~~~~~~~~~~

****************** CLING ******************
* Type C++ code and press enter to run it *
*             Type .q to exit             *
*******************************************
[cling]$ 2+3
Segmentation fault (core dumped)

If I manually set the include directories instead it seems okay:

$ cling -I $CONDA_PREFIX/x86_64-conda_cos6-linux-gnu/include/c++/7.3.0 -I $CONDA_PREFIX/x86_64-conda_cos6-linux-gnu/sysroot/usr/include

****************** CLING ******************
* Type C++ code and press enter to run it *
*             Type .q to exit             *
*******************************************
[cling]$ 2+3
(int) 5
[cling]$ #include <vector>
[cling]$ std::vector<double> a = {1, 2, 4}
(std::vector<double> &) { 1, 2, 4 }

Windows `cling` crashes when trying to print a value

Issue:

cling crashes when it tries to print a value.

I open the issue here because this occurs on my Windows machine, but not on the Ubuntu WSL. As they don't provide a precompiled Windows binary, I think the problem is from the building system of conda-forge.

Reproduction:

  1. Install cling from conda-forge
  2. Open a cmd and start cling
  3. int a = 1 (no semicolon)

Expected Behavior:

It prints (int) 1.

Actual Behavior:

It crashes with errors as below.

In file included from input_line_4:1:
In file included from C:\ProgramData\Miniconda3\Library\include\cling/Interpreter/RuntimePrintValue.h:17:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\memory:15:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\xmemory:16:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\xutility:15:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\utility:138:9: error: expected member name or ';' after declaration specifiers
        !conjunction_v<_Is_implicitly_default_constructible<_Uty1>, _Is_implicitly_default_constructible<_Uty2>>)
        ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\utility:138:9: error: expected ')'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\utility:137:23: note: to match this '('
    constexpr explicit(
                      ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\utility:219:24: error: expected member name or ';' after declaration specifiers
    constexpr explicit(!conjunction_v<is_convertible<const _Other1&, _Ty1>, is_convertible<const _Other2&, _Ty2>>)
    ~~~~~~~~~~~~~~~~~~ ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\utility:219:24: error: expected ')'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\utility:219:23: note: to match this '('
    constexpr explicit(!conjunction_v<is_convertible<const _Other1&, _Ty1>, is_convertible<const _Other2&, _Ty2>>)
                      ^
In file included from input_line_4:1:
In file included from C:\ProgramData\Miniconda3\Library\include\cling/Interpreter/RuntimePrintValue.h:17:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\memory:15:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\xmemory:16:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\xutility:73:31: error: '_To' does not refer to a value
    return __builtin_bit_cast(_To, _Val);
                              ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\xutility:63:17: note: declared here
template <class _To, class _From,
                ^
In file included from input_line_4:1:
In file included from C:\ProgramData\Miniconda3\Library\include\cling/Interpreter/RuntimePrintValue.h:19:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\tuple:288:9: error: expected member name or ';' after declaration specifiers
        !conjunction_v<_Is_implicitly_default_constructible<_This2>, _Is_implicitly_default_constructible<_Rest>...>)
        ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\tuple:288:9: error: expected ')'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\tuple:287:23: note: to match this '('
    constexpr explicit(
                      ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\tuple:366:5: error: non-static data member cannot be constexpr; did you intend to make it const?
    constexpr explicit(_Tuple_conditional_explicit_v<tuple, const _Other&...>)
    ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\tuple:366:24: error: member '_Tuple_conditional_explicit_v' declared as a template
    constexpr explicit(_Tuple_conditional_explicit_v<tuple, const _Other&...>)
                       ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\tuple:366:79: error: expected ';' at end of declaration list
    constexpr explicit(_Tuple_conditional_explicit_v<tuple, const _Other&...>)
                                                                              ^
Wrote crash dump file "C:\Users\liurui\AppData\Local\Temp\cling.exe-1efcda.dmp"
0x00007FF6CAB05D2E (0x00000160612FB1C3 0x0000000000000000 0x000000022D58ED00 0x0000016063DE3B20), ?getQualifiedNameAsString@NamedDecl@clang@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ() + 0x21CBE bytes(s)
0x00007FF6C9C1EEC6 (0x0000000000000008 0x000000022D58EE00 0x000000022D58EDA8 0x0000016063B14FA0), ?MaybeRemoveDeclFromModule@DeclUnloader@cling@@QEBAXAEAVGlobalDecl@clang@@@Z() + 0x5706 bytes(s)
0x00007FF6C9C219BE (0x0000000000000000 0x0000016063D702A0 0x0000016063D702A0 0x000000022D58EEF0), ?MaybeRemoveDeclFromModule@DeclUnloader@cling@@QEBAXAEAVGlobalDecl@clang@@@Z() + 0x81FE bytes(s)
0x00007FF6C9C24C66 (0x0000016063D702A0 0x000001600038C719 0x0000016063D702A0 0x0000000000000000), ?VisitFunctionDecl@DeclUnloader@cling@@QEAA_NPEAVFunctionDecl@clang@@@Z() + 0x96 bytes(s)
0x00007FF6C9C7F517 (0x000000022D58EFA8 0x0000000000000000 0x0000000000000001 0x00000000FFFFFFFF), ?unloadDeclarations@TransactionUnloader@cling@@AEAA_NPEAVTransaction@2@AEAVDeclUnloader@2@@Z() + 0x127 bytes(s)
0x00007FF6C9C7F0DE (0x000000022D58EFA8 0x0000016063262A90 0x0000000200000004 0x0000000000000000), ?RevertTransaction@TransactionUnloader@cling@@QEAA_NPEAVTransaction@2@@Z() + 0x2BE bytes(s)
0x00007FF6C9C646A9 (0x0000000000000000 0x000001606127C320 0x0000016061233B90 0x0000016063262A90), ?unload@Interpreter@cling@@QEAAXAEAVTransaction@2@@Z() + 0x279 bytes(s)
0x00007FF6C9C57607 (0x000000022D58F0C0 0x0000000000000000 0x0000016061233B90 0x0000000000000000), ?commitTransaction@IncrementalParser@cling@@QEAAXAEAV?$PointerIntPair@PEAVTransaction@cling@@$01W4EParseResult@IncrementalParser@2@V?$PointerLikeTypeTraits@PEAVTransaction@cling@@@llvm@@U?$PointerIntPairInfo@PEAVTransaction@cling@@$01V?$PointerLikeTypeTraits@PEAVTransaction@cling@@@llvm@@@6@@llvm@@_N@Z() + 0x157 bytes(s)
0x00007FF6C9C55312 (0x000000022D58F158 0x000000022D58F120 0x000000022D58FC10 0x00007FF6CC00F8BF), ?Compile@IncrementalParser@cling@@QEAA?AV?$PointerIntPair@PEAVTransaction@cling@@$01W4EParseResult@IncrementalParser@2@V?$PointerLikeTypeTraits@PEAVTransaction@cling@@@llvm@@U?$PointerIntPairInfo@PEAVTransaction@cling@@$01V?$PointerLikeTypeTraits@PEAVTransaction@cling@@@llvm@@@6@@llvm@@VStringRef@4@AEBVCompilationOptions@2@@Z() + 0xC2 bytes(s)
0x00007FF6C9C5BF77 (0x0000000000000004 0x000000022D58FC10 0x000000022D58F400 0x0000000000000000), ?DeclareInternal@Interpreter@cling@@AEBA?AW4CompilationResult@12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBVCompilationOptions@2@PEAPEAVTransaction@2@@Z() + 0x77 bytes(s)
0x00007FF6C9C608B7 (0xFFFFFFFF2D58E280 0x0000016062E17FF0 0x0000000000000000 0x00000160633B1000), ?declare@Interpreter@cling@@QEAA?AW4CompilationResult@12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEAPEAVTransaction@2@@Z() + 0xD7 bytes(s)
0x00007FF6C9C896AB (0x00000160612FB2F0 0x000000022D58F400 0x000000022D58F400 0x000000022D58F1E9), ?printValueInternal@valuePrinterInternal@cling@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBVValue@2@@Z() + 0xAB bytes(s)
0x00007FF6C9C81EF1 (0x0000000000000001 0x000000022D58F380 0x0000000000000001 0x00000160633B1000), ?print@Value@cling@@QEBAXAEAVraw_ostream@llvm@@_N@Z() + 0x51 bytes(s)
0x00007FF6C9C815C0 (0x0000016062E17FF0 0x0000000000000000 0x000000022D58FC10 0x00007FF6C9C5C14C), ?setValueNoAlloc@internal@runtime@cling@@YAXPEAX00D_K@Z() + 0x60 bytes(s)
0x00000160633B107A (0x0000000000000000 0x000000022D58FC10 0x00007FF6C9C5C14C 0x0000000000000001) <unknown module>
0x0000016062E17FF0 (0x000000022D58FC10 0x00007FF6C9C5C14C 0x0000000000000001 0x00000160612FB2F0) <unknown module>

Note:

If the statement does not print a value, like int a = 1;, then there's no problem.

If the value is printed using C++ functions, like printf, then it can print without any issue.


Environment (conda list):

Windows:

$ conda list
# packages in environment at C:\ProgramData\Miniconda3:
#
# Name                    Version                   Build  Channel
adjusttext                0.7.3.1                    py_1    conda-forge
blas                      1.0                         mkl
brotlipy                  0.7.0           py39h2bbff1b_1003
ca-certificates           2021.5.25            haa95532_1
certifi                   2021.5.30        py39haa95532_0
cffi                      1.14.5           py39hcd4344a_0
chardet                   4.0.0           py39haa95532_1003
clang_variant             1.0                  cling_v0.8    conda-forge
clangdev                  5.0.0             hc06fbdd_1012    conda-forge
cling                     0.8                  hab3b255_0    conda-forge
conda                     4.10.1           py39haa95532_1
conda-package-handling    1.7.3            py39h8cc25b3_1
conda-tree                0.1.1              pyhd8ed1ab_0    conda-forge
cryptography              3.4.7            py39h71e12ea_0
cycler                    0.10.0           py39haa95532_0
decorator                 5.0.9              pyhd3eb1b0_0
freetype                  2.10.4               h43e298c_0    intel
icc_rt                    2019.0.0             h0cc432a_1
idna                      2.10               pyhd3eb1b0_0
intel-openmp              2021.2.0           haa95532_616
intelpython               2021.1.1                      1    intel
joblib                    1.0.1              pyhd3eb1b0_0
jpeg                      9b                   hb83a4c4_2
kiwisolver                1.3.1            py39hd77b12b_0
libpng                    1.6.37           vc14h53ad9d4_7  [vc14]  intel
libtiff                   4.2.0                hd0e1b90_0
llvmlite                  0.36.0           py39h34b8924_4
lz4-c                     1.9.3                h2bbff1b_0
matplotlib-base           3.3.4            py39h49ac443_0
memory_profiler           0.58.0                     py_0
menuinst                  1.4.16           py39h2bbff1b_0
mkl                       2021.2.0           haa95532_296
mkl-service               2.3.0            py39h2bbff1b_1
mkl_fft                   1.3.0            py39h277e83a_2
mkl_random                1.2.1            py39hf11a4ad_2
networkx                  2.5                        py_0
ninja                     1.10.2               h6d14046_1
nuitka                    0.6.14.7           pyhd3eb1b0_1
numba                     0.53.1           py39hf11a4ad_0
numpy                     1.20.2           py39ha4e8547_0
numpy-base                1.20.2           py39hc2deb75_0
olefile                   0.46                       py_0
openssl                   1.1.1k               h2bbff1b_0
pandas                    1.2.4            py39hd77b12b_0
pathlib                   1.0.1                      py_1
pillow                    8.2.0            py39h4fa10fc_0
pip                       21.1.1           py39haa95532_0
psutil                    5.8.0            py39h2bbff1b_1
pycosat                   0.6.3            py39h2bbff1b_0
pycparser                 2.20                       py_2
pyopenssl                 20.0.1             pyhd3eb1b0_1
pyparsing                 2.4.7              pyhd3eb1b0_0
pyprojroot                0.2.0                      py_0    conda-forge
pysocks                   1.7.1            py39haa95532_0
python                    3.9.5                h6244533_3
python-dateutil           2.8.1              pyhd3eb1b0_0
pytz                      2021.1             pyhd3eb1b0_0
pywin32                   228              py39he774522_0
requests                  2.25.1             pyhd3eb1b0_0
ruamel_yaml               0.15.100         py39h2bbff1b_0
scikit-learn              0.24.2           py39hf11a4ad_1
scipy                     1.6.2            py39h66253e8_1
setuptools                52.0.0           py39haa95532_0
six                       1.15.0           py39haa95532_0
sqlite                    3.35.4               h2bbff1b_0
tbb                       2020.3               h74a9793_0
threadpoolctl             2.1.0              pyh5ca1d4c_0
tk                        8.6.10               he774522_2    intel
tornado                   6.1              py39h2bbff1b_0
tqdm                      4.59.0             pyhd3eb1b0_1
tzdata                    2020f                h52ac0ba_0
urllib3                   1.26.4             pyhd3eb1b0_0
vc                        14.2                 h21ff451_1
vs2015_runtime            14.27.29016          h5e58377_2
wheel                     0.36.2             pyhd3eb1b0_0
win_inet_pton             1.1.0            py39haa95532_0
wincertstore              0.2              py39h2bbff1b_0
xz                        5.2.5                h94ab4b9_2    intel
yaml                      0.2.5                he774522_0
zlib                      1.2.11.1         vc14hc1c5f5b_3  [vc14]  intel
zstd                      1.4.9                h19a0ad4_0

Ubuntu WSL:

$ conda list
# packages in environment at /opt/miniconda3:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       1_gnu    conda-forge
binutils_impl_linux-64    2.35.1               h193b22a_2    conda-forge
binutils_linux-64         2.35                h67ddf6f_30    conda-forge
blas                      1.0                         mkl  
brotlipy                  0.7.0           py39h27cfd23_1003  
ca-certificates           2021.5.25            h06a4308_1  
certifi                   2021.5.30        py39h06a4308_0  
cffi                      1.14.5           py39h261ae71_0  
chardet                   4.0.0           py39h06a4308_1003  
clang_variant             1.0                  cling_v0.8    conda-forge
clangdev                  5.0.0             h43905f9_1012    conda-forge
cling                     0.8                  hf817b99_0    conda-forge
conda                     4.10.1           py39h06a4308_1  
conda-package-handling    1.7.3            py39h27cfd23_1  
conda-tree                0.1.1              pyhd8ed1ab_0    conda-forge
cryptography              3.4.7            py39hd23ed53_0  
cycler                    0.10.0           py39h06a4308_0  
dbus                      1.13.18              hb2f20db_0  
decorator                 4.4.2              pyhd3eb1b0_0  
expat                     2.4.1                h2531618_2  
fontconfig                2.13.1               h6c09931_0  
freetype                  2.10.4               h5ab3b9f_0  
gcc_impl_linux-64         9.3.0               h70c0ae5_19    conda-forge
gcc_linux-64              9.3.0               hf25ea35_30    conda-forge
glib                      2.68.2               h36276a3_0  
gst-plugins-base          1.14.0               h8213a91_2  
gstreamer                 1.14.0               h28cd5cc_2  
gxx_impl_linux-64         9.3.0               hd87eabc_19    conda-forge
gxx_linux-64              9.3.0               h3fbe746_30    conda-forge
icu                       58.2                 he6710b0_3  
idna                      2.10               pyhd3eb1b0_0  
intel-openmp              2021.2.0           h06a4308_610  
joblib                    1.0.1              pyhd3eb1b0_0  
jpeg                      9b                   h024ee3a_2  
kernel-headers_linux-64   2.6.32              h77966d4_13    conda-forge
kiwisolver                1.3.1            py39h2531618_0  
lcms2                     2.12                 h3be6417_0  
ld_impl_linux-64          2.35.1               hea4e1c9_2    conda-forge
libffi                    3.3                  he6710b0_2  
libgcc-devel_linux-64     9.3.0               h7864c58_19    conda-forge
libgcc-ng                 9.3.0               h2828fa1_19    conda-forge
libgfortran-ng            7.3.0                hdf63c60_0  
libgomp                   9.3.0               h2828fa1_19    conda-forge
libpng                    1.6.37               hbc83047_0  
libstdcxx-devel_linux-64  9.3.0               hb016644_19    conda-forge
libstdcxx-ng              9.3.0               h6de172a_19    conda-forge
libtiff                   4.2.0                h85742a9_0  
libuuid                   1.0.3                h1bed415_2  
libwebp-base              1.2.0                h27cfd23_0  
libxcb                    1.14                 h7b6447c_0  
libxml2                   2.9.10               hb55368b_3  
lz4-c                     1.9.3                h2531618_0  
matplotlib                3.3.4            py39h06a4308_0  
matplotlib-base           3.3.4            py39h62a2d02_0  
mkl                       2021.2.0           h06a4308_296  
mkl-service               2.3.0            py39h27cfd23_1  
mkl_fft                   1.3.0            py39h42c9631_2  
mkl_random                1.2.1            py39ha9443f7_2  
ncurses                   6.2                  he6710b0_1  
networkx                  2.5.1              pyhd3eb1b0_0  
numpy                     1.20.2           py39h2d18471_0  
numpy-base                1.20.2           py39hfae3a4d_0  
olefile                   0.46                       py_0  
openssl                   1.1.1k               h27cfd23_0  
pandas                    1.2.4            py39h2531618_0  
pathlib                   1.0.1                      py_1  
pcre                      8.44                 he6710b0_0  
pillow                    8.2.0            py39he98fc37_0  
pip                       21.1.1           py39h06a4308_0  
pycosat                   0.6.3            py39h27cfd23_0  
pycparser                 2.20                       py_2  
pyopenssl                 20.0.1             pyhd3eb1b0_1  
pyparsing                 2.4.7              pyhd3eb1b0_0  
pyprojroot                0.2.0                      py_0    conda-forge
pyqt                      5.9.2            py39h2531618_6  
pysocks                   1.7.1            py39h06a4308_0  
python                    3.9.5                hdb3f193_3  
python-dateutil           2.8.1              pyhd3eb1b0_0  
pytz                      2021.1             pyhd3eb1b0_0  
qt                        5.9.7                h5867ecd_1  
readline                  8.1                  h27cfd23_0  
requests                  2.25.1             pyhd3eb1b0_0  
ruamel_yaml               0.15.100         py39h27cfd23_0  
scikit-learn              0.24.2           py39ha9443f7_0  
scipy                     1.6.2            py39had2a1c9_1  
setuptools                52.0.0           py39h06a4308_0  
sip                       4.19.13          py39h2531618_0  
six                       1.15.0           py39h06a4308_0  
sqlite                    3.35.4               hdfb4753_0  
sysroot_linux-64          2.12                h77966d4_13    conda-forge
threadpoolctl             2.1.0              pyh5ca1d4c_0  
tk                        8.6.10               hbc83047_0  
tornado                   6.1              py39h27cfd23_0  
tqdm                      4.59.0             pyhd3eb1b0_1  
tzdata                    2020f                h52ac0ba_0  
urllib3                   1.26.4             pyhd3eb1b0_0  
wheel                     0.36.2             pyhd3eb1b0_0  
xz                        5.2.5                h7b6447c_0  
yaml                      0.2.5                h7b6447c_0  
zlib                      1.2.11               h7b6447c_3  
zstd                      1.4.9                haebb681_0  


Details about conda and system ( conda info ):

Windows:

$ conda info
     active environment : None
       user config file : C:\Users\liurui\.condarc
 populated config files : C:\Users\liurui\.condarc
          conda version : 4.10.1
    conda-build version : not installed
         python version : 3.9.5.final.0
       virtual packages : __cuda=11.2=0
                          __win=0=0
                          __archspec=1=x86_64
       base environment : C:\ProgramData\Miniconda3  (writable)
      conda av data dir : C:\ProgramData\Miniconda3\etc\conda
  conda av metadata url : https://repo.anaconda.com/pkgs/main
           channel URLs : https://conda.anaconda.org/pytorch/win-64
                          https://conda.anaconda.org/pytorch/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
                          https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : C:\ProgramData\Miniconda3\pkgs
                          C:\Users\liurui\.conda\pkgs
                          C:\Users\liurui\AppData\Local\conda\conda\pkgs
       envs directories : C:\ProgramData\Miniconda3\envs
                          C:\Users\liurui\.conda\envs
                          C:\Users\liurui\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/4.10.1 requests/2.25.1 CPython/3.9.5 Windows/10 Windows/10.0.19042
          administrator : False
             netrc file : None
           offline mode : False

Ubuntu WSL:

$ conda info
     active environment : None
            shell level : 0
       user config file : /root/.condarc
 populated config files : /root/.condarc
          conda version : 4.10.1
    conda-build version : not installed
         python version : 3.9.5.final.0
       virtual packages : __linux=5.4.72=0
                          __glibc=2.31=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /opt/miniconda3  (writable)
      conda av data dir : /opt/miniconda3/etc/conda
  conda av metadata url : https://repo.anaconda.com/pkgs/main
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /opt/miniconda3/pkgs
                          /root/.conda/pkgs
       envs directories : /opt/miniconda3/envs
                          /root/.conda/envs
               platform : linux-64
             user-agent : conda/4.10.1 requests/2.25.1 CPython/3.9.5 Linux/5.4.72-microsoft-standard-WSL2 ubuntu/20.04.2 glibc/2.31
                UID:GID : 0:0
             netrc file : None
           offline mode : False

Windows exception handling

It seems that the windows support of cling is incomplete and that IO operations are not yet available. We reached out to the upstream team on this issue.

Marking "cling v0.6 build 0" as broken

Hello, @conda-forge/core, would it be possible to mark some cling builds as broken? Namely cling 0.6 build 0 on all platforms:

cling-0.6-h1a24767_0.tar.bz2
cling-0.6-h7475705_0.tar.bz2
cling-0.6-he513fc3_0.tar.bz2

Linux build glibc compatibility

  • Launching the current build of cling produced by conda-forge yields:

    Warning in cling::IncrementalParser::CheckABICompatibility():
      Possible C++ standard library mismatch, compiled with __GLIBCXX__ '20140120'
      Extraction of runtime standard library version was: '20160609'
    

    and later on, the interpreter errors on IO operations. (Linux platform...)

  • This error does not occur when building the recipe locally since the glibc version is consistent.

    cling has tight constraints in terms of glibc version match between what was used at link time and runtime.

  • We could prevent this by building cling with conda's gcc and libgcc instead of the one of the build container (this might require to build the entire llvm/clang stack like this). Besides, for the resulting cling binary to support modern C++, we would need a more recent version of gcc.

    EDIT: the approach with gcc is blocking on ContinuumIO/anaconda-issues#1465

ERROR in cling::executePrintValue(): cannot pass value!

Using python=2.7 allows me to create a C++11 notebook.
The example from https://github.com/SylvainCorlay/cling-binder does not work however:

cling-jupyter

It might be related to #1 since I see the following in the console:

[I 23:57:33.655 NotebookApp] Kernel restarted: 2725a98c-a398-4032-a630-ce9e38f3f294
Warning in cling::IncrementalParser::CheckABICompatibility():
  Possible C++ standard library mismatch, compiled with __GLIBCXX__ '20140120'
  Extraction of runtime standard library version was: '20160609'
[ClingKernelApp] ERROR | UNKNOWN MESSAGE TYPE: u'comm_open'

[OSX] The new build with the root flavor of clangvariant is not functional

With the latest build on OSX, starting cling shows the following error message.

/Users/scorlay/miniconda3/include/c++/v1/stdlib.h:94:15: fatal error: 'stdlib.h' file not found
#include_next <stdlib.h>

Then, doing anything that does io results in the following

/Users/scorlay/miniconda3/include/c++/v1/stdlib.h:94:15: fatal error: 'stdlib.h' file not found
#include_next <stdlib.h>
              ^~~~~~~~~~

****************** CLING ******************
* Type C++ code and press enter to run it *
*             Type .q to exit             *
*******************************************
[cling]$ 1
0  cling                    0x00000001056aace6 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 54
1  cling                    0x00000001056ab326 SignalHandler(int) + 406
2  libsystem_platform.dylib 0x00007fff5318af5a _sigtramp + 26
3  libsystem_platform.dylib 0x00007ffeea6d4ab0 _sigtramp + 2538904432
4  cling                    0x00000001055d804c cling::ValueExtractionSynthesizer::FindAndCacheRuntimeDecls() + 556
5  cling                    0x00000001055d7240 cling::ValueExtractionSynthesizer::SynthesizeSVRInit(clang::Expr*) + 64
6  cling                    0x00000001055d6a15 cling::ValueExtractionSynthesizer::Transform(clang::Decl*) + 661
7  cling                    0x0000000105569679 cling::DeclCollector::TransformDecl(clang::Decl*) const + 201
8  cling                    0x0000000105569811 cling::DeclCollector::Transform(clang::DeclGroupRef&) + 273
9  cling                    0x0000000105569912 cling::DeclCollector::HandleTopLevelDecl(clang::DeclGroupRef) + 50
10 cling                    0x00000001055b00bc cling::IncrementalParser::ParseInternal(llvm::StringRef) + 1372
11 cling                    0x00000001055b171a cling::IncrementalParser::Compile(llvm::StringRef, cling::CompilationOptions const&) + 186
12 cling                    0x00000001055b68b1 cling::Interpreter::EvaluateInternal(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) + 161
13 cling                    0x00000001055b6735 cling::Interpreter::process(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, cling::Value*, cling::Transaction**, bool) + 517
14 cling                    0x00000001055f137e cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value*, bool) + 334
15 cling                    0x00000001056adf4d cling::UserInterface::runInteractively(bool) + 765
16 cling                    0x000000010552c738 main + 1608
17 libdyld.dylib            0x00007fff52e7c015 start + 1
Stack dump:
0.	Program arguments: cling

cling 0.4

Hello,

are you planning bringup cling 0.4 version into conda?

Thanks.

cling is not properly worked in Windows conda python 2.7

I use conda python 2.7, install cling by this command in Window system:

conda install -c conda-forge cling

Jupyter notebook will be crashed, after I create a new C++ notebook, not matter C++11, 14 or 17.

Traceback (most recent call last): File "~\AppData\Local\Anaconda2\Scripts\jupyter-cling-kernel-script.py", line 2, in <module> from clingkernel import main File "~\AppData\Local\Continuum\Anaconda2\lib\site-packages\clingkernel.py", line 24, in <module> from fcntl import fcntl, F_GETFL, F_SETFL ImportError: No module named fcntl

ImportError: No module named 'clingkernel'

Thank yout @SylvainCorlay for working on this!
I just tried to install this in my conda environment:

$ conda install cling
...
The following NEW packages will be INSTALLED:

    clangdev:      3.9.1-cling_3 conda-forge [cling]
    cling:         0.3.post-0    conda-forge [cling]
    cling-patches: 1-0           conda-forge
    libcxx:        3.9.1-0       conda-forge
    llvmdev:       3.9.1-cling_4 conda-forge [cling]
    system:        5.8-2         defaults   
...

however, when I create a C++11 notebook the kernel dies with the following printed to the console:

[I 20:15:10.037 NotebookApp] Creating new notebook in 
[I 20:15:10.751 NotebookApp] Kernel started: c6dadf90-1628-4e72-82eb-20e3541bdf0c
Traceback (most recent call last):
  File "/opt/users/miniconda3/bin/jupyter-cling-kernel", line 3, in <module>
    from clingkernel import main
ImportError: No module named 'clingkernel'

and there doesn't seem to be any "clingkernel" in conda-forge channel:

$ conda install clingkernel
...
PackageNotFoundError: Package not found: '' Package missing in current linux-64 channels: 
  - clingkernel

Close matches found; did you mean one of these?

    clingkernel: ipykernel
...

Setting include path on cling on windows to avoid visual studio headers

Issue:


Environment (conda list):
$ conda list

Details about conda and system ( conda info ):
$ conda info

I installed cling on windows with conda-forge channel. The installation succeeded.
I have visual studio 2022 preview installed on my machine.
When I try to include something such as or , cling searches in visual studio include directory and reports some errors.
There is a way to set cling include path without searching isual studio headers files?
I have cling 0.8 on windows 10 64 bit.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.