-
Notifications
You must be signed in to change notification settings - Fork 7.5k
[caf] Build error #21994
Description
Host Environment
- OS: Manjaro 2021.1
- Compiler: c++ 11.1.0
To Reproduce
Steps to reproduce the behavior:
./vcpkg install caf
Failure logs
form vcpkg/buildtrees/caf/src/5c3cea9cb5-e41d5b113c.clean/libcaf_io/caf/io/network/receive_buffer.hpp:90:17: error: ‘numeric_limits’ is not a member of ‘std’
90 | return std::numeric_limits<size_t>::max();
| ^~~~~~~~~~~~~~
vcpkg/buildtrees/caf/src/5c3cea9cb5-e41d5b113c.clean/libcaf_io/caf/io/network/receive_buffer.hpp:90:38: error: expected primary-expression before ‘>’ token
90 | return std::numeric_limits<size_t>::max();
| ^
vcpkg/buildtrees/caf/src/5c3cea9cb5-e41d5b113c.clean/libcaf_io/caf/io/network/receive_buffer.hpp:90:41: error: ‘::max’ has not been declared; did you mean ‘std::max’?
90 | return std::numeric_limits<size_t>::max();
| ^~~
| std::max
In file included from /usr/include/c++/11.1.0/algorithm:62,
from vcpkg/buildtrees/caf/src/5c3cea9cb5-e41d5b113c.clean/libcaf_io/src/io/network/receive_buffer.cpp:19:
/usr/include/c++/11.1.0/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
3467 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
Additional context
====================| Build Summary |====================
CAF version: 0.17.6
Build type: Debug
Build static: ON
Build static only: ON
Build static runtime: no
Runtime checks: no
Log level: QUIET
With mem. mgmt.: yes
With exceptions: yes
Build I/O module: yes
Build tools: no
Build examples: no
Build unit tests: no
Build OpenCL: no
Build OpenSSL: yes
Build Python: yes
CXX: /usr/bin/c++
CXXFLAGS: -std=c++11 -fPIC -ftemplate-depth=512 -ftemplate-backtrace-limit=0 -Wno-missing-field-initializers -pthread -g
LINKER_FLAGS (shared) Threads::Threads
Source directory: vcpkg/buildtrees/caf/src/5c3cea9cb5-e41d5b113c.clean
Build directory: vcpkg/buildtrees/caf/x64-linux-dbg
Executable path: vcpkg/buildtrees/caf/x64-linux-dbg/bin
Library path: vcpkg/buildtrees/caf/x64-linux-dbg/lib
Install prefix: vcpkg/packages/caf_x64-linux/debug
Generator: Ninja
===========================================================
-- Configuring done
-- Generating done
-- Build files have been written to: vcpkg/buildtrees/caf/x64-linux-dbg
I cloned, build and installed CAF manually. and it's working, i don't know why this error came up when i tried vcpkg.