Skip to content

tbb 4.4.3. appears to be broken with gcc 6.1.0 #947

@davydden

Description

@davydden

some of the compiler errors are below

In file included from /home/davydden/spack/opt/spack/linux-x86_64/gcc-4.8/gcc-6.1.0-5vnysvhcqo7ny3t6s2ckjd42eqvkj72h/include/c++/6.1.0/memory:62:0,
                 from ../../include/tbb/tbb_stddef.h:421,
                 from ../../src/tbb/itt_notify.h:24,
                 from ../../src/tbb/itt_notify.cpp:67:
/home/davydden/spack/opt/spack/linux-x86_64/gcc-4.8/gcc-6.1.0-5vnysvhcqo7ny3t6s2ckjd42eqvkj72h/include/c++/6.1.0/bits/stl_algobase.h:243:56: error: macro "min" passed 3 arguments, but takes just 2
     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
                                                        ^
In file included from ../../src/tbb/itt_notify.cpp:47:0:
/home/davydden/spack/opt/spack/linux-x86_64/gcc-4.8/gcc-6.1.0-5vnysvhcqo7ny3t6s2ckjd42eqvkj72h/include/c++/6.1.0/bits/stl_algobase.h:195:5: error: expected unqualified-id before ‘const’
     min(const _Tp& __a, const _Tp& __b)
     ^
/home/davydden/spack/opt/spack/linux-x86_64/gcc-4.8/gcc-6.1.0-5vnysvhcqo7ny3t6s2ckjd42eqvkj72h/include/c++/6.1.0/bits/stl_algobase.h:195:5: error: expected ‘)’ before ‘const’
/home/davydden/spack/opt/spack/linux-x86_64/gcc-4.8/gcc-6.1.0-5vnysvhcqo7ny3t6s2ckjd42eqvkj72h/include/c++/6.1.0/bits/stl_algobase.h:195:5: error: expected initializer before ‘const’
In file included from /home/davydden/spack/opt/spack/linux-x86_64/gcc-4.8/gcc-6.1.0-5vnysvhcqo7ny3t6s2ckjd42eqvkj72h/include/c++/6.1.0/memory:62:0,
                 from ../../include/tbb/tbb_stddef.h:421,
                 from ../../src/tbb/itt_notify.h:24,
                 from ../../src/tbb/itt_notify.cpp:67:
/home/davydden/spack/opt/spack/linux-x86_64/gcc-4.8/gcc-6.1.0-5vnysvhcqo7ny3t6s2ckjd42eqvkj72h/include/c++/6.1.0/bits/stl_algobase.h:243:5: error: ‘std::min’ declared as an ‘inline’ variable
     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
     ^~~
/home/davydden/spack/opt/spack/linux-x86_64/gcc-4.8/gcc-6.1.0-5vnysvhcqo7ny3t6s2ckjd42eqvkj72h/include/c++/6.1.0/bits/stl_algobase.h:246:7: error: expected primary-expression before ‘if’
       if (__comp(__b, __a))
       ^~
/home/davydden/spack/opt/spack/linux-x86_64/gcc-4.8/gcc-6.1.0-5vnysvhcqo7ny3t6s2ckjd42eqvkj72h/include/c++/6.1.0/bits/stl_algobase.h:246:7: error: expected ‘}’ before ‘if’
/home/davydden/spack/opt/spack/linux-x86_64/gcc-4.8/gcc-6.1.0-5vnysvhcqo7ny3t6s2ckjd42eqvkj72h/include/c++/6.1.0/bits/stl_algobase.h:246:7: error: expected ‘;’ before ‘if’
/home/davydden/spack/opt/spack/linux-x86_64/gcc-4.8/gcc-6.1.0-5vnysvhcqo7ny3t6s2ckjd42eqvkj72h/include/c++/6.1.0/bits/stl_algobase.h:248:7: error: expected unqualified-id before ‘return’
       return __a;
       ^~~~~~
/home/davydden/spack/opt/spack/linux-x86_64/gcc-4.8/gcc-6.1.0-5vnysvhcqo7ny3t6s2ckjd42eqvkj72h/include/c++/6.1.0/bits/stl_algobase.h:315:38: error: ‘random_access_iterator_tag’ was not declared in this scope
     struct __copy_move<false, false, random_access_iterator_tag>
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions