Hello
I’m trying to build manticore from source on FreeBSD 12 and got an error
devel:/usr/local/src/manticoresearch/build@[13:03] # make
[ 0%] Building C object src/CMakeFiles/udfexample.dir/udfexample.c.o
[ 1%] Linking C shared module libudfexample.so
[ 1%] Built target udfexample
[ 1%] Building CXX object src/CMakeFiles/lmanticore_icu.dir/icu.cpp.o
In file included from /usr/local/src/manticoresearch/src/icu.cpp:13:
In file included from /usr/local/src/manticoresearch/src/sphinxint.h:16:
In file included from /usr/local/src/manticoresearch/src/sphinxstd.h:69:
In file included from /usr/local/src/manticoresearch/src/std/zip.h:64:
/usr/local/src/manticoresearch/src/std/zip_impl.h:82:27: warning: unknown attribute 'likely' ignored [-Wunknown-attributes]
if ( ( b & 0x80 ) == 0 ) LIKELY
^
/usr/local/src/manticoresearch/src/std/thread_annotations.h:96:18: note: expanded from macro 'LIKELY'
#define LIKELY [[likely]]
^
In file included from /usr/local/src/manticoresearch/src/icu.cpp:13:
In file included from /usr/local/src/manticoresearch/src/sphinxint.h:16:
In file included from /usr/local/src/manticoresearch/src/sphinxstd.h:69:
In file included from /usr/local/src/manticoresearch/src/std/zip.h:64:
/usr/local/src/manticoresearch/src/std/zip_impl.h:86:27: warning: unknown attribute 'likely' ignored [-Wunknown-attributes]
if ( ( b & 0x80 ) == 0 ) LIKELY
^
/usr/local/src/manticoresearch/src/std/thread_annotations.h:96:18: note: expanded from macro 'LIKELY'
#define LIKELY [[likely]]
^
2 warnings generated.
(many more warnings like this)
/usr/local/src/manticoresearch/src/sphinxsort.cpp:2617:18: error: constexpr if condition evaluates to 2, which cannot be narrowed to type 'bool' [-Wc++11-narrowing]
if constexpr ( DISTINCT )
^
/usr/local/src/manticoresearch/src/sphinxsort.cpp:4372:3: note: in instantiation of function template specialization 'BaseGroupSorter_c::SetupBaseGrouper<2>' requested here
SetupBaseGrouper<DISTINCT> ( pSchema );
^
/usr/local/src/manticoresearch/src/sphinxsort.cpp:4346:2: note: in instantiation of member function 'CSphImplicitGroupSorter<MatchGeneric1_fn, UniqSingle_T<long>, 2, false, false>::SetSchema' requested here
CSphImplicitGroupSorter ( const ISphMatchComparator * DEBUGARG(pComp), const CSphQuery *, const CSphGroupSorterSettings & tSettings )
^
/usr/local/src/manticoresearch/src/sphinxsort.cpp:4873:30: note: in instantiation of member function 'CSphImplicitGroupSorter<MatchGeneric1_fn, UniqSingle_T<long>, 2, false, false>::CSphImplicitGroupSorter'
requested here
case 2: CREATE_SORTER_4TH ( CSphImplicitGroupSorter, COMPGROUP, UniqSingle_c, pComp, pQuery, tSettings, bHasPackedFactors, bHasAggregates );
^
/usr/local/src/manticoresearch/src/sphinxsort.cpp:4905:31: note: in instantiation of function template specialization 'sphCreateSorter3rd<MatchGeneric1_fn>' requested here
case FUNC_GENERIC1: return sphCreateSorter3rd<MatchGeneric1_fn> ( pComp, pQuery, tSettings, bHasPackedFactors, bHasAggregates, tPrecalc );
^
What could be wrong?