Comments (6)
Hello @senioi
Thank you very much for this issue. I will try to fix this ASAP (although, I can not jump into it right away).
It turned out, Docker image is also broken.
from cachelot.
gcc:
- root@freebsd:~/cachelot # cmake -DCMAKE_C_COMPILER=/usr/local/bin/gcc -DCMAKE_CXX_COMPILER=/usr/local/bin/g++
- -- The C compiler identification is GNU 6.4.0
- -- The CXX compiler identification is GNU 6.4.0
- -- Check for working C compiler: /usr/local/bin/gcc
- -- Check for working C compiler: /usr/local/bin/gcc -- works
- -- Detecting C compiler ABI info
- -- Detecting C compiler ABI info - done
- -- Detecting C compile features
- -- Detecting C compile features - done
- -- Check for working CXX compiler: /usr/local/bin/g++
- -- Check for working CXX compiler: /usr/local/bin/g++ -- works
- -- Detecting CXX compiler ABI info
- -- Detecting CXX compiler ABI info - done
- -- Detecting CXX compile features
- -- Detecting CXX compile features - done
- -- Platform: FreeBSD x64
- -- Compiler ID: GNU
- -- gcc version 6.4.0
- -- Looking for aligned_alloc
- -- Looking for aligned_alloc - found
- -- Looking for posix_memalign
- -- Looking for posix_memalign - found
- -- Boost version: 1.67.0
- -- Found the following Boost libraries:
- -- unit_test_framework
- -- system
- -- program_options
- -- Cachelot setup ...
- -- Configuring done
- -- Generating done
- -- Build files have been written to: /root/cachelot
make:
root@freebsd:~/cachelot # make
[ 15%] Built target cachelot
[ 18%] Building CXX object src/server/CMakeFiles/cachelotd.dir/memcached/proto_ascii.cpp.o
In file included from /usr/local/include/boost/predef/os/bsd/free.h:37:0,
from /usr/local/include/boost/predef/os/bsd.h:96,
from /usr/local/include/boost/predef/os/bsd/dragonfly.h:11,
from /usr/local/include/boost/predef/os/bsd.h:95,
from /usr/local/include/boost/predef/os/bsd/bsdi.h:11,
from /usr/local/include/boost/predef/os/bsd.h:52,
from /usr/local/include/boost/predef/os.h:18,
from /usr/local/include/boost/predef.h:17,
from /usr/local/include/boost/smart_ptr/detail/yield_k.hpp:28,
from /usr/local/include/boost/smart_ptr/detail/spinlock_std_atomic.hpp:18,
from /usr/local/include/boost/smart_ptr/detail/spinlock.hpp:47,
from /usr/local/include/boost/smart_ptr/detail/spinlock_pool.hpp:25,
from /usr/local/include/boost/smart_ptr/shared_ptr.hpp:36,
from /usr/local/include/boost/shared_ptr.hpp:17,
from /usr/local/include/boost/date_time/time_clock.hpp:17,
from /usr/local/include/boost/date_time/posix_time/posix_time_types.hpp:10,
from /usr/local/include/boost/asio/time_traits.hpp:23,
from /usr/local/include/boost/asio/basic_deadline_timer.hpp:28,
from /usr/local/include/boost/asio.hpp:24,
from /root/cachelot/src/server/network.h:31,
from /root/cachelot/src/server/socket_stream.h:11,
from /root/cachelot/src/server/memcached/memcached.h:15,
from /root/cachelot/src/server/memcached/proto_ascii.h:10,
from /root/cachelot/src/server/memcached/proto_ascii.cpp:2:
/root/cachelot/src/cachelot/bits.h:48:24: error: expected unqualified-id before 'const'
constexpr bool isset(const IntType value, const unsigned bitno) noexcept {
^
/root/cachelot/src/cachelot/bits.h:48:24: error: expected ')' before 'const'
/root/cachelot/src/cachelot/bits.h:48:24: error: expected ')' before 'const'
/root/cachelot/src/cachelot/bits.h:48:24: error: expected ')' before 'const'
/root/cachelot/src/cachelot/memalloc-inl.h: In member function 'bool cachelot::memalloc::free_blocks_by_size::bit_index_probe(cachelot::memalloc::free_blocks_by_size::position) const':
/root/cachelot/src/cachelot/memalloc-inl.h:462:25: error: expected unqualified-id before '(' token
return bit::isset(first_level_bit_index, pos.pow_index) && bit::isset(second_level_bit_index[pos.pow_index], pos.sub_index);
^
/root/cachelot/src/cachelot/memalloc-inl.h:462:77: error: expected unqualified-id before '(' token
return bit::isset(first_level_bit_index, pos.pow_index) && bit::isset(second_level_bit_index[pos.pow_index], pos.sub_index);
^
*** Error code 1Stop.
make[2]: stopped in /root/cachelot
*** Error code 1Stop.
make[1]: stopped in /root/cachelot
*** Error code 1Stop.
make: stopped in /root/cachelot
from cachelot.
clang:
- root@freebsd:~/cachelot # cmake -DCMAKE_C_COMPILER=/usr/bin/cc -DCMAKE_CXX_COMPILER=/usr/bin/c++
- -- The C compiler identification is Clang 6.0.0
- -- The CXX compiler identification is Clang 6.0.0
- -- Check for working C compiler: /usr/bin/cc
- -- Check for working C compiler: /usr/bin/cc -- works
- -- Detecting C compiler ABI info
- -- Detecting C compiler ABI info - done
- -- Detecting C compile features
- -- Detecting C compile features - done
- -- Check for working CXX compiler: /usr/bin/c++
- -- Check for working CXX compiler: /usr/bin/c++ -- works
- -- Detecting CXX compiler ABI info
- -- Detecting CXX compiler ABI info - done
- -- Detecting CXX compile features
- -- Detecting CXX compile features - done
- -- Platform: FreeBSD x64
- -- Compiler ID: Clang
- -- Clang version 6.0.0
- -- Looking for aligned_alloc
- -- Looking for aligned_alloc - found
- -- Looking for posix_memalign
- -- Looking for posix_memalign - found
- -- Boost version: 1.67.0
- -- Found the following Boost libraries:
- -- unit_test_framework
- -- system
- -- program_options
- -- Cachelot setup ...
- -- Configuring done
- -- Generating done
- -- Build files have been written to: /root/cachelot
make:
root@freebsd:~/cachelot # make
Scanning dependencies of target cachelot
[ 3%] Building CXX object src/cachelot/CMakeFiles/cachelot.dir/common.cpp.o
[ 6%] Building CXX object src/cachelot/CMakeFiles/cachelot.dir/item.cpp.o
[ 9%] Building CXX object src/cachelot/CMakeFiles/cachelot.dir/stats.cpp.o
[ 12%] Building CXX object src/cachelot/CMakeFiles/cachelot.dir/c_api.cpp.o
[ 15%] Linking CXX static library ../../lib/RelWithDebugInfo/libcachelot.a
[ 15%] Built target cachelot
Scanning dependencies of target cachelotd
[ 18%] Building CXX object src/server/CMakeFiles/cachelotd.dir/settings.cpp.o
[ 21%] Building CXX object src/server/CMakeFiles/cachelotd.dir/memcached/proto_ascii.cpp.o
In file included from /root/cachelot/src/server/memcached/proto_ascii.cpp:2:
In file included from /root/cachelot/src/server/memcached/proto_ascii.h:10:
In file included from /root/cachelot/src/server/memcached/memcached.h:15:
/root/cachelot/src/server/socket_stream.h:148:23: warning: unused variable 'receive_result' [-Wunused-variable]
slice receive_result;
^
In file included from /root/cachelot/src/server/memcached/proto_ascii.cpp:2:
In file included from /root/cachelot/src/server/memcached/proto_ascii.h:10:
In file included from /root/cachelot/src/server/memcached/memcached.h:21:
In file included from /root/cachelot/src/cachelot/cache.h:12:
In file included from /root/cachelot/src/cachelot/memalloc.h:14:
/root/cachelot/src/cachelot/bits.h:48:24: error: expected unqualified-id
constexpr bool isset(const IntType value, const unsigned bitno) noexcept {
^
/usr/include/sys/param.h:287:5: note: expanded from macro 'isset'
(((const unsigned char *)(a))[(i)/NBBY] & (1<<((i)%NBBY)))
^
In file included from /root/cachelot/src/server/memcached/proto_ascii.cpp:2:
In file included from /root/cachelot/src/server/memcached/proto_ascii.h:10:
In file included from /root/cachelot/src/server/memcached/memcached.h:21:
In file included from /root/cachelot/src/cachelot/cache.h:12:
In file included from /root/cachelot/src/cachelot/memalloc.h:14:
/root/cachelot/src/cachelot/bits.h:48:24: error: expected ')'
/usr/include/sys/param.h:287:5: note: expanded from macro 'isset'
(((const unsigned char *)(a))[(i)/NBBY] & (1<<((i)%NBBY)))
^
/root/cachelot/src/cachelot/bits.h:48:24: note: to match this '('
/usr/include/sys/param.h:287:4: note: expanded from macro 'isset'
(((const unsigned char *)(a))[(i)/NBBY] & (1<<((i)%NBBY)))
^
In file included from /root/cachelot/src/server/memcached/proto_ascii.cpp:2:
In file included from /root/cachelot/src/server/memcached/proto_ascii.h:10:
In file included from /root/cachelot/src/server/memcached/memcached.h:21:
In file included from /root/cachelot/src/cachelot/cache.h:12:
In file included from /root/cachelot/src/cachelot/memalloc.h:14:
/root/cachelot/src/cachelot/bits.h:48:66: error: expected ')'
constexpr bool isset(const IntType value, const unsigned bitno) noexcept {
^
/root/cachelot/src/cachelot/bits.h:48:24: note: to match this '('
constexpr bool isset(const IntType value, const unsigned bitno) noexcept {
^
/usr/include/sys/param.h:287:32: note: expanded from macro 'isset'
(((const unsigned char *)(a))[(i)/NBBY] & (1<<((i)%NBBY)))
^
In file included from /root/cachelot/src/server/memcached/proto_ascii.cpp:2:
In file included from /root/cachelot/src/server/memcached/proto_ascii.h:10:
In file included from /root/cachelot/src/server/memcached/memcached.h:21:
In file included from /root/cachelot/src/cachelot/cache.h:12:
In file included from /root/cachelot/src/cachelot/memalloc.h:14:
/root/cachelot/src/cachelot/bits.h:48:24: error: expected expression
constexpr bool isset(const IntType value, const unsigned bitno) noexcept {
^
/usr/include/sys/param.h:287:35: note: expanded from macro 'isset'
(((const unsigned char *)(a))[(i)/NBBY] & (1<<((i)%NBBY)))
^
In file included from /root/cachelot/src/server/memcached/proto_ascii.cpp:2:
In file included from /root/cachelot/src/server/memcached/proto_ascii.h:10:
In file included from /root/cachelot/src/server/memcached/memcached.h:21:
In file included from /root/cachelot/src/cachelot/cache.h:12:
In file included from /root/cachelot/src/cachelot/memalloc.h:14:
/root/cachelot/src/cachelot/bits.h:48:24: error: expected ')'
/usr/include/sys/param.h:287:42: note: expanded from macro 'isset'
(((const unsigned char *)(a))[(i)/NBBY] & (1<<((i)%NBBY)))
^
/root/cachelot/src/cachelot/bits.h:48:24: note: to match this '('
/usr/include/sys/param.h:287:2: note: expanded from macro 'isset'
(((const unsigned char *)(a))[(i)/NBBY] & (1<<((i)%NBBY)))
^
In file included from /root/cachelot/src/server/memcached/proto_ascii.cpp:2:
In file included from /root/cachelot/src/server/memcached/proto_ascii.h:10:
In file included from /root/cachelot/src/server/memcached/memcached.h:21:
In file included from /root/cachelot/src/cachelot/cache.h:12:
In file included from /root/cachelot/src/cachelot/memalloc.h:14:
/root/cachelot/src/cachelot/bits.h:112:16: error: no member named 'most_significant' in namespace 'cachelot::bit'; did you mean 'significand'?
return bit::most_significant(value);
^~~~~~~~~~~~~~~~~~~~~
significand
/usr/include/math.h:337:8: note: 'significand' declared here
double significand(double);
^
In file included from /root/cachelot/src/server/memcached/proto_ascii.cpp:2:
In file included from /root/cachelot/src/server/memcached/proto_ascii.h:10:
In file included from /root/cachelot/src/server/memcached/memcached.h:21:
In file included from /root/cachelot/src/cachelot/cache.h:12:
In file included from /root/cachelot/src/cachelot/memalloc.h:150:
/root/cachelot/src/cachelot/memalloc-inl.h:462:25: error: expected unqualified-id
return bit::isset(first_level_bit_index, pos.pow_index) && bit::isset(second_level_bit_index[pos.pow_index], pos.sub_index);
^
/usr/include/sys/param.h:287:2: note: expanded from macro 'isset'
(((const unsigned char *)(a))[(i)/NBBY] & (1<<((i)%NBBY)))
^
In file included from /root/cachelot/src/server/memcached/proto_ascii.cpp:2:
In file included from /root/cachelot/src/server/memcached/proto_ascii.h:10:
In file included from /root/cachelot/src/server/memcached/memcached.h:21:
In file included from /root/cachelot/src/cachelot/cache.h:12:
In file included from /root/cachelot/src/cachelot/memalloc.h:150:
/root/cachelot/src/cachelot/memalloc-inl.h:462:25: warning: cast to 'const unsigned char *' from smaller integer type 'cachelot::uint32' (aka 'unsigned int') [-Wint-to-pointer-cast]
/usr/include/sys/param.h:287:4: note: expanded from macro 'isset'
(((const unsigned char *)(a))[(i)/NBBY] & (1<<((i)%NBBY)))
^
In file included from /root/cachelot/src/server/memcached/proto_ascii.cpp:2:
In file included from /root/cachelot/src/server/memcached/proto_ascii.h:10:
In file included from /root/cachelot/src/server/memcached/memcached.h:21:
In file included from /root/cachelot/src/cachelot/cache.h:12:
In file included from /root/cachelot/src/cachelot/memalloc.h:150:
/root/cachelot/src/cachelot/memalloc-inl.h:462:77: error: expected unqualified-id
return bit::isset(first_level_bit_index, pos.pow_index) && bit::isset(second_level_bit_index[pos.pow_index], pos.sub_index);
^
/usr/include/sys/param.h:287:2: note: expanded from macro 'isset'
(((const unsigned char *)(a))[(i)/NBBY] & (1<<((i)%NBBY)))
^
In file included from /root/cachelot/src/server/memcached/proto_ascii.cpp:2:
In file included from /root/cachelot/src/server/memcached/proto_ascii.h:10:
In file included from /root/cachelot/src/server/memcached/memcached.h:21:
In file included from /root/cachelot/src/cachelot/cache.h:12:
In file included from /root/cachelot/src/cachelot/memalloc.h:150:
/root/cachelot/src/cachelot/memalloc-inl.h:462:77: warning: cast to 'const unsigned char *' from smaller integer type 'std::__1::__vector_base<unsigned int, std::__1::allocator >::value_type' (aka 'unsigned int')
[-Wint-to-pointer-cast]
/usr/include/sys/param.h:287:4: note: expanded from macro 'isset'
(((const unsigned char *)(a))[(i)/NBBY] & (1<<((i)%NBBY)))
^
In file included from /root/cachelot/src/server/memcached/proto_ascii.cpp:2:
In file included from /root/cachelot/src/server/memcached/proto_ascii.h:10:
In file included from /root/cachelot/src/server/memcached/memcached.h:21:
In file included from /root/cachelot/src/cachelot/cache.h:12:
In file included from /root/cachelot/src/cachelot/memalloc.h:150:
/root/cachelot/src/cachelot/memalloc-inl.h:468:58: error: no member named 'unset' in namespace 'cachelot::bit'
second_level_bit_index[pos.pow_index] = bit::unset(second_level_bit_index[pos.pow_index], pos.sub_index);
~~~~~^
/root/cachelot/src/cachelot/memalloc-inl.h:471:46: error: no member named 'unset' in namespace 'cachelot::bit'
first_level_bit_index = bit::unset(first_level_bit_index, pos.pow_index);
~~~~~^
/root/cachelot/src/cachelot/memalloc-inl.h:477:58: error: no member named 'set' in namespace 'cachelot::bit'
second_level_bit_index[pos.pow_index] = bit::set(second_level_bit_index[pos.pow_index], pos.sub_index);
~~~~~^
/root/cachelot/src/cachelot/memalloc-inl.h:478:42: error: no member named 'set' in namespace 'cachelot::bit'
first_level_bit_index = bit::set(first_level_bit_index, pos.pow_index);
~~~~~^
/root/cachelot/src/cachelot/memalloc-inl.h:492:89: error: no member named 'least_significant' in namespace 'cachelot::bit'
return tuple<bool, position>(true, position(current.pow_index, bit::least_significant(next_sub_index_mask)));
~~~~~^
/root/cachelot/src/cachelot/memalloc-inl.h:499:51: error: no member named 'least_significant' in namespace 'cachelot::bit'
const uint32 next_pow2 = bit::least_significant(next_pow2_mask);
~~~~~^
/root/cachelot/src/cachelot/memalloc-inl.h:501:81: error: no member named 'least_significant' in namespace 'cachelot::bit'
return tuple<bool, position>(true, position(next_pow2, bit::least_significant(second_level_bit_index[next_pow2])));
~~~~~^
3 warnings and 15 errors generated.
*** Error code 1Stop.
make[2]: stopped in /root/cachelot
*** Error code 1Stop.
make[1]: stopped in /root/cachelot
*** Error code 1Stop.
make: stopped in /root/cachelot
from cachelot.
@aka-rider Thanks
from cachelot.
I hope to see it soon support FreeBSD
from cachelot.
@senioi Should be fixed in master
from cachelot.
Related Issues (20)
- Provide a callback to notify which items were evicted HOT 4
- Question: Atomic operations HOT 1
- Ubuntu daemon can't work HOT 2
- test_c_api problem HOT 2
- Docker image Error: bind: Address in use
- Distribute as conan.io package
- Does not build out-of-tree HOT 7
- thread safe HOT 3
- Some questions about cache api (cache.h) in multi-threaded app HOT 3
- Unit test failure in test_int_to_str HOT 4
- Install Missing in cmake List HOT 4
- Will it build/work with android ecosystem ? HOT 1
- is this cachelot library thread-safe? HOT 3
- why not remove the boost dependency HOT 1
- Add CI/CD on Windows
- Improve cachelot.io website performance HOT 1
- Coverity integration
- Add libFuzzer integration
- cachelot C api library and documentation HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cachelot.