spack / spack

A flexible package manager that supports multiple versions, configurations, platforms, and compilers.

Home Page:https://spack.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LMod hierarchy interprets `llvm` as a compiler, even if used as a library

yangliu2009 opened this issue · comments

Steps to reproduce

spack install emacs@29.1 +X +json  +treesitter %gcc@13.2.0
module load gcc/13.2.0 emacs/29.1

Error message

Lmod is automatically replacing "gcc/13.2.0-vp2ysbj" with "llvm/16.0.6-mv5jqk4".

Information on your system

  • Spack: 0.21.2
  • Python: 3.6.8
  • Platform: linux-rhel7-x86_64
  • Concretizer: clingo

General information

  • I have run spack debug report and reported the version of Spack/Python/Platform
  • I have searched the issues of this repo and believe this is not a duplicate
  • I have run the failing commands in debug mode and reported the output

Here are the dependencies for emacs:

$ spack find -d --show-full-compiler emacs
-- linux-rhel7-x86_64 / gcc@13.2.0 ------------------------------
emacs@29.1%gcc@13.2.0 
    giflib@5.2.1%gcc@13.2.0 
    gmake@4.4.1%gcc@13.2.0 
    gnutls@3.7.8%gcc@13.2.0 
        gettext@0.22.3%gcc@13.2.0 
            bzip2@1.0.8%gcc@13.2.0 
                diffutils@3.9%gcc@13.2.0 
            tar@1.34%gcc@13.2.0 
                pigz@2.7%gcc@13.2.0 
                zstd@1.5.5%gcc@13.2.0 
        libidn2@2.3.4%gcc@13.2.0 
            libunistring@1.1%gcc@13.2.0 
        nettle@3.9.1%gcc@13.2.0 
            gmp@6.2.1%gcc@13.2.0 
            m4@1.4.19%gcc@13.2.0 
                libsigsegv@2.14%gcc@13.2.0 
    gtkplus@3.24.29%gcc@13.2.0 
        at-spi2-atk@2.38.0%gcc@13.2.0 
            at-spi2-core@2.48.3%gcc@13.2.0 
                dbus@1.13.6%gcc@13.2.0 
                    docbook-xml@4.5%gcc@13.2.0 
                    docbook-xsl@1.79.2%gcc@13.2.0 
                    libsm@1.2.3%gcc@13.2.0 
                        libice@1.0.9%gcc@13.2.0 
                libxtst@1.2.2%gcc@13.2.0 
                recordproto@1.14.2%gcc@13.2.0 
        atk@2.38.0%gcc@13.2.0 
            libffi@3.4.4%gcc@13.2.0 
        cairo@1.16.0%gcc@13.2.0 
            autoconf@2.69%gcc@13.2.0 
            automake@1.16.5%gcc@13.2.0 
            fontconfig@2.14.2%gcc@13.2.0 
                font-util@1.4.0%gcc@13.2.0 
                    bdftopcf@1.1%gcc@13.2.0 
                        fontsproto@2.1.3%gcc@13.2.0 
                        libxfont@1.5.4%gcc@13.2.0 
                    mkfontdir@1.0.7%gcc@13.2.0 
                    mkfontscale@1.2.2%gcc@13.2.0 
                        libfontenc@1.1.7%gcc@13.2.0 
                gperf@3.1%gcc@13.2.0 
                util-linux-uuid@2.38.1%gcc@13.2.0 
            freetype@2.11.1%gcc@13.2.0 
            libtool@2.4.7%gcc@13.2.0 
            libxext@1.3.3%gcc@13.2.0 
            libxrender@0.9.10%gcc@13.2.0 
                renderproto@0.11.1%gcc@13.2.0 
            pixman@0.42.2%gcc@13.2.0 
            python@3.11.6%gcc@13.2.0 
                expat@2.5.0%gcc@13.2.0 
                libxcrypt@4.4.35%gcc@13.2.0 
                openssl@3.1.3%gcc@13.2.0 
                    ca-certificates-mozilla@2023-05-30%gcc@13.2.0 
                readline@8.2%gcc@13.2.0 
                sqlite@3.43.2%gcc@13.2.0 
            which@2.21%gcc@13.2.0 
        fixesproto@5.0%gcc@13.2.0 
        fribidi@1.0.12%gcc@13.2.0 
        gdk-pixbuf@2.42.10%gcc@13.2.0 
        glib@2.78.0%gcc@13.2.0 
            elfutils@0.189%gcc@13.2.0 
            pcre2@10.42%gcc@13.2.0 
        gobject-introspection@1.76.1%gcc@13.2.0 
            bison@3.8.2%gcc@13.2.0 
            flex@2.6.3%gcc@13.2.0 
                findutils@4.9.0%gcc@13.2.0 
        inputproto@2.3.2%gcc@13.2.0 
        libepoxy@1.4.3%gcc@13.2.0 
            glx@1.4%gcc@13.2.0 
                mesa@23.0.3%gcc@13.2.0 
                    glproto@1.4.17%gcc@13.2.0 
                    libunwind@1.6.2%gcc@13.2.0 
                    libxt@1.1.5%gcc@13.2.0 
                    **llvm@16.0.6%gcc@13.2.0** 
                        binutils@2.41%gcc@13.2.0 
                        hwloc@2.9.1%gcc@13.2.0 
                            libpciaccess@0.17%gcc@13.2.0 
                        libedit@3.1-20210216%gcc@13.2.0 
                        lua@5.3.6%gcc@13.2.0 
                            unzip@6.0%gcc@13.2.0 
                        perl-data-dumper@2.173%gcc@13.2.0 
                        swig@4.1.1%gcc@13.2.0 
                    py-mako@1.2.4%gcc@13.2.0 
                        py-markupsafe@2.1.3%gcc@13.2.0 
        librsvg@2.56.2%gcc@13.2.0 
            harfbuzz@7.3.0%gcc@13.2.0 
                graphite2@1.3.14%gcc@13.2.0 
                icu4c@67.1%gcc@13.2.0 
            rust@1.75.0%gcc@13.2.0 
                libgit2@1.7.0%gcc@13.2.0 
                    libssh2@1.11.0%gcc@13.2.0 
                rust-bootstrap@1.75.0%gcc@13.2.0 
        libxi@1.7.6%gcc@13.2.0 
            libxfixes@5.0.2%gcc@13.2.0 
        libxkbcommon@1.5.0%gcc@13.2.0 
            xkbdata@1.0.1%gcc@13.2.0 
                xkbcomp@1.4.4%gcc@13.2.0 
                    libxkbfile@1.0.9%gcc@13.2.0 
        meson@1.2.2%gcc@13.2.0 
            py-pip@23.1.2%gcc@13.2.0 
            py-setuptools@68.0.0%gcc@13.2.0 
            py-wheel@0.41.2%gcc@13.2.0 
        ninja@1.11.1%gcc@13.2.0 
            re2c@2.2%gcc@13.2.0 
        pango@1.50.13%gcc@13.2.0 
            json-glib@1.6.6%gcc@13.2.0 
            libxft@2.3.2%gcc@13.2.0 
        shared-mime-info@1.10%gcc@13.2.0 
            intltool@0.51.0%gcc@13.2.0 
                perl-xml-parser@2.46%gcc@13.2.0 
                    perl-libwww-perl@6.68%gcc@13.2.0 
                        perl-clone@0.46%gcc@13.2.0 
                        perl-encode-locale@1.05%gcc@13.2.0 
                        perl-file-listing@6.04%gcc@13.2.0 
                        perl-html-parser@3.72%gcc@13.2.0 
                            perl-html-tagset@3.20%gcc@13.2.0 
                        perl-http-cookies@6.10%gcc@13.2.0 
                        perl-http-daemon@6.01%gcc@13.2.0 
                            perl-module-build-tiny@0.044%gcc@13.2.0 
                                perl-extutils-config@0.008%gcc@13.2.0 
                                perl-extutils-helpers@0.026%gcc@13.2.0 
                                perl-extutils-installpaths@0.012%gcc@13.2.0 
                                perl-module-build@0.4232%gcc@13.2.0 
                        perl-http-date@6.02%gcc@13.2.0 
                        perl-http-message@6.44%gcc@13.2.0 
                            perl-io-html@1.004%gcc@13.2.0 
                        perl-http-negotiate@6.01%gcc@13.2.0 
                        perl-lwp-mediatypes@6.02%gcc@13.2.0 
                        perl-net-http@6.22%gcc@13.2.0 
                        perl-try-tiny@0.31%gcc@13.2.0 
                        perl-uri@5.08%gcc@13.2.0 
                            perl-test-needs@0.002010%gcc@13.2.0 
                        perl-www-robotrules@6.02%gcc@13.2.0 
        xrandr@1.5.0%gcc@13.2.0 
            libxrandr@1.5.3%gcc@13.2.0 
            randrproto@1.5.0%gcc@13.2.0 
    gzip@1.13%gcc@13.2.0 
    jansson@2.14%gcc@13.2.0 
        cmake@3.27.7%gcc@13.2.0 
            curl@8.4.0%gcc@13.2.0 
                nghttp2@1.57.0%gcc@13.2.0 
    libjpeg-turbo@3.0.0%gcc@13.2.0 
        nasm@2.15.05%gcc@13.2.0 
    libpng@1.6.39%gcc@13.2.0 
    libtiff@4.5.1%gcc@13.2.0 
    libx11@1.8.4%gcc@13.2.0 
        kbproto@1.0.7%gcc@13.2.0 
        libxcb@1.14%gcc@13.2.0 
            libpthread-stubs@0.4%gcc@13.2.0 
            libxau@1.0.8%gcc@13.2.0 
            libxdmcp@1.1.4%gcc@13.2.0 
                libbsd@0.11.7%gcc@13.2.0 
                    libmd@1.0.4%gcc@13.2.0 
            xcb-proto@1.15.2%gcc@13.2.0 
        perl@5.38.0%gcc@13.2.0 
            berkeley-db@18.1.40%gcc@13.2.0 
            gdbm@1.23%gcc@13.2.0 
        util-macros@1.19.3%gcc@13.2.0 
        xextproto@7.3.0%gcc@13.2.0 
        xproto@7.0.31%gcc@13.2.0 
        xtrans@1.4.0%gcc@13.2.0 
    libxml2@2.10.3%gcc@13.2.0 
        libiconv@1.17%gcc@13.2.0 
        xz@5.4.1%gcc@13.2.0 
    libxpm@3.5.12%gcc@13.2.0 
    ncurses@6.4%gcc@13.2.0 
    pcre@8.45%gcc@13.2.0 
    pkgconf@1.9.5%gcc@13.2.0 
    tree-sitter@0.20.8%gcc@13.2.0 
    zlib-ng@2.1.4%gcc@13.2.0