Hi everyone,
I'm trying to build OPNsense 24.7.
As per the documentation at https://github.com/opnsense/tools, I did the following:
# cd /usr
# git clone https://github.com/opnsense/tools
# cd tools
# make update VERSION=24.7
# make dvd VERSION=24.7
gives an error:
It seems like "use of overloaded operator ... is ambiguous" error is not specific to `sort.h`, but occurs everywhere during the build.
I also tried the follwoing, but the same happens.
# cd /usr/src
# make clean
# make buildworld
and
# cd /usr/tools
# make ports
Host OS is fresh install from official `OPNsense-24.7-dvd-amd64.iso` and I have no clue what I am doing wrong.
Any helps very appreciated!
I'm trying to build OPNsense 24.7.
As per the documentation at https://github.com/opnsense/tools, I did the following:
# cd /usr
# git clone https://github.com/opnsense/tools
# cd tools
# make update VERSION=24.7
# make dvd VERSION=24.7
gives an error:
Code Select
--- Support/WithColor.o ---
In file included from /usr/src/contrib/llvm-project/llvm/lib/Support/WithColor.cpp:9:
In file included from /usr/src/contrib/llvm-project/llvm/include/llvm/Support/WithColor.h:13:
In file included from /usr/src/contrib/llvm-project/llvm/include/llvm/Support/raw_ostream.h:16:
In file included from /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/SmallVector.h:19:
In file included from /usr/include/c++/v1/algorithm:1847:
In file included from /usr/include/c++/v1/__algorithm/nth_element.h:15:
/usr/include/c++/v1/__algorithm/sort.h:586:31: error: use of overloaded operator '*' is ambiguous (with operand types 'int' and 'std::__detail::(unnamed enum at /usr/include/c++/v1/__algorithm/sort.h:155:1)')
586 | while (__lm1 - __first >= 2 * __detail::__block_size - 1) {
| ~ ^ ~~~~~~~~~~~~~~~~~~~~~~
Code Select
--- ClangOpcodesEmitter.o ---
In file included from /usr/src/contrib/llvm-project/clang/utils/TableGen/ClangOpcodesEmitter.cpp:14:
In file included from /usr/src/contrib/llvm-project/llvm/include/llvm/TableGen/Error.h:18:
In file included from /usr/src/contrib/llvm-project/llvm/include/llvm/TableGen/Record.h:23:
In file included from /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/StringExtras.h:17:
In file included from /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/APSInt.h:18:
/usr/src/contrib/llvm-project/llvm/include/llvm/ADT/APInt.h:1296:40: error: use of overloaded operator '*' is ambiguous (with operand types 'unsigned int' and 'llvm::APInt::(unnamed enum at /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/APInt.h:81:3)')
1296 | memset(U.pVal, -1, getNumWords() * APINT_WORD_SIZE);
| ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~
It seems like "use of overloaded operator ... is ambiguous" error is not specific to `sort.h`, but occurs everywhere during the build.
I also tried the follwoing, but the same happens.
# cd /usr/src
# make clean
# make buildworld
and
# cd /usr/tools
# make ports
Host OS is fresh install from official `OPNsense-24.7-dvd-amd64.iso` and I have no clue what I am doing wrong.
Any helps very appreciated!