conda-forge / llvmdev-feedstock

A conda-smithy repository for llvmdev.
BSD 3-Clause "New" or "Revised" License
8 stars 41 forks source link

LLVMgold missing error #172

Closed Wongboo closed 2 years ago

Wongboo commented 2 years ago

Conda-forge documentation

Installed packages

_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
_sysroot_linux-64_curr_repodata_hack 3                   h5bd9786_13    conda-forge
abseil-cpp                20220623.0           h93e1e8c_3    conda-forge
binutils_impl_linux-64    2.36.1               h193b22a_2    conda-forge
brotlipy                  0.7.0           py310h5764c6d_1004    conda-forge
bzip2                     1.0.8                h7f98852_4    conda-forge
c-ares                    1.18.1               h7f98852_0    conda-forge
ca-certificates           2022.6.15.1          ha878542_0    conda-forge
certifi                   2022.6.15.1        pyhd8ed1ab_0    conda-forge
cffi                      1.15.1          py310h255011f_0    conda-forge
charset-normalizer        2.1.1              pyhd8ed1ab_0    conda-forge
clang                     14.0.6               ha770c72_0    conda-forge
clang-14                  14.0.6          default_h2e3cab8_0    conda-forge
clang-format              14.0.6          default_h2e3cab8_0    conda-forge
clang-format-14           14.0.6          default_h2e3cab8_0    conda-forge
clang-tools               14.0.6          default_h2e3cab8_0    conda-forge
clangdev                  14.0.6          default_h2e3cab8_0    conda-forge
clangxx                   14.0.6          default_ha074a59_0    conda-forge
cmake                     3.24.1               h5432695_0    conda-forge
colorama                  0.4.5              pyhd8ed1ab_0    conda-forge
conda                     4.14.0          py310hff52083_0    conda-forge
conda-package-handling    1.8.1           py310h5764c6d_1    conda-forge
cryptography              37.0.4          py310h597c629_0    conda-forge
curl                      7.83.1               h7bff187_0    conda-forge
eigen                     3.4.0                h4bd325d_0    conda-forge
expat                     2.4.8                h27087fc_0    conda-forge
fmt                       9.1.0                h924138e_0    conda-forge
fzf                       0.33.0               ha8f183a_0    conda-forge
gcc                       12.1.0              h9ea6d83_10    conda-forge
gcc_impl_linux-64         12.1.0              hea43390_16    conda-forge
go-shfmt                  3.5.1                ha8f183a_0    conda-forge
gxx                       12.1.0              h9ea6d83_10    conda-forge
gxx_impl_linux-64         12.1.0              hea43390_16    conda-forge
icu                       70.1                 h27087fc_0    conda-forge
idna                      3.3                pyhd8ed1ab_0    conda-forge
kernel-headers_linux-64   3.10.0              h4a8ded7_13    conda-forge
keyutils                  1.6.1                h166bdaf_0    conda-forge
krb5                      1.19.3               h3790be6_0    conda-forge
ld_impl_linux-64          2.36.1               hea4e1c9_2    conda-forge
libabseil                 20220623.0      cxx17_h48a1fff_3    conda-forge
libarchive                3.5.2                hb890918_3    conda-forge
libclang                  14.0.6          default_h2e3cab8_0    conda-forge
libclang-cpp              14.0.6          default_h2e3cab8_0    conda-forge
libclang-cpp14            14.0.6          default_h2e3cab8_0    conda-forge
libclang13                14.0.6          default_h3a83d3e_0    conda-forge
libcurl                   7.83.1               h7bff187_0    conda-forge
libcxx                    14.0.6               hf52228f_0    conda-forge
libcxxabi                 14.0.6               ha770c72_0    conda-forge
libedit                   3.1.20191231         he28a2e2_2    conda-forge
libev                     4.33                 h516909a_1    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libgcc-devel_linux-64     12.1.0              h1ec3361_16    conda-forge
libgcc-ng                 12.1.0              h8d9b700_16    conda-forge
libgomp                   12.1.0              h8d9b700_16    conda-forge
libiconv                  1.16                 h516909a_0    conda-forge
libllvm14                 14.0.6               he0ac6c6_0    conda-forge
libmamba                  0.25.0               hd8a31e3_2    conda-forge
libmambapy                0.25.0          py310hab0e683_2    conda-forge
libnghttp2                1.47.0               hdcd2b5c_1    conda-forge
libnsl                    2.0.0                h7f98852_0    conda-forge
libsanitizer              12.1.0              ha89aaad_16    conda-forge
libsolv                   0.7.22               h6239696_0    conda-forge
libsqlite                 3.39.3               h753d276_0    conda-forge
libssh2                   1.10.0               haa6b8db_3    conda-forge
libstdcxx-devel_linux-64  12.1.0              h1ec3361_16    conda-forge
libstdcxx-ng              12.1.0              ha89aaad_16    conda-forge
libuuid                   2.32.1            h7f98852_1000    conda-forge
libuv                     1.44.2               h166bdaf_0    conda-forge
libxml2                   2.9.14               h22db469_4    conda-forge
libzlib                   1.2.12               h166bdaf_2    conda-forge
llvm                      14.0.6               h32600fe_0    conda-forge
llvm-tools                14.0.6               he0ac6c6_0    conda-forge
llvmdev                   14.0.6               he0ac6c6_0    conda-forge
lz4-c                     1.9.3                h9c3ff4c_1    conda-forge
lzo                       2.10              h516909a_1000    conda-forge
mamba                     0.25.0          py310hf87f941_2    conda-forge
ncurses                   6.3                  h27087fc_1    conda-forge
openssl                   1.1.1q               h166bdaf_0    conda-forge
pcre                      8.45                 h9c3ff4c_0    conda-forge
pip                       22.2.2             pyhd8ed1ab_0    conda-forge
pybind11-abi              4                    hd8ed1ab_3    conda-forge
pycosat                   0.6.3           py310h5764c6d_1010    conda-forge
pycparser                 2.21               pyhd8ed1ab_0    conda-forge
pyopenssl                 22.0.0             pyhd8ed1ab_0    conda-forge
pysocks                   1.7.1              pyha2e5f31_6    conda-forge
python                    3.10.6          h582c2e5_0_cpython    conda-forge
python_abi                3.10                    2_cp310    conda-forge
readline                  8.1.2                h0f457ee_0    conda-forge
reproc                    14.2.3               h7f98852_0    conda-forge
reproc-cpp                14.2.3               h9c3ff4c_0    conda-forge
requests                  2.28.1             pyhd8ed1ab_1    conda-forge
rhash                     1.4.3                h166bdaf_0    conda-forge
ruamel_yaml               0.15.80         py310h5764c6d_1007    conda-forge
setuptools                65.3.0             pyhd8ed1ab_1    conda-forge
six                       1.16.0             pyh6c4a22f_0    conda-forge
sysroot_linux-64          2.17                h4a8ded7_13    conda-forge
tk                        8.6.12               h27826a3_0    conda-forge
toolz                     0.12.0             pyhd8ed1ab_0    conda-forge
tqdm                      4.64.1             pyhd8ed1ab_0    conda-forge
tzdata                    2022c                h191b570_0    conda-forge
urllib3                   1.26.11            pyhd8ed1ab_0    conda-forge
wheel                     0.37.1             pyhd8ed1ab_0    conda-forge
xz                        5.2.6                h166bdaf_0    conda-forge
yaml                      0.2.5                h7f98852_2    conda-forge
yaml-cpp                  0.7.0                h27087fc_1    conda-forge
zlib                      1.2.12               h166bdaf_2    conda-forge
zsh                       5.8                  h8f967e6_0    conda-forge
zstd                      1.5.2                h6239696_4    conda-forge

