<div dir="ltr">Building my app with trunk Clang with appropriate offloading flags fails:<div><br></div><div>[ 32%] Building CXX object nestkernel/CMakeFiles/nestkernel.dir/archiving_node.cpp.o<br>In file included from /p/project/cpcp0/pcp0151/projects/nest-simulator/nestkernel/archiving_node.cpp:30:<br>In file included from /p/project/cpcp0/pcp0151/projects/nest-simulator/nestkernel/archiving_node.h:40:<br>/p/project/cpcp0/pcp0151/projects/nest-simulator/nestkernel/nest_time.h:127:10: error: call to 'abs' is ambiguous<br>  return std::abs( n );<br>         ^~~~~~~~<br>/p/project/cpcp0/pcp0151/projects/nest-simulator/nestkernel/nest_time.h:312:15: note: in instantiation of function template specialization 'nest::time_abs<long>' requested here<br>    : tics( ( time_abs( t.t ) < LIM_MAX.steps )<br>              ^<br>/usr/include/stdlib.h:770:12: note: candidate function<br>extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;<br>           ^<br>/p/scratch/cpcp0/pcp0151/opt/clang/201911030759/lib/clang/10.0.0/include/__clang_cuda_cmath.h:56:24: note: candidate function<br>__DEVICE__ const float abs(const float __x) { return ::fabsf((float)__x); }<br>                       ^<br>/p/scratch/cpcp0/pcp0151/opt/clang/201911030759/lib/clang/10.0.0/include/__clang_cuda_cmath.h:57:25: note: candidate function<br>__DEVICE__ const double abs(const double __x) { return ::fabs((double)__x); }<br>                        ^<br>1 error generated.<br>make[2]: *** [nestkernel/CMakeFiles/nestkernel.dir/archiving_node.cpp.o] Error 1<br>make[1]: *** [nestkernel/CMakeFiles/nestkernel.dir/all] Error 2<br>make: *** [all] Error 2<br></div><div><br></div><div>please note that without those offloading flags build as expected succeeds.</div><div><br></div></div>