Unfortunately I'm having a bit of trouble with llvm-roc. I'm a bit out of my depth here. Any experts able to help me out?
Here's the error text I'm getting:
[3169/3186] Building CXX object utils/benchmark/src/CMakeFiles/benchmark.dir/benchmark_register.cc.o
FAILED: utils/benchmark/src/CMakeFiles/benchmark.dir/benchmark_register.cc.o
/usr/lib64/ccache/bin/x86_64-solus-linux-g++ -DHAVE_POSIX_REGEX -DHAVE_STD_REGEX -DHAVE_STEADY_CLOCK -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/build/YPKG/root/llvm-roc/build/llvm-project-roc-ocl-3.1.0/llvm/solusBuildDir/utils/benchmark/src -I/home/build/YPKG/root/llvm-roc/build/llvm-project-roc-ocl-3.1.0/llvm/utils/benchmark/src -I/usr/include/libxml2 -I/home/build/YPKG/root/llvm-roc/build/llvm-project-roc-ocl-3.1.0/llvm/solusBuildDir/include -I/home/build/YPKG/root/llvm-roc/build/llvm-project-roc-ocl-3.1.0/llvm/include -I/home/build/YPKG/root/llvm-roc/build/llvm-project-roc-ocl-3.1.0/llvm/utils/benchmark/include -I/home/build/YPKG/root/llvm-roc/build/llvm-project-roc-ocl-3.1.0/llvm/utils/benchmark/src/../include -mtune=generic -march=x86-64 -g2 -O2 -pipe -fPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wall -Wno-error -Wp,-D_REENTRANT -fPIC -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-redundant-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -fdiagnostics-color -ffunction-sections -fdata-sections -std=c++11 -Wall -Wextra -Wshadow -pedantic -pedantic-errors -Wfloat-equal -fstrict-aliasing -fno-exceptions -Wstrict-aliasing -O2 -g -DNDEBUG -std=c++14 -MD -MT utils/benchmark/src/CMakeFiles/benchmark.dir/benchmark_register.cc.o -MF utils/benchmark/src/CMakeFiles/benchmark.dir/benchmark_register.cc.o.d -o utils/benchmark/src/CMakeFiles/benchmark.dir/benchmark_register.cc.o -c /home/build/YPKG/root/llvm-roc/build/llvm-project-roc-ocl-3.1.0/llvm/utils/benchmark/src/benchmark_register.cc
In file included from /home/build/YPKG/root/llvm-roc/build/llvm-project-roc-ocl-3.1.0/llvm/utils/benchmark/src/benchmark_register.cc:15:
/home/build/YPKG/root/llvm-roc/build/llvm-project-roc-ocl-3.1.0/llvm/utils/benchmark/src/benchmark_register.h: In function ‘void AddRange(std::vector<T>*, T, T, int)’:
/home/build/YPKG/root/llvm-roc/build/llvm-project-roc-ocl-3.1.0/llvm/utils/benchmark/src/benchmark_register.h:17:30: error: ‘numeric_limits’ is not a member of ‘std’
17 | static const T kmax = std::numeric_limits<T>::max();
| ^~~~~~~~~~~~~~
/home/build/YPKG/root/llvm-roc/build/llvm-project-roc-ocl-3.1.0/llvm/utils/benchmark/src/benchmark_register.h:17:46: error: expected primary-expression before ‘>’ token
17 | static const T kmax = std::numeric_limits<T>::max();
| ^
/home/build/YPKG/root/llvm-roc/build/llvm-project-roc-ocl-3.1.0/llvm/utils/benchmark/src/benchmark_register.h:17:49: error: ‘::max’ has not been declared; did you mean ‘std::max’?
17 | static const T kmax = std::numeric_limits<T>::max();
| ^~~
| std::max
In file included from /usr/include/c++/11/algorithm:62,
from /home/build/YPKG/root/llvm-roc/build/llvm-project-roc-ocl-3.1.0/llvm/utils/benchmark/include/benchmark/benchmark.h:175,
from /home/build/YPKG/root/llvm-roc/build/llvm-project-roc-ocl-3.1.0/llvm/utils/benchmark/src/internal_macros.h:4,
from /home/build/YPKG/root/llvm-roc/build/llvm-project-roc-ocl-3.1.0/llvm/utils/benchmark/src/check.h:8,
from /home/build/YPKG/root/llvm-roc/build/llvm-project-roc-ocl-3.1.0/llvm/utils/benchmark/src/benchmark_register.h:6,
from /home/build/YPKG/root/llvm-roc/build/llvm-project-roc-ocl-3.1.0/llvm/utils/benchmark/src/benchmark_register.cc:15:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
3467 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
ninja: build stopped: subcommand failed.
[Info] Building llvm-roc-3.1.0
[Build] Building native package
[Source] Extracting source
[Build] Running step: setup
[Build] Enabling ccache
[Build] setup successful
[Build] Running step: build
[Build] Enabling ccache
Command '['/bin/bash', '--norc', '--noprofile', '/tmp/ypkg-buildVTErfX']' returned non-zero exit status 1
[Build] build failed
If more context is required I can run the build again and save the full output to a file. I think I've captured the relevant information above, but I'm not quite sure.
I'm not sure if this is a configuration issue on my part. Or perhaps I'm taking some wrong steps during the build process; this is my first time working with solbuild after all. Feel free to quiz me on configuration, process, etc.. I'm not really very confident I'm doing any of this correctly, so request whatever level of verbosity you need.