conda-forge / clang-compiler-activation-feedstock

A conda-smithy repository for clang-compiler-activation.
BSD 3-Clause "New" or "Revised" License
2 stars 17 forks source link

Environment variables set wrongly by clang activate scripts #93

Open darioizzo opened 1 year ago

darioizzo commented 1 year ago

Solution to issue cannot be found in the documentation.

Issue

In OSx, after installing clang in some environment, the environment variables are set wrongly preventing the compilation of simple programs whenever a space is present in the env path.

env variables affected: LDFLAGS_LD, LDFLAGS, CFLAGS, CXXFLAGS, DEBUG_CFLAGS, DEBUG_CXXFLAGS. activate files where these are set (I think): activate_clang_osx-64.sh activate_clangxx_osx-64.sh

Installed packages

# packages in environment at /Users/dario izzo/.conda/envs/cascade_devel:
#
# Name                    Version                   Build  Channel
arb                       2.23.0               h905a977_0    conda-forge
blas-devel                3.9.0           16_osx64_openblas    conda-forge
boost-cpp                 1.78.0               h8b082ac_1    conda-forge
brotlipy                  0.7.0           py310h90acd4f_1005    conda-forge
bzip2                     1.0.8                h0d85af4_4    conda-forge
c-ares                    1.18.1               h0d85af4_0    conda-forge
c-compiler                1.5.2                hbf74d83_0    conda-forge
ca-certificates           2022.12.7            h033912b_0    conda-forge
cctools                   973.0.1             h76f1dac_11    conda-forge
cctools_osx-64            973.0.1             hcc6d90d_11    conda-forge
certifi                   2022.12.7          pyhd8ed1ab_0    conda-forge
cffi                      1.15.1          py310ha78151a_3    conda-forge
charset-normalizer        2.1.1              pyhd8ed1ab_0    conda-forge
clang                     14.0.6               h694c41f_0    conda-forge
clang-14                  14.0.6          default_h55ffa42_0    conda-forge
clang_osx-64              14.0.6               h3113cd8_4    conda-forge
clangxx                   14.0.6          default_h55ffa42_0    conda-forge
clangxx_osx-64            14.0.6               h6f97653_4    conda-forge
cloudpickle               2.2.1              pyhd8ed1ab_0    conda-forge
cmake                     3.25.2               h4032537_0    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
compiler-rt               14.0.6               h613da45_0    conda-forge
compiler-rt_osx-64        14.0.6               hab78ec2_0    conda-forge
conda                     22.11.1         py310h2ec42d9_1    conda-forge
conda-package-handling    2.0.2              pyh38be061_0    conda-forge
conda-package-streaming   0.7.0              pyhd8ed1ab_1    conda-forge
cryptography              39.0.0          py310hdd0c95c_0    conda-forge
cxx-compiler              1.5.2                hb8565cd_0    conda-forge
expat                     2.5.0                hf0c8a7f_0    conda-forge
fmt                       9.1.0                hb8565cd_0    conda-forge
gf2x                      1.3.0                hb2a7efb_2    conda-forge
gmp                       6.2.1                h2e338ed_0    conda-forge
gmpy2                     2.1.2           py310hb691cb2_1    conda-forge
hdf5                      1.12.2          nompi_h48135f9_101    conda-forge
heyoka                    0.20.1               haf2808b_0    conda-forge
heyoka.py                 0.20.0          py310h7648100_1    conda-forge
icu                       70.1                 h96cf925_0    conda-forge
idna                      3.4                pyhd8ed1ab_0    conda-forge
krb5                      1.20.1               h049b76e_0    conda-forge
ld64                      609                 hc6ad406_11    conda-forge
ld64_osx-64               609                 hfd63004_11    conda-forge
libaec                    1.0.6                hf0c8a7f_1    conda-forge
libarchive                3.6.2                h6d8d9f1_0    conda-forge
libblas                   3.9.0           16_osx64_openblas    conda-forge
libcblas                  3.9.0           16_osx64_openblas    conda-forge
libclang-cpp14            14.0.6          default_h55ffa42_0    conda-forge
libcurl                   7.87.0               h6df9250_0    conda-forge
libcxx                    14.0.6               hccf4f1f_0    conda-forge
libedit                   3.1.20191231         h0678c8f_2    conda-forge
libev                     4.33                 haf1e3a3_1    conda-forge
libffi                    3.4.2                h0d85af4_5    conda-forge
libflint                  2.9.0           hfd2f71f_ntl_100    conda-forge
libgfortran               5.0.0           11_3_0_h97931a8_27    conda-forge
libgfortran5              11.3.0              h082f757_27    conda-forge
libiconv                  1.17                 hac89ed1_0    conda-forge
liblapack                 3.9.0           16_osx64_openblas    conda-forge
liblapacke                3.9.0           16_osx64_openblas    conda-forge
libllvm14                 14.0.6               h5b596cc_1    conda-forge
libllvm15                 15.0.7               h7001e86_0    conda-forge
libmamba                  1.2.0                h9d281b0_0    conda-forge
libmambapy                1.2.0           py310hb15139c_0    conda-forge
libnghttp2                1.51.0               he2ab024_0    conda-forge
libopenblas               0.3.21          openmp_h429af6e_3    conda-forge
libsolv                   0.7.23               hbc0c0cd_0    conda-forge
libsqlite                 3.40.0               ha978bb4_0    conda-forge
libssh2                   1.10.0               h47af595_3    conda-forge
libuv                     1.44.2               hac89ed1_0    conda-forge
libxml2                   2.10.3               hb9e07b5_0    conda-forge
libzlib                   1.2.13               hfd90126_4    conda-forge
llvm-openmp               15.0.7               h61d9ccf_0    conda-forge
llvm-tools                14.0.6               h5b596cc_1    conda-forge
lz4-c                     1.9.4                hf0c8a7f_0    conda-forge
lzo                       2.10              haf1e3a3_1000    conda-forge
mamba                     1.2.0           py310h6bde348_0    conda-forge
mpc                       1.3.1                h81bd1dd_0    conda-forge
mpfr                      4.1.0                h0f52abe_1    conda-forge
mpmath                    1.2.1              pyhd8ed1ab_0    conda-forge
mppp                      0.27                 hed3dc4c_0    conda-forge
ncurses                   6.3                  h96cf925_1    conda-forge
ninja                     1.11.0               h1b54a9f_0    conda-forge
ntl                       11.4.3               h0ab3c2f_1    conda-forge
numpy                     1.24.1          py310h1b7c290_0    conda-forge
openblas                  0.3.21          openmp_hbefa662_3    conda-forge
openssl                   3.0.7                hfd90126_2    conda-forge
pip                       22.3.1             pyhd8ed1ab_0    conda-forge
pluggy                    1.0.0              pyhd8ed1ab_5    conda-forge
pybind11                  2.10.3          py310ha23aa8a_0    conda-forge
pybind11-abi              4                    hd8ed1ab_3    conda-forge
pybind11-global           2.10.3          py310ha23aa8a_0    conda-forge
pycosat                   0.6.4           py310h90acd4f_1    conda-forge
pycparser                 2.21               pyhd8ed1ab_0    conda-forge
pyopenssl                 23.0.0             pyhd8ed1ab_0    conda-forge
pysocks                   1.7.1              pyha2e5f31_6    conda-forge
python                    3.10.8          he7542f4_0_cpython    conda-forge
python_abi                3.10                    3_cp310    conda-forge
readline                  8.1.2                h3899abd_0    conda-forge
reproc                    14.2.4               hb7f2c08_0    conda-forge
reproc-cpp                14.2.4               hf0c8a7f_0    conda-forge
requests                  2.28.2             pyhd8ed1ab_0    conda-forge
rhash                     1.4.3                hac89ed1_0    conda-forge
ruamel.yaml               0.17.21         py310h90acd4f_2    conda-forge
ruamel.yaml.clib          0.2.7           py310h90acd4f_1    conda-forge
setuptools                66.1.1             pyhd8ed1ab_0    conda-forge
sigtool                   0.1.3                h88f4db0_0    conda-forge
sleef                     3.5.1                h6db0672_2    conda-forge
spdlog                    1.11.0               ha64ae7f_1    conda-forge
sympy                     1.11.1          py310h2ec42d9_2    conda-forge
tapi                      1100.0.11            h9ce4665_0    conda-forge
tbb                       2021.7.0             hb8565cd_1    conda-forge
tbb-devel                 2021.7.0             hb8565cd_1    conda-forge
tk                        8.6.12               h5dbffcc_0    conda-forge
toolz                     0.12.0             pyhd8ed1ab_0    conda-forge
tqdm                      4.64.1             pyhd8ed1ab_0    conda-forge
tzdata                    2022g                h191b570_0    conda-forge
urllib3                   1.26.14            pyhd8ed1ab_0    conda-forge
wheel                     0.38.4             pyhd8ed1ab_0    conda-forge
xtensor                   0.24.3               h1b54a9f_1    conda-forge
xtensor-blas              0.20.0               h940c156_0    conda-forge
xtl                       0.7.5                hb8565cd_0    conda-forge
xz                        5.2.6                h775f41a_0    conda-forge
yaml-cpp                  0.7.0                hf0c8a7f_2    conda-forge
zlib                      1.2.13               hfd90126_4    conda-forge
zstandard                 0.19.0          py310h3cf44b0_1    conda-forge
zstd                      1.5.2                hbc0c0cd_6    conda-forge

Environment info

active environment : cascade_devel
    active env location : /Users/dario izzo/.conda/envs/cascade_devel
            shell level : 2
       user config file : /Users/dario izzo/.condarc
 populated config files : /Users/dario izzo/.condarc
          conda version : 22.9.0
    conda-build version : 3.22.0
         python version : 3.9.13.final.0
       virtual packages : __osx=10.16=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /opt/anaconda3  (read only)
      conda av data dir : /opt/anaconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/osx-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/osx-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/osx-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /opt/anaconda3/pkgs
                          /Users/dario izzo/.conda/pkgs
       envs directories : /Users/dario izzo/.conda/envs
                          /opt/anaconda3/envs
               platform : osx-64
             user-agent : conda/22.9.0 requests/2.28.1 CPython/3.9.13 Darwin/22.1.0 OSX/10.16
                UID:GID : 1446074388:1276952531
             netrc file : None
           offline mode : False
isuruf commented 1 year ago

PRs welcome to fix