Skip to content

error at compilation time #85

@Mec-iS

Description

@Mec-iS
In file included from /build/tbb/src/old/concurrent_vector_v2.cpp:20:
/build/tbb/include/tbb/task.h:300:20: error: declaration of ‘tbb::task& tbb::internal::task_prefix::task()’ changes meaning of ‘task’ [-Wchanges-meaning]
  300 |         tbb::task& task() {return *reinterpret_cast<tbb::task*>(this+1);}
      |                    ^~~~
/build/tbb/include/tbb/task.h:252:9: note: used here to mean ‘class tbb::task’
  252 |         task* next_offloaded;
      |         ^~~~
/build/tbb/include/tbb/task.h:43:7: note: declared here
   43 | class task;
      |       ^~~~
make[2]: *** [CMakeFiles/tbb_static.dir/build.make:90: CMakeFiles/tbb_static.dir/src/old/concurrent_vector_v2.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:276: CMakeFiles/tbb_static.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

System: x86_64, Ubuntu 24.04, g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0

git clone https://github.com/wjakob/tbb.git
cd tbb/build
cmake ..
make -j

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions