Skip to content

LLVM 3.9.0 fails with "error: ‘bind’ is not a member of ‘std’" #5954

@certik

Description

@certik
$ spack install -j8 --restage -v llvm@3.9.0
...
cc1plus: warning: unrecognized command line option ‘-Wno-vla-extension’
cc1plus: warning: unrecognized command line option ‘-Wno-deprecated-register’
In file included from /home/certik/repos/spack/var/spack/stage/llvm-3.9.0-4fz5z3c5ou25wt4bp3agk4vydjybim2n/llvm-3.9.0.src/tools/lldb/source/Utility/TaskPool.cpp:10:0:
/home/certik/repos/spack/var/spack/stage/llvm-3.9.0-4fz5z3c5ou25wt4bp3agk4vydjybim2n/llvm-3.9.0.src/tools/lldb/include/lldb/Utility/TaskPool.h: In static member function ‘static std::future<typename std::result_of<_Functor(_ArgTypes ...)>::type> TaskPool::AddTask(F&&, Args&& ...)’:
/home/certik/repos/spack/var/spack/stage/llvm-3.9.0-4fz5z3c5ou25wt4bp3agk4vydjybim2n/llvm-3.9.0.src/tools/lldb/include/lldb/Utility/TaskPool.h:110:14: error: ‘bind’ is not a member of ‘std’
         std::bind(std::forward<F>(f), std::forward<Args>(args)...));
              ^~~~
/home/certik/repos/spack/var/spack/stage/llvm-3.9.0-4fz5z3c5ou25wt4bp3agk4vydjybim2n/llvm-3.9.0.src/tools/lldb/include/lldb/Utility/TaskPool.h:110:14: note: suggested alternative: ‘end’
         std::bind(std::forward<F>(f), std::forward<Args>(args)...));
              ^~~~
              end

Here is the spec:

$ spack spec llvm@3.9.0
Input spec
--------------------------------
llvm@3.9.0

Normalized
--------------------------------
llvm@3.9.0
    ^cmake@3.4.3:
    ^py-lit
        ^py-setuptools
            ^python@2.7:2.8
                ^bzip2
                ^ncurses
                    ^pkg-config
                ^openssl
                    ^zlib
                ^readline
                ^sqlite

Concretized
--------------------------------
llvm@3.9.0%gcc@7.2.0+all_targets build_type=Release +clang+compiler-rt+gold+internal_unwind+libcxx~link_dylib+lldb+polly~shared_libs arch=linux-ubuntu16.04-x86_64 
    ^binutils@2.28%gcc@7.2.0+gold~libiberty patches=0a0ca84889b6727dc0cc88650f55fd79452dddba762674a83a153374792fdaac ~plugins arch=linux-ubuntu16.04-x86_64 
        ^bison@3.0.4%gcc@7.2.0 patches=b72914fe38e54a6fc25f29019e0a0786705c4f61ce20d414cc2010c8d62448c7 arch=linux-ubuntu16.04-x86_64 
            ^m4@1.4.18%gcc@7.2.0 patches=3877ab548f88597ab2327a2230ee048d2d07ace1062efe81fc92e91b7f39cd00 +sigsegv arch=linux-ubuntu16.04-x86_64 
                ^libsigsegv@2.11%gcc@7.2.0 arch=linux-ubuntu16.04-x86_64 
        ^flex@2.6.4%gcc@7.2.0+lex arch=linux-ubuntu16.04-x86_64 
            ^gettext@0.19.8.1%gcc@7.2.0+bzip2+curses+git~libunistring+libxml2 patches=9acdb4e73f67c241b5ef32505c9ddf7cf6884ca8ea661692f21dca28483b04b8 +tar+xz arch=linux-ubuntu16.04-x86_64 
                ^bzip2@1.0.6%gcc@7.2.0+shared arch=linux-ubuntu16.04-x86_64 
                ^libxml2@2.9.4%gcc@7.2.0~python arch=linux-ubuntu16.04-x86_64 
                    ^pkg-config@0.29.2%gcc@7.2.0+internal_glib arch=linux-ubuntu16.04-x86_64 
                    ^xz@5.2.3%gcc@7.2.0 arch=linux-ubuntu16.04-x86_64 
                    ^zlib@1.2.11%gcc@7.2.0+optimize+pic+shared arch=linux-ubuntu16.04-x86_64 
                ^ncurses@6.0%gcc@7.2.0 patches=4110a40613b800da2b2888c352b64c75a82809d48341061e4de5861e8b28423f,f84b2708a42777aadcc7f502a261afe10ca5646a51c1ef8b5e60d2070d926b57 ~symlinks arch=linux-ubuntu16.04-x86_64 
                ^tar@1.29%gcc@7.2.0 patches=08921fcbd732050c74ddf1de7d8ad95ffdbc09f8b4342456fa2f6a0dd02a957c,5c314db58d005043bf407abaf25eb9823b9032a22fd12a0b142d4bf548130fa4,d428578be7fb99b831eb61e53b8d88a859afe08b479a21238180899707d79ce4,e34d2470461037933737c0a60fbcc5d5ea905fefb6b414b4a2e88a440fcae23a arch=linux-ubuntu16.04-x86_64 
            ^help2man@1.47.4%gcc@7.2.0 arch=linux-ubuntu16.04-x86_64 
    ^cmake@3.9.4%gcc@7.2.0~doc+ncurses+openssl+ownlibs~qt arch=linux-ubuntu16.04-x86_64 
        ^openssl@1.0.2k%gcc@7.2.0 arch=linux-ubuntu16.04-x86_64 
    ^libedit@3.1-20170329%gcc@7.2.0 arch=linux-ubuntu16.04-x86_64 
    ^py-lit@0.5.0%gcc@7.2.0 arch=linux-ubuntu16.04-x86_64 
        ^py-setuptools@35.0.2%gcc@7.2.0 arch=linux-ubuntu16.04-x86_64 
            ^py-appdirs@1.4.3%gcc@7.2.0 arch=linux-ubuntu16.04-x86_64 
                ^python@2.7.14%gcc@7.2.0 patches=123082ab3483ded78e86d7c809e98a804b3465b4683c96bd79a2fd799f572244 +pic+shared~tk~ucs4 arch=linux-ubuntu16.04-x86_64 
                    ^readline@7.0%gcc@7.2.0 arch=linux-ubuntu16.04-x86_64 
                    ^sqlite@3.20.0%gcc@7.2.0 arch=linux-ubuntu16.04-x86_64 
            ^py-packaging@16.8%gcc@7.2.0 arch=linux-ubuntu16.04-x86_64 
                ^py-pyparsing@2.2.0%gcc@7.2.0 arch=linux-ubuntu16.04-x86_64 
                ^py-six@1.10.0%gcc@7.2.0 arch=linux-ubuntu16.04-x86_64 
    ^swig@3.0.12%gcc@7.2.0 arch=linux-ubuntu16.04-x86_64 
        ^pcre@8.40%gcc@7.2.0~jit+utf arch=linux-ubuntu16.04-x86_64 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions