Skip to content

Increase bracket depth to allow compilation with Clang 12

Lester Owen Hedges requested to merge fix_clang_12_bracket_depth into master

This merge request increases the allowed bracket depth when compiling with Clang so that Allen can be compiled with Clang 12. This is achieved by adding -fbracket-depth=512 to the CMAKE_CXX_FLAGS when Clang is the compiler. Without this, compilation fails with the following error:

...
reps__dev_sel_reports_t>, std::tuple<make_selreps__dev_sel_reports_t>, std::tuple<prefix_sum_selrep_size__host_output_buffer_t, calc_selrep_size__dev_selrep_sizes_t>>>' requested here
        vtbl = VTable {alg, traits};
               ^
/home/lester/Allen/stream/gear/include/AllenTypeTraits.cuh:27:92: note: use -fbracket-depth=N to increase maximum nesting level
struct TupleContains<T, std::tuple<Ts...>> : std::bool_constant<((std::is_same_v<T, Ts> || ...))> {
                                                                                           ^
1 error generated.
make[2]: *** [sequences/CMakeFiles/Stream_hlt1_pp_no_gec.dir/build.make:76: sequences/CMakeFiles/Stream_hlt1_pp_no_gec.dir/src/Stream.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1760: sequences/CMakeFiles/Stream_hlt1_pp_no_gec.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** [sequences/CMakeFiles/Stream_hlt1_pp_default.dir/build.make:76: sequences/CMakeFiles/Stream_hlt1_pp_default.dir/src/Stream.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1839: sequences/CMakeFiles/Stream_hlt1_pp_default.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

(This merge request is in reference to issue #273 (closed).)

Merge request reports