无法在windows server 2012上使用cygwin构建clickhouse

8tntrjer  于 2021-07-15  发布在  ClickHouse
关注(0)|答案(0)|浏览(417)

我正试图在WindowsServer2012(Build9600)上用cygwin(mintty-2.7.9)构建最新的clickhouse版本(v1.1.54292-stable)。我在cygwin中选择并安装了这些附加软件包:

  1. automake 10-1
  2. automake 1.15.1-1
  3. cmake 3.6.2.-1
  4. gcc 6.3.0-2
  5. g++ 6.3.0-2
  6. gccmakedep 1.0.3.-1
  7. git 2.14.1-2
  8. libboost_system 1.63.0-1
  9. libmcpp-devel 2.7.2-2
  10. libmysqlclient-devel 10.1.26-1
  11. libpcreposix0 8.40-3
  12. libpoco-devel 1.7.9-1
  13. libpoco-49 1.7.9-1
  14. libtool 2.4.6-5
  15. make 4.2.1-2
  16. mcpp 2.7.2-2
  17. poco 1.7.9-1
  18. python3 3.6.1-1

我遵照官方指示,所以我跑了:

  1. export THREADS=$(grep -c ^processor /proc/cpuinfo)
  2. export CC=gcc
  3. export CXX=g++
  4. export CMAKE_LEGACY_CYGWIN_WIN32=1
  5. mkdir build
  6. cd build
  7. cmake ..
  8. make -j $THREADS

我得到的编译错误是:

  1. In function CityHash_v1_0_2::uint128 CityHash_v1_0_2::CityMurmur(const char*, size_t, CityHash_v1_0_2::uint128)’:
  2. /home/user/ClickHouse/contrib/libcityhash/src/city.cc:261:3:
  3. error: ssize_t was not declared in this scope
  4. ssize_t l = len - 16;

如果我 grep 这个 /usr/include/sys/types.h 为了 ssize_t 它在那里得到了正确的定义,但是由于某些原因编译器找不到它。
谢谢你的建议。。。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题