-
Notifications
You must be signed in to change notification settings - Fork 13
Description
Hello!
Thanks for making a new cuttlefish 3 possible!
I am encountering a build error while trying to compile the cuttlefish3 branch. The compilation fails with a constexpr error within the rapidgzip dependency.
I cloned the cuttlefish3 branch and checkouted it. I reran the whole process of building as it says in the readme
My GCC is 10.2.1
This is the Error message:
In file included from /home/jupyter/packages/cuttlefish/external/rapidgzip/src/rapidgzip/blockfinder/precodecheck/SingleCompressedLUT.hpp:19, from /home/jupyter/packages/cuttlefish/external/rapidgzip/src/benchmarks/benchmarkGzipBlockFinder.cpp:40: /home/jupyter/packages/cuttlefish/external/rapidgzip/src/rapidgzip/blockfinder/precodecheck/SingleLUT.hpp:527:7: in ‘constexpr’ expansion of ‘rapidgzip::PrecodeCheck::SingleLUT::ValidHistogramID::<lambda()>()’ /home/jupyter/packages/cuttlefish/external/rapidgzip/src/rapidgzip/blockfinder/precodecheck/SingleLUT.hpp:516:50: error: call to non-‘constexpr’ function ‘rapidgzip::PrecodeCheck::SingleLUT::ValidHistogramID::<lambda()>::<lambda(uint32_t)>’ 516 | const auto subtableId = getSubtableId( truncatedAddress ); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /home/jupyter/packages/cuttlefish/external/rapidgzip/src/rapidgzip/blockfinder/precodecheck/SingleLUT.hpp:486:13: note: ‘rapidgzip::PrecodeCheck::SingleLUT::ValidHistogramID::<lambda()>::<lambda(uint32_t)>’ is not usable as a ‘constexpr’ function because: 486 | [&truncatedAddressToSubtable, &subtablesCount] ( const uint32_t truncatedAddress ) | ^ make[5]: *** [src/tests/rapidgzip/CMakeFiles/testPrecodeCheck.dir/build.make:82: src/tests/rapidgzip/CMakeFiles/testPrecodeCheck.dir/testPrecodeCheck.cpp.o] Error 1
I tried updating the submodules and different versions of rapidgzip but nothing could help.
I would appreciate your help on how to solve this issue.
Thanks in advance!