Environment info

active environment : base
    active env location : /home/huhuhu/mambaforge
            shell level : 1
       user config file : /home/huhuhu/.condarc
 populated config files : /home/huhuhu/mambaforge/.condarc
                          /home/huhuhu/.condarc
          conda version : 4.14.0
    conda-build version : not installed
         python version : 3.10.6.final.0
       virtual packages : __cuda=10.1=0
                          __linux=3.10.0=0
                          __glibc=2.17=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /home/huhuhu/mambaforge  (writable)
      conda av data dir : /home/huhuhu/mambaforge/etc/conda
  conda av metadata url : None
           channel URLs : https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/linux-64
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/noarch
          package cache : /home/huhuhu/mambaforge/pkgs
                          /home/huhuhu/.conda/pkgs
       envs directories : /home/huhuhu/mambaforge/envs
                          /home/huhuhu/.conda/envs
               platform : linux-64
             user-agent : conda/4.14.0 requests/2.28.1 CPython/3.10.6 Linux/3.10.0-1062.4.1.el7.x86_64 centos/7.7.1908 glibc/2.17
                UID:GID : 1048:1048
             netrc file : None
           offline mode : False

Issue

clang++ -flto main.cpp -o main

cause error

/home/huhuhu/mambaforge/bin/../lib/gcc/x86_64-conda-linux-gnu/12.1.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/huhuhu/mambaforge/bin/../lib/LLVMgold.so: error loading plugin: /home/huhuhu/mambaforge/bin/../lib/LLVMgold.so: cannot open shared object file: No such file or directory
clang-14: error: linker command failed with exit code 1 (use -v to see invocation)

I couldn't get LLVMgold.so via any conda-forge package

isuruf commented 2 years ago

We don't have llvmgold packaged yet. PRs are welcome. Until that is fixed, you might have to use -fuse-ld=lld and install lld conda package.

Wongboo commented 2 years ago

Thanks, I thought it mght have some package contains llvmgold