aspect
aspect copied to clipboard
tbb undefined ref aspect 2.5 deal 9.5
Ok, I just had a tbb problem with deal 9.5
https://github.com/dealii/dealii/issues/15946
and I'm guessing that fixing it broke the tbb part of aspect. Log files attached.
Hi Victor, thanks for reporting the issue.
Aspect 2.4.0 is not compatible with deal.II 9.5.1, we can only guarantee compatibility with past deal.II versions so this failure is not surprising. Aspect 2.5.0 however should compile correctly with deal.II 9.5.1. I dont think I have seen a TBB error like this before. Is this with the bundled TBB from deal.II or an external TBB? It looks to me like an incompatibility of deal.II with the TBB version you are using, and it may not have shown up in the deal.II compilation because it is in a header only part of the library that is not compiled? Alternatively, maybe the TBB paths are not found correctly by Aspect (i.e. not exported correctly by deal.II?)?
For future reference the relevant part of the logs is likely:
/opt/apps/gcc/12.2.0/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: CMakeFiles/aspect.dir/Unity/unity_42_cxx.cxx.o: in function `dealii::parallel::ParallelForInteger::apply_parallel(unsigned long, unsigned long, unsigned long) const':
unity_42_cxx.cxx:(.text._ZNK6dealii8parallel18ParallelForInteger14apply_parallelEmmm[_ZNK6dealii8parallel18ParallelForInteger14apply_parallelEmmm]+0x3a): undefined reference to `tbb::detail::r1::initialize(tbb::detail::d1::task_group_context&)'
and dealii::parallel::ParallelForInteger::apply_parallel
is in deal.II/include/deal.II/parallel.h
. @tjhei do you have an idea what could be going on?
This is I hope the external TBB from Intel: Deal2 (as per linked ticket in their system) did not compile with their own TBB, so I linked the Intel one. I hope you're picking up that one too....
@VictorEijkhout Are you still manually setting the TBB include path? Maybe ASPECT does not see that and uses a different TBB.
I also encountered the same problem, how to solve it?